MotorXP-AFM Scripting API
    Preparing search index...

    Class QLabel

    Label for displaying static text in the user interface.

    Hierarchy (View Summary)

    Index
    • Creates a QLabel with optional text and parent widget.

      Parameters

      • Optionaltext: string

        Text to display.

      • Optionalparent: Object

        Parent widget.

      Returns QLabel

    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

    pixmap: QPixmap

    Label image; available only for labels created with QLabel().

    Read/Write

    styleSheet: string

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

    Read/Write

    text: string

    Current label text.

    Read/Write

    toolTip: string

    Tooltip displayed when the pointer hovers over the widget.

    Read/Write

    visible: boolean
    • Hides the label.

      Returns void

      Write

    • Enables or disables the widget.

      Parameters

      • enabled: boolean

        True to enable; false to disable.

      Returns void

    • Sets label visibility.

      Parameters

      • visible: boolean

        Visibility flag.

      Returns void

      Write

    • Shows the label.

      Returns void

      Write