MotorXP-PM 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;
        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;
        createWarningIcon(parent?: QWidget): WarningIcon;
        createWindingLayersComboBox(parent?: QWidget): WindingLayersComboBox;
        createWindingLayersOrientationComboBox(
            parent?: QWidget,
        ): WindingLayersOrientationComboBox;
        createWindingModelComboBox(parent?: QWidget): WindingModelComboBox;
        createWireAwgComboBox(parent?: QWidget): WireAwgComboBox;
        createWireSizeMethodComboBox(parent?: QWidget): WireSizeMethodComboBox;
        createWireSwgComboBox(parent?: QWidget): WireSwgComboBox;
    }
    Index

    Methods

    • Creates an exclamation-mark icon.

      Parameters

      • Optionalparent: QWidget

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

      Returns ExclamationIcon

      New ExclamationIcon object.

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

      Parameters

      • Optionalparent: QWidget

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

      Returns NumberEdit

      New NumberEdit object.

    • Spin box for the pole count.

      Parameters

      • Optionalparent: QWidget

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

      Returns NumberPoleSpinBox

      New NumberPoleSpinBox object.

    • Spin box for the slot count.

      Parameters

      • Optionalparent: QWidget

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

      Returns NumberSlotSpinBox

      New NumberSlotSpinBox object.

    • Creates a check box with text.

      Parameters

      • text: string

        Text next to the check box.

      • parent: QWidget

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

      Returns QCheckBox

      New QCheckBox object.

    • Creates a combo box.

      Parameters

      • Optionalparent: QWidget

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

      Returns QComboBox

      New QComboBox object.

    • Creates a spin box for fractional numbers.

      Parameters

      • Optionalparent: QWidget

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

      Returns QDoubleSpinBox

      New QDoubleSpinBox object.

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

      Parameters

      • parent: QWidget

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

      Returns QFormLayout

      New QFormLayout for arranging an application form.

    • Creates a grid layout.

      Parameters

      • parent: QWidget

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

      Returns QGridLayout

      New QGridLayout for arranging an application form.

    • Creates a group with a title and child controls.

      Parameters

      • text: string

        Title.

      • parent: QWidget

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

      Returns QGroupBox

      New QGroupBox object.

    • Creates a text label.

      Parameters

      • text: string

        Text to display.

      • parent: QWidget

        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: QWidget

        Parent widget; null means no parent. Required.

      Returns QLabel

      New QLabel object.

    • Creates a single-line text input.

      Parameters

      • text: string

        Initial value.

      • parent: QWidget

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

      Returns QLineEdit

      New QLineEdit object.

    • Creates a button with text.

      Parameters

      • text: string

        Button text.

      • parent: QWidget

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

      Returns QPushButton

      New QPushButton object.

    • Creates an integer spin box.

      Parameters

      • Optionalparent: QWidget

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

      Returns QSpinBox

      New QSpinBox object.

    • Base widget serving as a container for other widgets.

      Parameters

      • Optionalparent: QWidget

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

      Returns QWidget

      New QWidget object.

    • Creates a warning icon.

      Parameters

      • Optionalparent: QWidget

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

      Returns WarningIcon

      New WarningIcon object.

    • Combo box for selecting the number of winding layers.

      Parameters

      • Optionalparent: QWidget

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

      Returns WindingLayersComboBox

      New WindingLayersComboBox object.

    • Winding layer orientation selection.

      Parameters

      • Optionalparent: QWidget

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

      Returns WindingLayersOrientationComboBox

      New WindingLayersOrientationComboBox object.

    • Winding model selection.

      Parameters

      • Optionalparent: QWidget

        Parent widget of the new WindingModelComboBox. If omitted, creates the widget without a parent.

      Returns WindingModelComboBox

      New WindingModelComboBox object.

    • Creates a combo box.

      Parameters

      • Optionalparent: QWidget

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

      Returns WireAwgComboBox

      New WireAwgComboBox object.

    • Creates a combo box for wire sizing methods.

      Parameters

      • Optionalparent: QWidget

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

      Returns WireSizeMethodComboBox

      New WireSizeMethodComboBox object.

    • Creates a combo box.

      Parameters

      • Optionalparent: QWidget

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

      Returns WireSwgComboBox

      New WireSwgComboBox object.