MotorXP-AFM Scripting API
    Preparing search index...

    Class QPushButton

    Button.

    Hierarchy (View Summary)

    Index
    • Creates a button with optional text.

      Parameters

      • Optionaltext: string

        Button text.

      • Optionalparent: Object

        Parent widget.

      Returns QPushButton

    clicked: SignalConnector<boolean>

    Signal emitted when the button is clicked. The argument is its checked state.

    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
    styleSheet: string

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

    Read/Write

    text: string

    Button text.

    Read/Write

    toolTip: string
    visible: boolean
    • Hides the widget.

      Returns void

    • 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