MotorXP-AFM Scripting API
    Preparing search index...

    Interface QtWidgets

    Built-in QtWidgets object

    interface QtWidgets {
        createExclamationIcon(parent?: QWidget): ExclamationIcon;
        createNumberEdit(parent?: QWidget): NumberEdit;
        createNumberPoleSpinBox(parent?: QWidget): NumberPoleSpinBox;
        createNumberSlotSpinBox(parent?: QWidget): NumberSlotSpinBox;
        createPoleArrangementComboBox(parent?: QWidget): PoleArrangementComboBox;
        createQCheckBox(text: string, parent: QWidget): QCheckBox;
        createQComboBox(parent?: QWidget): QComboBox;
        createQDoubleSpinBox(parent?: QWidget): QDoubleSpinBox;
        createQFormLayout(parent: QWidget): QFormLayout;
        createQGridLayout(parent: QWidget): QGridLayout;
        createQGroupBox(text: string, parent: QWidget): QGroupBox;
        createQLabel(text: string, parent: QWidget): QLabel;
        createQLabel(pixmap: QPixmap, parent: QWidget): QLabel;
        createQLineEdit(text: string, parent: QWidget): QLineEdit;
        createQPushButton(text: string, parent: QWidget): QPushButton;
        createQSpinBox(parent?: QWidget): QSpinBox;
        createQWidget(parent?: QWidget): QWidget;
        createRotorTypeComboBox(parent?: QWidget): RotorTypeComboBox;
        createStatorTypeComboBox(parent?: QWidget): StatorTypeComboBox;
        createWarningIcon(parent?: QWidget): WarningIcon;
        createWindingConnectionComboBox(
            parent?: QWidget,
        ): WindingConnectionComboBox;
        createWindingLayersComboBox(parent?: QWidget): WindingLayersComboBox;
        createWindingLayersOrientationComboBox(
            parent?: QWidget,
        ): WindingLayersOrientationComboBox;
        createWindingTypeComboBox(parent?: QWidget): WindingTypeComboBox;
        createWireAwgComboBox(parent?: QWidget): WireAwgComboBox;
        createWireSizeMethodComboBox(parent?: QWidget): WireSizeMethodComboBox;
        createWireSwgComboBox(parent?: QWidget): WireSwgComboBox;
        setTranslatedProperty(
            widget: QWidget,
            property: string,
            source: string,
            values: (string | number | boolean)[],
        ): void;
        styleRedComboBox(): string;
        styleRedFrame(): string;
        styleRedLabel(): string;
        styleRedLabelNoFrame(): string;
        styleRedLineEdit(): string;
        styleRedSpinBox(): string;
        styleYellowComboBox(): string;
        styleYellowFrame(): string;
        styleYellowLabel(): string;
        styleYellowLabelNoFrame(): string;
        styleYellowLineEdit(): string;
        styleYellowSpinBox(): string;
    }
    Index

    Methods

    • Sets a translatable label or tooltip with parameters and updates it when the language changes.

      Parameters

      • widget: QWidget
      • property: string
      • source: string
      • values: (string | number | boolean)[]

      Returns void