MotorXP-AFM Scripting API
    Preparing search index...

    Variable QtWidgetsConst

    QtWidgets: {
        createExclamationIcon(parent?: widget): ExclamationIcon;
        createNumberEdit(parent?: widget): NumberEdit;
        createNumberPoleSpinBox(parent?: widget): NumberPoleSpinBox;
        createNumberSlotSpinBox(parent?: widget): NumberSlotSpinBox;
        createPoleArrangementComboBox(parent?: widget): PoleArrangementComboBox;
        createQCheckBox(text: string, parent: widget): QCheckBox;
        createQComboBox(parent?: widget): QComboBox;
        createQDoubleSpinBox(parent?: widget): QDoubleSpinBox;
        createQFormLayout(parent: widget): QFormLayout;
        createQGridLayout(parent: widget): QGridLayout;
        createQGroupBox(text: string, parent: widget): QGroupBox;
        createQLabel(text: string, parent: widget): QLabel;
        createQLabel(pixmap: QPixmap, parent: widget): QLabel;
        createQLineEdit(text: string, parent: widget): QLineEdit;
        createQPushButton(text: string, parent: widget): QPushButton;
        createQSpinBox(parent?: widget): QSpinBox;
        createQWidget(parent?: widget): QWidget;
        createRotorTypeComboBox(parent?: widget): RotorTypeComboBox;
        createStatorTypeComboBox(parent?: widget): StatorTypeComboBox;
        createWarningIcon(parent?: widget): WarningIcon;
        createWindingConnectionComboBox(parent?: widget): WindingConnectionComboBox;
        createWindingLayersComboBox(parent?: widget): WindingLayersComboBox;
        createWindingLayersOrientationComboBox(
            parent?: widget,
        ): WindingLayersOrientationComboBox;
        createWindingTypeComboBox(parent?: widget): WindingTypeComboBox;
        createWireAwgComboBox(parent?: widget): WireAwgComboBox;
        createWireSizeMethodComboBox(parent?: widget): WireSizeMethodComboBox;
        createWireSwgComboBox(parent?: widget): 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;
    }

    Built-in QtWidgets object

    Type Declaration

    • createExclamationIcon: function
      • Creates an exclamation-mark icon.

        Parameters

        • Optionalparent: widget

          parent [default=null] - Parent widget of the new ExclamationIcon. If omitted, creates the widget without a parent.

        Returns ExclamationIcon

        New ExclamationIcon object.

    • createNumberEdit: function
      • Creates a custom numeric input: an enhanced QDoubleSpinBox with highlighting and increased display precision.

        Parameters

        • Optionalparent: widget

          parent [default=null] - Parent widget of the new NumberEdit. If omitted, creates the widget without a parent.

        Returns NumberEdit

        New NumberEdit object.

    • createNumberPoleSpinBox: function
      • Spin box for the pole count.

        Parameters

        • Optionalparent: widget

          parent [default=null] - Parent widget of the new NumberPoleSpinBox. If omitted, creates the widget without a parent.

        Returns NumberPoleSpinBox

        New NumberPoleSpinBox object.

    • createNumberSlotSpinBox: function
      • Spin box for the slot count.

        Parameters

        • Optionalparent: widget

          parent [default=null] - Parent widget of the new NumberSlotSpinBox. If omitted, creates the widget without a parent.

        Returns NumberSlotSpinBox

        New NumberSlotSpinBox object.

    • createPoleArrangementComboBox: function
      • Pole arrangement selection.

        Parameters

        • Optionalparent: widget

          parent [default=null] - Parent widget of the new QComboBox. If omitted, creates the widget without a parent.

        Returns PoleArrangementComboBox

        New PoleArrangementComboBox object.

    • createQCheckBox: function
      • Creates a check box with text.

        Parameters

        • text: string

          Text next to the check box.

        • parent: widget

          Parent widget of the new QCheckBox; null means no parent. Required, unless using QCheckBox(text).

        Returns QCheckBox

        New QCheckBox object.

    • createQComboBox: function
      • Creates a combo box.

        Parameters

        • Optionalparent: widget

          parent [default=null] - Parent widget of the new QComboBox. If omitted, creates the widget without a parent.

        Returns QComboBox

        New QComboBox object.

    • createQDoubleSpinBox: function
      • Creates a spin box for fractional numbers.

        Parameters

        • Optionalparent: widget

          parent [default=null] - Parent widget of the new QDoubleSpinBox. If omitted, creates the widget without a parent.

        Returns QDoubleSpinBox

        New QDoubleSpinBox object.

    • createQFormLayout: function
      • Container layout for arranging form labels and input fields in two columns: field descriptions on the left and controls on the right.

        Parameters

        • parent: widget

          Parent widget of the new QFormLayout, which becomes its layout; null means no parent. Required.

        Returns QFormLayout

        New QFormLayout for arranging an application form.

    • createQGridLayout: function
      • Creates a grid layout.

        Parameters

        • parent: widget

          Parent widget of the new QGridLayout, which becomes its layout; null means no parent. Required.

        Returns QGridLayout

        New QGridLayout for arranging an application form.

    • createQGroupBox: function
      • Creates a group with a title and child controls.

        Parameters

        • text: string

          Title.

        • parent: widget

          Parent widget of the new QGroupBox; null means no parent. Required, unless using QGroupBox(text).

        Returns QGroupBox

        New QGroupBox object.

    • createQLabel: function
      • Creates a text label.

        Parameters

        • text: string

          Text to display.

        • parent: widget

          Parent widget of the new QLabel; null means no parent. Required, unless using QLabel(text).

        Returns QLabel

        New QLabel object.

      • Creates an image label.

        Parameters

        • pixmap: QPixmap

          Image to display.

        • parent: widget

          Parent widget; null means no parent. Required.

        Returns QLabel

        New QLabel object.

    • createQLineEdit: function
      • Creates a single-line text input.

        Parameters

        • text: string

          Initial value.

        • parent: widget

          Parent widget of the new QLineEdit; null means no parent. Required, unless using QLineEdit(text).

        Returns QLineEdit

        New QLineEdit object.

    • createQPushButton: function
      • Creates a button with text.

        Parameters

        • text: string

          Button text.

        • parent: widget

          Parent widget of the new QPushButton; null means no parent. Required, unless using QPushButton(text).

        Returns QPushButton

        New QPushButton object.

    • createQSpinBox: function
      • Creates an integer spin box.

        Parameters

        • Optionalparent: widget

          parent [default=null] - Parent widget of the new QSpinBox. If omitted, creates the widget without a parent.

        Returns QSpinBox

        New QSpinBox object.

    • createQWidget: function
      • Base widget serving as a container for other widgets.

        Parameters

        • Optionalparent: widget

          parent [default=null] - Parent widget of the new QWidget. If omitted, creates the widget without a parent.

        Returns QWidget

        New QWidget object.

    • createRotorTypeComboBox: function
      • Rotor type selection.

        Parameters

        • Optionalparent: widget

          parent [default=null] - Parent widget of the new RotorTypeComboBox. If omitted, creates the widget without a parent.

        Returns RotorTypeComboBox

        New RotorTypeComboBox object.

    • createStatorTypeComboBox: function
      • Stator type selection.

        Parameters

        • Optionalparent: widget

          parent [default=null] - Parent widget of the new StatorTypeComboBox. If omitted, creates the widget without a parent.

        Returns StatorTypeComboBox

        New StatorTypeComboBox object.

    • createWarningIcon: function
      • Creates a warning icon.

        Parameters

        • Optionalparent: widget

          parent [default=null] - Parent widget of the new WarningIcon. If omitted, creates the widget without a parent.

        Returns WarningIcon

        New WarningIcon object.

    • createWindingConnectionComboBox: function
      • Winding connection selection.

        Parameters

        • Optionalparent: widget

          parent [default=null] - Parent widget of the new WindingConnectionComboBox. If omitted, creates the widget without a parent.

        Returns WindingConnectionComboBox

        New WindingConnectionComboBox object.

    • createWindingLayersComboBox: function
      • Combo box for selecting the number of winding layers.

        Parameters

        • Optionalparent: widget

          parent [default=null] - Parent widget of the new WindingLayersComboBox. If omitted, creates the widget without a parent.

        Returns WindingLayersComboBox

        New WindingLayersComboBox object.

    • createWindingLayersOrientationComboBox: function
      • Winding layer orientation selection.

        Parameters

        • Optionalparent: widget

          parent [default=null] - Parent widget of the new WindingLayersOrientationComboBox. If omitted, creates the widget without a parent.

        Returns WindingLayersOrientationComboBox

        New WindingLayersOrientationComboBox object.

    • createWindingTypeComboBox: function
      • Winding type selection.

        Parameters

        • Optionalparent: widget

          parent [default=null] - Parent widget of the new WindingTypeComboBox. If omitted, creates the widget without a parent.

        Returns WindingTypeComboBox

        New WindingTypeComboBox object.

    • createWireAwgComboBox: function
      • Creates a combo box.

        Parameters

        • Optionalparent: widget

          parent [default=null] - Parent widget of the new WireAwgComboBox. If omitted, creates the widget without a parent.

        Returns WireAwgComboBox

        New WireAwgComboBox object.

    • createWireSizeMethodComboBox: function
      • Creates a combo box for wire sizing methods.

        Parameters

        • Optionalparent: widget

          parent [default=null] - Parent widget of the new WireSizeMethodComboBox. If omitted, creates the widget without a parent.

        Returns WireSizeMethodComboBox

        New WireSizeMethodComboBox object.

    • createWireSwgComboBox: function
      • Creates a combo box.

        Parameters

        • Optionalparent: widget

          parent [default=null] - Parent widget of the new WireSwgComboBox. If omitted, creates the widget without a parent.

        Returns WireSwgComboBox

        New WireSwgComboBox object.

    • setTranslatedProperty: function
      • 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

    • styleRedComboBox: function
      • Style sheet: combo box with error highlighting.

        Returns string

        Style sheet for the styleSheet property.

    • styleRedFrame: function
      • Style sheet: red border (error).

        Returns string

        Style sheet for the styleSheet property.

    • styleRedLabel: function
      • Style sheet: label with a red background and border (error).

        Returns string

        Style sheet for the styleSheet property.

    • styleRedLabelNoFrame: function
      • Style sheet: label with a red background and no border (error).

        Returns string

        Style sheet for the styleSheet property.

    • styleRedLineEdit: function
      • Style sheet: input with error highlighting.

        Returns string

        Style sheet for the styleSheet property.

    • styleRedSpinBox: function
      • Style sheet: spin box with error highlighting.

        Returns string

        Style sheet for the styleSheet property.

    • styleYellowComboBox: function
      • Style sheet: combo box with warning highlighting.

        Returns string

        Style sheet for the styleSheet property.

    • styleYellowFrame: function
      • Style sheet: yellow border (warning).

        Returns string

        Style sheet for the styleSheet property.

    • styleYellowLabel: function
      • Style sheet: label with a yellow background and border (warning).

        Returns string

        Style sheet for the styleSheet property.

    • styleYellowLabelNoFrame: function
      • Style sheet: label with a yellow background and no border (warning).

        Returns string

        Style sheet for the styleSheet property.

    • styleYellowLineEdit: function
      • Style sheet: input with warning highlighting.

        Returns string

        Style sheet for the styleSheet property.

    • styleYellowSpinBox: function
      • Style sheet: spin box with warning highlighting.

        Returns string

        Style sheet for the styleSheet property.