PythonQt.QtGui.QGraphicsLinearLayout · declarations 001
Back to PythonQt.QtGui.QGraphicsLinearLayout
addItem
addItem(item: Any) -> None
X.addItem(item)
Supplemental documentation: Qt 5 reference:
void QGraphicsLinearLayout::addItem(QGraphicsLayoutItem *item)
This convenience function is equivalent to calling insertItem(-1, item).
Upstream PySide2 reference signatures (binding differences may apply):
addItem(self, item: PySide2.QtWidgets.QGraphicsLayoutItem) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicslinearlayout.html#addItem
addStretch
addStretch(stretch: int) -> None
X.addStretch(stretch)
Supplemental documentation: Qt 5 reference:
void QGraphicsLinearLayout::addStretch(int stretch \= 1)
This convenience function is equivalent to calling insertStretch(-1, stretch).
Upstream PySide2 reference signatures (binding differences may apply):
addStretch(self, stretch: int=...) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicslinearlayout.html#addStretch
alignment
alignment(item: Any) -> Any
X.alignment(item)
Supplemental documentation: Qt 5 reference:
Qt::Alignment QGraphicsLinearLayout::alignment(QGraphicsLayoutItem *item) const
Returns the alignment for item. The default alignment is Qt::AlignTop | Qt::AlignLeft.
The alignment decides how the item is positioned within its assigned space in the case where there's more space available in the layout than the widgets can occupy.
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/qgraphicslinearlayout.html#alignment
count
count() -> int
X.count() -> int
Supplemental documentation: Qt 5 reference:
[override virtual] int QGraphicsLinearLayout::count() const
Reimplements: QGraphicsLayout::count() const.
Upstream PySide2 reference signatures (binding differences may apply):
count(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qgraphicslinearlayout.html#count
dump
dump(indent: int) -> None
X.dump(indent)
Upstream PySide2 reference signatures (binding differences may apply):
dump(self, indent: int=...) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicslinearlayout.html#dump
insertItem
insertItem(index: int, item: Any) -> None
X.insertItem(index, item)
Supplemental documentation: Qt 5 reference:
void QGraphicsLinearLayout::insertItem(int index, QGraphicsLayoutItem *item)
Inserts item into the layout at index, or before any item that is currently at index.
See also addItem(), itemAt(), insertStretch(), and setItemSpacing().
Upstream PySide2 reference signatures (binding differences may apply):
insertItem(self, index: int, item: PySide2.QtWidgets.QGraphicsLayoutItem) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicslinearlayout.html#insertItem
insertStretch
insertStretch(index: int, stretch: int) -> None
X.insertStretch(index, stretch)
Supplemental documentation: Qt 5 reference:
void QGraphicsLinearLayout::insertStretch(int index, int stretch \= 1)
Inserts a stretch of stretch at index, or before any item that is currently at index.
See also addStretch(), setStretchFactor(), setItemSpacing(), and insertItem().
Upstream PySide2 reference signatures (binding differences may apply):
insertStretch(self, index: int, stretch: int=...) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicslinearlayout.html#insertStretch
invalidate
invalidate() -> None
X.invalidate()
Supplemental documentation: Qt 5 reference:
[override virtual] void QGraphicsLinearLayout::invalidate()
Reimplements: QGraphicsLayout::invalidate().
Upstream PySide2 reference signatures (binding differences may apply):
invalidate(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicslinearlayout.html#invalidate
itemAt
itemAt(index: int) -> Any
X.itemAt(index) -> PythonQt.QtGui.QGraphicsLayoutItem
Supplemental documentation: Qt 5 reference:
[override virtual] QGraphicsLayoutItem *QGraphicsLinearLayout::itemAt(int index) const
Reimplements: QGraphicsLayout::itemAt(int i) const.
When iterating from 0 and up, it will return the items in the visual arranged order.
Upstream PySide2 reference signatures (binding differences may apply):
itemAt(self, index: int) -> PySide2.QtWidgets.QGraphicsLayoutItem
Source: https://doc.qt.io/archives/qt-5.15/qgraphicslinearlayout.html#itemAt
itemSpacing
itemSpacing(index: int) -> float
X.itemSpacing(index) -> float
Supplemental documentation: Qt 5 reference:
qreal QGraphicsLinearLayout::itemSpacing(int index) const
Returns the spacing after item at index.
See also setItemSpacing().
Upstream PySide2 reference signatures (binding differences may apply):
itemSpacing(self, index: int) -> float
Source: https://doc.qt.io/archives/qt-5.15/qgraphicslinearlayout.html#itemSpacing
orientation
orientation() -> Any
X.orientation()
Supplemental documentation: Qt 5 reference:
Qt::Orientation QGraphicsLinearLayout::orientation() const
Returns the layout orientation.
See also setOrientation().
Upstream PySide2 reference signatures (binding differences may apply):
orientation(self) -> PySide2.QtCore.Qt.Orientation
Source: https://doc.qt.io/archives/qt-5.15/qgraphicslinearlayout.html#orientation
removeAt
removeAt(index: int) -> None
X.removeAt(index)
Supplemental documentation: Qt 5 reference:
[override virtual] void QGraphicsLinearLayout::removeAt(int index)
Reimplements: QGraphicsLayout::removeAt(int index).
Removes the item at index without destroying it. Ownership of the item is transferred to the caller.
See also removeItem() and insertItem().
Upstream PySide2 reference signatures (binding differences may apply):
removeAt(self, index: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicslinearlayout.html#removeAt
removeItem
removeItem(item: Any) -> None
X.removeItem(item)
Supplemental documentation: Qt 5 reference:
void QGraphicsLinearLayout::removeItem(QGraphicsLayoutItem *item)
Removes item from the layout without destroying it. Ownership of item is transferred to the caller.
See also removeAt() and insertItem().
Upstream PySide2 reference signatures (binding differences may apply):
removeItem(self, item: PySide2.QtWidgets.QGraphicsLayoutItem) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicslinearlayout.html#removeItem
setAlignment
setAlignment(item: Any, alignment: Any) -> None
X.setAlignment(item, alignment)
Supplemental documentation: Qt 5 reference:
void QGraphicsLinearLayout::setAlignment(QGraphicsLayoutItem *item, Qt::Alignment alignment)
Sets the alignment of item to alignment. If item's alignment changes, the layout is automatically invalidated.
See also alignment() and invalidate().
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/qgraphicslinearlayout.html#setAlignment
setGeometry
setGeometry(rect: Any) -> None
X.setGeometry(rect)
Supplemental documentation: Qt 5 reference:
[override virtual] void QGraphicsLinearLayout::setGeometry(const QRectF \&rect)
Reimplements: QGraphicsLayoutItem::setGeometry(const QRectF \&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/qgraphicslinearlayout.html#setGeometry
setItemSpacing
setItemSpacing(index: int, spacing: float) -> None
X.setItemSpacing(index, spacing)
Supplemental documentation: Qt 5 reference:
void QGraphicsLinearLayout::setItemSpacing(int index, qreal spacing)
Sets the spacing after item at index to spacing.
See also itemSpacing().
Upstream PySide2 reference signatures (binding differences may apply):
setItemSpacing(self, index: int, spacing: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicslinearlayout.html#setItemSpacing
setOrientation
setOrientation(orientation: Any) -> None
X.setOrientation(orientation)
Supplemental documentation: Qt 5 reference:
void QGraphicsLinearLayout::setOrientation(Qt::Orientation orientation)
Change the layout orientation to orientation. Changing the layout orientation will automatically invalidate the layout.
See also orientation().
Upstream PySide2 reference signatures (binding differences may apply):
setOrientation(self, orientation: PySide2.QtCore.Qt.Orientation) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicslinearlayout.html#setOrientation
setSpacing
setSpacing(spacing: float) -> None
X.setSpacing(spacing)
Supplemental documentation: Qt 5 reference:
void QGraphicsLinearLayout::setSpacing(qreal spacing)
Sets the layout's spacing to spacing. Spacing refers to the vertical and horizontal distances between items.
See also spacing(), setItemSpacing(), setStretchFactor(), and QGraphicsGridLayout::setSpacing().
Upstream PySide2 reference signatures (binding differences may apply):
setSpacing(self, spacing: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicslinearlayout.html#setSpacing
setStretchFactor
setStretchFactor(item: Any, stretch: int) -> None
X.setStretchFactor(item, stretch)
Supplemental documentation: Qt 5 reference:
void QGraphicsLinearLayout::setStretchFactor(QGraphicsLayoutItem *item, int stretch)
Sets the stretch factor for item to stretch. If an item's stretch factor changes, this function will invalidate the layout.
Setting stretch to 0 removes the stretch factor from the item, and is effectively equivalent to setting stretch to 1.
See also stretchFactor().
Upstream PySide2 reference signatures (binding differences may apply):
setStretchFactor(self, item: PySide2.QtWidgets.QGraphicsLayoutItem, stretch: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicslinearlayout.html#setStretchFactor
sizeHint
sizeHint(which: Any, constraint: Any) -> Any
X.sizeHint(which, constraint) -> PythonQt.QtCore.QSizeF
Supplemental documentation: Qt 5 reference:
[override virtual] QSizeF QGraphicsLinearLayout::sizeHint(Qt::SizeHint which, const QSizeF \&constraint \= QSizeF()) const
Reimplements: QGraphicsLayoutItem::sizeHint(Qt::SizeHint which, const QSizeF \&constraint) const.
Upstream PySide2 reference signatures (binding differences may apply):
sizeHint(self, which: PySide2.QtCore.Qt.SizeHint, constraint: PySide2.QtCore.QSizeF=...) -> PySide2.QtCore.QSizeF
Source: https://doc.qt.io/archives/qt-5.15/qgraphicslinearlayout.html#sizeHint
spacing
spacing() -> float
X.spacing() -> float
Supplemental documentation: Qt 5 reference:
qreal QGraphicsLinearLayout::spacing() const
Returns the layout's spacing. Spacing refers to the vertical and horizontal distances between items.
See also setSpacing().
Upstream PySide2 reference signatures (binding differences may apply):
spacing(self) -> float
Source: https://doc.qt.io/archives/qt-5.15/qgraphicslinearlayout.html#spacing
stretchFactor
stretchFactor(item: Any) -> int
X.stretchFactor(item) -> int
Supplemental documentation: Qt 5 reference:
int QGraphicsLinearLayout::stretchFactor(QGraphicsLayoutItem *item) const
Returns the stretch factor for item. The default stretch factor is 0, meaning that the item has no assigned stretch factor.
See also setStretchFactor().
Upstream PySide2 reference signatures (binding differences may apply):
stretchFactor(self, item: PySide2.QtWidgets.QGraphicsLayoutItem) -> int
Source: https://doc.qt.io/archives/qt-5.15/qgraphicslinearlayout.html#stretchFactor