Skip to content

PythonQt.QtGui.QGraphicsGridLayout · declarations 001

Back to PythonQt.QtGui.QGraphicsGridLayout

addItem

addItem(item: Any, row: int, column: int, rowSpan: Any, columnSpan: Any, alignment: Any) -> None

X.addItem(item, row, column, rowSpan, columnSpan, alignment)

Supplemental documentation: Qt 5 reference:

void QGraphicsGridLayout::addItem(QGraphicsLayoutItem *item, int row, int column, int rowSpan, int columnSpan, Qt::Alignment alignment \= Qt::Alignment())

Adds item to the grid on row and column. You can specify a rowSpan and columnSpan and an optional alignment.

void QGraphicsGridLayout::addItem(QGraphicsLayoutItem *item, int row, int column, Qt::Alignment alignment \= Qt::Alignment())

Adds item to the grid on row and column. You can specify an optional alignment for item.

Upstream PySide2 reference signatures (binding differences may apply):

addItem(self, item: PySide2.QtWidgets.QGraphicsLayoutItem, row: int, column: int, alignment: PySide2.QtCore.Qt.Alignment=...) -> None
addItem(self, item: PySide2.QtWidgets.QGraphicsLayoutItem, row: int, column: int, rowSpan: int, columnSpan: int, alignment: PySide2.QtCore.Qt.Alignment=...) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#addItem

alignment

alignment(item: Any) -> Any

X.alignment(item)

Supplemental documentation: Qt 5 reference:

Qt::Alignment QGraphicsGridLayout::alignment(QGraphicsLayoutItem *item) const

Returns the alignment for item.

See also setAlignment().

Upstream PySide2 reference signatures (binding differences may apply):

alignment(self, item: PySide2.QtWidgets.QGraphicsLayoutItem) -> PySide2.QtCore.Qt.Alignment

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#alignment

columnAlignment

columnAlignment(column: int) -> Any

X.columnAlignment(column)

Supplemental documentation: Qt 5 reference:

Qt::Alignment QGraphicsGridLayout::columnAlignment(int column) const

Returns the alignment for column.

See also setColumnAlignment().

Upstream PySide2 reference signatures (binding differences may apply):

columnAlignment(self, column: int) -> PySide2.QtCore.Qt.Alignment

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#columnAlignment

columnCount

columnCount() -> int

X.columnCount() -> int

Supplemental documentation: Qt 5 reference:

int QGraphicsGridLayout::columnCount() const

Returns the number of columns in the grid layout. This is always one more than the index of the last column that is occupied by a layout item (empty columns are counted except for those at the end).

Upstream PySide2 reference signatures (binding differences may apply):

columnCount(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#columnCount

columnMaximumWidth

columnMaximumWidth(column: int) -> float

X.columnMaximumWidth(column) -> float

Supplemental documentation: Qt 5 reference:

qreal QGraphicsGridLayout::columnMaximumWidth(int column) const

Returns the maximum width for column.

See also setColumnMaximumWidth().

Upstream PySide2 reference signatures (binding differences may apply):

columnMaximumWidth(self, column: int) -> float

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#columnMaximumWidth

columnMinimumWidth

columnMinimumWidth(column: int) -> float

X.columnMinimumWidth(column) -> float

Supplemental documentation: Qt 5 reference:

qreal QGraphicsGridLayout::columnMinimumWidth(int column) const

Returns the minimum width for column.

See also setColumnMinimumWidth().

Upstream PySide2 reference signatures (binding differences may apply):

columnMinimumWidth(self, column: int) -> float

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#columnMinimumWidth

columnPreferredWidth

columnPreferredWidth(column: int) -> float

X.columnPreferredWidth(column) -> float

Supplemental documentation: Qt 5 reference:

qreal QGraphicsGridLayout::columnPreferredWidth(int column) const

Returns the preferred width for column.

See also setColumnPreferredWidth().

Upstream PySide2 reference signatures (binding differences may apply):

columnPreferredWidth(self, column: int) -> float

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#columnPreferredWidth

columnSpacing

columnSpacing(column: int) -> float

X.columnSpacing(column) -> float

Supplemental documentation: Qt 5 reference:

qreal QGraphicsGridLayout::columnSpacing(int column) const

Returns the column spacing for column.

See also setColumnSpacing().

Upstream PySide2 reference signatures (binding differences may apply):

columnSpacing(self, column: int) -> float

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#columnSpacing

columnStretchFactor

columnStretchFactor(column: int) -> int

X.columnStretchFactor(column) -> int

Supplemental documentation: Qt 5 reference:

int QGraphicsGridLayout::columnStretchFactor(int column) const

Returns the stretch factor for column.

See also setColumnStretchFactor().

Upstream PySide2 reference signatures (binding differences may apply):

columnStretchFactor(self, column: int) -> int

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#columnStretchFactor

count

count() -> int

X.count() -> int

Supplemental documentation: Qt 5 reference:

[override virtual] int QGraphicsGridLayout::count() const

Reimplements: QGraphicsLayout::count() const.

Returns the number of layout items in this grid layout.

Upstream PySide2 reference signatures (binding differences may apply):

count(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#count

horizontalSpacing

horizontalSpacing() -> float

X.horizontalSpacing() -> float

Supplemental documentation: Qt 5 reference:

qreal QGraphicsGridLayout::horizontalSpacing() const

Returns the default horizontal spacing for the grid layout.

See also setHorizontalSpacing().

Upstream PySide2 reference signatures (binding differences may apply):

horizontalSpacing(self) -> float

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#horizontalSpacing

invalidate

invalidate() -> None

X.invalidate()

Supplemental documentation: Qt 5 reference:

[override virtual] void QGraphicsGridLayout::invalidate()

Reimplements: QGraphicsLayout::invalidate().

Upstream PySide2 reference signatures (binding differences may apply):

invalidate(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#invalidate

itemAt

itemAt(index: Any) -> Any

X.itemAt(index) -> PythonQt.QtGui.QGraphicsLayoutItem

Supplemental documentation: Qt 5 reference:

QGraphicsLayoutItem *QGraphicsGridLayout::itemAt(int row, int column) const

Returns a pointer to the layout item at (row, column).

[override virtual] QGraphicsLayoutItem *QGraphicsGridLayout::itemAt(int index) const

Reimplements: QGraphicsLayout::itemAt(int i) const.

Returns the layout item at index, or nullptr if there is no layout item at this index.

Upstream PySide2 reference signatures (binding differences may apply):

itemAt(self, index: int) -> PySide2.QtWidgets.QGraphicsLayoutItem
itemAt(self, row: int, column: int) -> PySide2.QtWidgets.QGraphicsLayoutItem

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#itemAt

removeAt

removeAt(index: int) -> None

X.removeAt(index)

Supplemental documentation: Qt 5 reference:

[override virtual] void QGraphicsGridLayout::removeAt(int index)

Reimplements: QGraphicsLayout::removeAt(int index).

Removes the layout item at index without destroying it. Ownership of the item is transferred to the caller.

See also addItem().

Upstream PySide2 reference signatures (binding differences may apply):

removeAt(self, index: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#removeAt

removeItem

removeItem(item: Any) -> None

X.removeItem(item)

Supplemental documentation: Qt 5 reference:

void QGraphicsGridLayout::removeItem(QGraphicsLayoutItem *item)

Removes the layout item item without destroying it. Ownership of the item is transferred to the caller.

See also addItem().

Upstream PySide2 reference signatures (binding differences may apply):

removeItem(self, item: PySide2.QtWidgets.QGraphicsLayoutItem) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#removeItem

rowAlignment

rowAlignment(row: int) -> Any

X.rowAlignment(row)

Supplemental documentation: Qt 5 reference:

Qt::Alignment QGraphicsGridLayout::rowAlignment(int row) const

Returns the alignment of row.

See also setRowAlignment().

Upstream PySide2 reference signatures (binding differences may apply):

rowAlignment(self, row: int) -> PySide2.QtCore.Qt.Alignment

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#rowAlignment

rowCount

rowCount() -> int

X.rowCount() -> int

Supplemental documentation: Qt 5 reference:

int QGraphicsGridLayout::rowCount() const

Returns the number of rows in the grid layout. This is always one more than the index of the last row that is occupied by a layout item (empty rows are counted except for those at the end).

Upstream PySide2 reference signatures (binding differences may apply):

rowCount(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#rowCount

rowMaximumHeight

rowMaximumHeight(row: int) -> float

X.rowMaximumHeight(row) -> float

Supplemental documentation: Qt 5 reference:

qreal QGraphicsGridLayout::rowMaximumHeight(int row) const

Returns the maximum height for row, row.

See also setRowMaximumHeight().

Upstream PySide2 reference signatures (binding differences may apply):

rowMaximumHeight(self, row: int) -> float

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#rowMaximumHeight

rowMinimumHeight

rowMinimumHeight(row: int) -> float

X.rowMinimumHeight(row) -> float

Supplemental documentation: Qt 5 reference:

qreal QGraphicsGridLayout::rowMinimumHeight(int row) const

Returns the minimum height for row, row.

See also setRowMinimumHeight().

Upstream PySide2 reference signatures (binding differences may apply):

rowMinimumHeight(self, row: int) -> float

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#rowMinimumHeight

rowPreferredHeight

rowPreferredHeight(row: int) -> float

X.rowPreferredHeight(row) -> float

Supplemental documentation: Qt 5 reference:

qreal QGraphicsGridLayout::rowPreferredHeight(int row) const

Returns the preferred height for row, row.

See also setRowPreferredHeight().

Upstream PySide2 reference signatures (binding differences may apply):

rowPreferredHeight(self, row: int) -> float

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#rowPreferredHeight

rowSpacing

rowSpacing(row: int) -> float

X.rowSpacing(row) -> float

Supplemental documentation: Qt 5 reference:

qreal QGraphicsGridLayout::rowSpacing(int row) const

Returns the row spacing for row.

See also setRowSpacing().

Upstream PySide2 reference signatures (binding differences may apply):

rowSpacing(self, row: int) -> float

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#rowSpacing

rowStretchFactor

rowStretchFactor(row: int) -> int

X.rowStretchFactor(row) -> int

Supplemental documentation: Qt 5 reference:

int QGraphicsGridLayout::rowStretchFactor(int row) const

Returns the stretch factor for row.

See also setRowStretchFactor().

Upstream PySide2 reference signatures (binding differences may apply):

rowStretchFactor(self, row: int) -> int

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#rowStretchFactor

setAlignment

setAlignment(item: Any, alignment: Any) -> None

X.setAlignment(item, alignment)

Supplemental documentation: Qt 5 reference:

void QGraphicsGridLayout::setAlignment(QGraphicsLayoutItem *item, Qt::Alignment alignment)

Sets the alignment for item to alignment.

See also alignment().

Upstream PySide2 reference signatures (binding differences may apply):

setAlignment(self, item: PySide2.QtWidgets.QGraphicsLayoutItem, alignment: PySide2.QtCore.Qt.Alignment) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#setAlignment

setColumnAlignment

setColumnAlignment(column: int, alignment: Any) -> None

X.setColumnAlignment(column, alignment)

Supplemental documentation: Qt 5 reference:

void QGraphicsGridLayout::setColumnAlignment(int column, Qt::Alignment alignment)

Sets the alignment for column to alignment.

See also columnAlignment().

Upstream PySide2 reference signatures (binding differences may apply):

setColumnAlignment(self, column: int, alignment: PySide2.QtCore.Qt.Alignment) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#setColumnAlignment

setColumnFixedWidth

setColumnFixedWidth(column: int, width: float) -> None

X.setColumnFixedWidth(column, width)

Supplemental documentation: Qt 5 reference:

void QGraphicsGridLayout::setColumnFixedWidth(int column, qreal width)

Sets the fixed width of column to width.

Upstream PySide2 reference signatures (binding differences may apply):

setColumnFixedWidth(self, column: int, width: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#setColumnFixedWidth

setColumnMaximumWidth

setColumnMaximumWidth(column: int, width: float) -> None

X.setColumnMaximumWidth(column, width)

Supplemental documentation: Qt 5 reference:

void QGraphicsGridLayout::setColumnMaximumWidth(int column, qreal width)

Sets the maximum width of column to width.

See also columnMaximumWidth().

Upstream PySide2 reference signatures (binding differences may apply):

setColumnMaximumWidth(self, column: int, width: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#setColumnMaximumWidth

setColumnMinimumWidth

setColumnMinimumWidth(column: int, width: float) -> None

X.setColumnMinimumWidth(column, width)

Supplemental documentation: Qt 5 reference:

void QGraphicsGridLayout::setColumnMinimumWidth(int column, qreal width)

Sets the minimum width for column to width.

See also columnMinimumWidth().

Upstream PySide2 reference signatures (binding differences may apply):

setColumnMinimumWidth(self, column: int, width: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#setColumnMinimumWidth

setColumnPreferredWidth

setColumnPreferredWidth(column: int, width: float) -> None

X.setColumnPreferredWidth(column, width)

Supplemental documentation: Qt 5 reference:

void QGraphicsGridLayout::setColumnPreferredWidth(int column, qreal width)

Sets the preferred width for column to width.

See also columnPreferredWidth().

Upstream PySide2 reference signatures (binding differences may apply):

setColumnPreferredWidth(self, column: int, width: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#setColumnPreferredWidth

setColumnSpacing

setColumnSpacing(column: int, spacing: float) -> None

X.setColumnSpacing(column, spacing)

Supplemental documentation: Qt 5 reference:

void QGraphicsGridLayout::setColumnSpacing(int column, qreal spacing)

Sets the spacing for column to spacing.

See also columnSpacing().

Upstream PySide2 reference signatures (binding differences may apply):

setColumnSpacing(self, column: int, spacing: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#setColumnSpacing

setColumnStretchFactor

setColumnStretchFactor(column: int, stretch: int) -> None

X.setColumnStretchFactor(column, stretch)

Supplemental documentation: Qt 5 reference:

void QGraphicsGridLayout::setColumnStretchFactor(int column, int stretch)

Sets the stretch factor for column to stretch.

See also columnStretchFactor().

Upstream PySide2 reference signatures (binding differences may apply):

setColumnStretchFactor(self, column: int, stretch: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#setColumnStretchFactor

setGeometry

setGeometry(rect: Any) -> None

X.setGeometry(rect)

Supplemental documentation: Qt 5 reference:

[override virtual] void QGraphicsGridLayout::setGeometry(const QRectF \&rect)

Reimplements: QGraphicsLayoutItem::setGeometry(const QRectF \&rect).

Sets the bounding geometry of the grid layout to rect.

Upstream PySide2 reference signatures (binding differences may apply):

setGeometry(self, rect: PySide2.QtCore.QRectF) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#setGeometry

setHorizontalSpacing

setHorizontalSpacing(spacing: float) -> None

X.setHorizontalSpacing(spacing)

Supplemental documentation: Qt 5 reference:

void QGraphicsGridLayout::setHorizontalSpacing(qreal spacing)

Sets the default horizontal spacing for the grid layout to spacing.

See also horizontalSpacing().

Upstream PySide2 reference signatures (binding differences may apply):

setHorizontalSpacing(self, spacing: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#setHorizontalSpacing

setRowAlignment

setRowAlignment(row: int, alignment: Any) -> None

X.setRowAlignment(row, alignment)

Supplemental documentation: Qt 5 reference:

void QGraphicsGridLayout::setRowAlignment(int row, Qt::Alignment alignment)

Sets the alignment of row to alignment.

See also rowAlignment().

Upstream PySide2 reference signatures (binding differences may apply):

setRowAlignment(self, row: int, alignment: PySide2.QtCore.Qt.Alignment) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#setRowAlignment

setRowFixedHeight

setRowFixedHeight(row: int, height: float) -> None

X.setRowFixedHeight(row, height)

Supplemental documentation: Qt 5 reference:

void QGraphicsGridLayout::setRowFixedHeight(int row, qreal height)

Sets the fixed height for row, row, to height.

Upstream PySide2 reference signatures (binding differences may apply):

setRowFixedHeight(self, row: int, height: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#setRowFixedHeight

setRowMaximumHeight

setRowMaximumHeight(row: int, height: float) -> None

X.setRowMaximumHeight(row, height)

Supplemental documentation: Qt 5 reference:

void QGraphicsGridLayout::setRowMaximumHeight(int row, qreal height)

Sets the maximum height for row, row, to height.

See also rowMaximumHeight().

Upstream PySide2 reference signatures (binding differences may apply):

setRowMaximumHeight(self, row: int, height: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#setRowMaximumHeight

setRowMinimumHeight

setRowMinimumHeight(row: int, height: float) -> None

X.setRowMinimumHeight(row, height)

Supplemental documentation: Qt 5 reference:

void QGraphicsGridLayout::setRowMinimumHeight(int row, qreal height)

Sets the minimum height for row, row, to height.

See also rowMinimumHeight().

Upstream PySide2 reference signatures (binding differences may apply):

setRowMinimumHeight(self, row: int, height: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#setRowMinimumHeight

setRowPreferredHeight

setRowPreferredHeight(row: int, height: float) -> None

X.setRowPreferredHeight(row, height)

Supplemental documentation: Qt 5 reference:

void QGraphicsGridLayout::setRowPreferredHeight(int row, qreal height)

Sets the preferred height for row, row, to height.

See also rowPreferredHeight().

Upstream PySide2 reference signatures (binding differences may apply):

setRowPreferredHeight(self, row: int, height: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#setRowPreferredHeight

setRowSpacing

setRowSpacing(row: int, spacing: float) -> None

X.setRowSpacing(row, spacing)

Supplemental documentation: Qt 5 reference:

void QGraphicsGridLayout::setRowSpacing(int row, qreal spacing)

Sets the spacing for row to spacing.

See also rowSpacing().

Upstream PySide2 reference signatures (binding differences may apply):

setRowSpacing(self, row: int, spacing: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#setRowSpacing

setRowStretchFactor

setRowStretchFactor(row: int, stretch: int) -> None

X.setRowStretchFactor(row, stretch)

Supplemental documentation: Qt 5 reference:

void QGraphicsGridLayout::setRowStretchFactor(int row, int stretch)

Sets the stretch factor for row to stretch.

See also rowStretchFactor().

Upstream PySide2 reference signatures (binding differences may apply):

setRowStretchFactor(self, row: int, stretch: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#setRowStretchFactor

setSpacing

setSpacing(spacing: float) -> None

X.setSpacing(spacing)

Supplemental documentation: Qt 5 reference:

void QGraphicsGridLayout::setSpacing(qreal spacing)

Sets the grid layout's default spacing, both vertical and horizontal, to spacing.

See also rowSpacing() and columnSpacing().

Upstream PySide2 reference signatures (binding differences may apply):

setSpacing(self, spacing: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsgridlayout.html#setSpacing