MotorXP-AFM Scripting API
    Preparing search index...

    Class QGridLayout

    Grid layout for arranging widgets in rows and columns.

    Index
    • Creates a QGridLayout and installs it as the parent widget's layout.

      Parameters

      • Optionalparent: Object

        Parent widget.

      Returns QGridLayout

    • Adds a widget to the grid; Qt positions it automatically.

      Parameters

      Returns void

      Write

    • Adds two widgets to the grid; Qt positions them automatically.

      Parameters

      Returns void

      Write

    • Adds a widget to the grid at the specified coordinates.

      Parameters

      • widget: QWidget

        Widget to add, such as QGroupBox or QLabel.

      • row: number

        Zero-based row number. Use -1 for the next free row.

      • column: number

        Zero-based column number.

      Returns void

      Write

    • Adds a widget to the grid at the specified coordinates with a cell span.

      Parameters

      • widget: QWidget

        Widget to add, such as QGroupBox or QLabel.

      • row: number

        Zero-based row number. Use -1 for the next free row.

      • column: number

        Zero-based column number.

      • rowSpan: number

        Number of rows occupied by the widget; specified together with colSpan.

      • colSpan: number

        Number of columns occupied by the widget; specified together with rowSpan.

      Returns void

      Write

    • Adds two widgets to one row: the first in column, the second in the next column.

      Parameters

      • widget1: QWidget

        First widget, usually QLabel.

      • widget2: QWidget

        Second widget (input field).

      • Optionalrow: number

        Zero-based row number; -1 selects the next free row.

      • Optionalcolumn: number

        Zero-based first column number.

      Returns void

      Write

    • Adds three widgets to one grid row, starting at column.

      Parameters

      • widget1: QWidget

        First widget, usually QLabel.

      • widget2: QWidget

        Second widget (input field).

      • widget3: QWidget

        Third widget, such as a warning icon.

      • Optionalrow: number

        Zero-based row number; -1 selects the next free row.

      • Optionalcolumn: number

        Zero-based first column number.

      Returns void

      Write