MotorXP-AFM Scripting API
    Preparing search index...

    Class WindingTypeComboBox

    Winding type combo box: Winding.Planar or Winding.Toroidal.

    Hierarchy (View Summary)

    Implements

    Index
    count: number

    Number of items in the combo box.

    Read

    currentData: any

    Current item data (userData), supplied as the second argument to addItem().

    Read only

    currentIndex: number

    Sets the current index.

    Read/Write

    currentIndexChanged: SignalConnector<string>

    Signal emitted when the selected item changes. The handler receives the new item's text (the Qt 5 currentIndexChanged(QString) overload), not its index: read currentIndex for the index and currentData for the data.

    Read

    currentText: string

    Currently displayed text in the combo box.

    Read/Write

    currentValue: number

    Sets the current value.

    Read/Write

    currentValueChanged: SignalConnector<number>

    Signal emitted when the current value changes.

    Read

    enabled: boolean
    maximumHeight: number
    maximumWidth: number

    Maximum widget width in pixels.

    Read/Write

    minimumHeight: number

    Minimum widget height in pixels. Sets the lower limit of the label height.

    Read/Write

    minimumWidth: number
    objectName: string

    Unique object name used for lookup and styling.

    Read/Write

    styleSheet: string

    Widget style sheet (see QtWidgets.style*()).

    Read/Write

    toolTip: string
    visible: boolean
    • Removes all items from the combo box.

      Returns void

      Write

    • Hides the widget.

      Returns void

    • Sets the current item index.

      Parameters

      • index: number

        Item index.

      Returns void

      Write

    • Enables or disables the widget.

      Parameters

      • enabled: boolean

        True to enable; false to disable.

      Returns void

    • Sets widget visibility.

      Parameters

      • visible: boolean

        Visibility flag: true to show, false to hide.

      Returns void

    • Shows the widget.

      Returns void

    • Returns the item value at an index.

      Parameters

      • index: number

        Item index.

      Returns number

      Item value.