MotorXP-AFM Scripting API
    Preparing search index...

    Class QLineEdit

    Single-line text input.

    Hierarchy (View Summary)

    Index
    • Creates a text input with optional initial text.

      Parameters

      • Optionaltext: string

        Initial text.

      • Optionalparent: Object

        Parent widget.

      Returns QLineEdit

    editingFinished: SignalConnector

    Signal emitted when editing finishes (Enter or loss of focus).

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

    Placeholder displayed when the field is empty.

    Read/Write

    readOnly: boolean

    Read-only mode.

    Read/Write

    styleSheet: string

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

    Read/Write

    text: string

    Input field text.

    Read/Write

    textChanged: SignalConnector<string>

    Signal emitted whenever the text changes.

    Read

    textEdited: SignalConnector<string>

    Signal emitted when the user changes the text.

    Read

    toolTip: string
    visible: boolean
    • Blocks or unblocks signals; available only for fields created with QLineEdit().

      Parameters

      • block: boolean

        True to block signals; false to unblock them.

      Returns boolean

      Previous signal-blocking state.

    • Clears the input field.

      Returns void

    • 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