QLayout Class Reference
[QtGui module]
Inherits QObject and QLayoutItem.
Inherited by QBoxLayout, QFormLayout, QGridLayout and QStackedLayout.
Types
- enum SizeConstraint { SetDefaultConstraint, SetNoConstraint, SetMinimumSize, SetFixedSize, SetMaximumSize, SetMinAndMaxSize }
Methods
- __init__ (self, QWidget)
- __init__ (self)
- bool activate (self)
- addChildLayout (self, QLayout)
- addChildWidget (self, QWidget)
- addItem (self, QLayoutItem)
- addWidget (self, QWidget)
- QRect alignmentRect (self, QRect)
- childEvent (self, QChildEvent)
- QMargins contentsMargins (self)
- QRect contentsRect (self)
- int count (self)
- Qt.Orientations expandingDirections (self)
- QRect geometry (self)
- (int, int, int, int) getContentsMargins (self)
- int indexOf (self, QWidget)
- invalidate (self)
- bool isEmpty (self)
- bool isEnabled (self)
- QLayoutItem itemAt (self, int)
- QLayout layout (self)
- int margin (self)
- QSize maximumSize (self)
- QWidget menuBar (self)
- QSize minimumSize (self)
- QWidget parentWidget (self)
- removeItem (self, QLayoutItem)
- removeWidget (self, QWidget)
- bool setAlignment (self, QWidget, Qt.Alignment)
- bool setAlignment (self, QLayout, Qt.Alignment)
- setAlignment (self, Qt.Alignment)
- setContentsMargins (self, int, int, int, int)
- setContentsMargins (self, QMargins)
- setEnabled (self, bool)
- setGeometry (self, QRect)
- setMargin (self, int)
- setMenuBar (self, QWidget)
- setSizeConstraint (self, SizeConstraint)
- setSpacing (self, int)
- SizeConstraint sizeConstraint (self)
- int spacing (self)
- QLayoutItem takeAt (self, int)
- int totalHeightForWidth (self, int)
- QSize totalMaximumSize (self)
- QSize totalMinimumSize (self)
- QSize totalSizeHint (self)
- update (self)
- widgetEvent (self, QEvent)
Static Methods
Special Methods
Detailed Description
Type Documentation
QLayout.SizeConstraint
Method Documentation
QLayout.__init__ (self, QWidget)
The QWidget argument, if not None, causes self to be owned by Qt instead of PyQt.
QLayout.__init__ (self)
bool QLayout.activate (self)
QLayout.addChildLayout (self, QLayout)
The QLayout argument has it's ownership transferred to Qt.
QLayout.addChildWidget (self, QWidget)
The QWidget argument has it's ownership transferred to Qt.
QLayout.addItem (self, QLayoutItem)
This method is abstract and should be reimplemented in any sub-class.
The QLayoutItem argument has it's ownership transferred to Qt.
QLayout.addWidget (self, QWidget)
The QWidget argument has it's ownership transferred to Qt.
QRect QLayout.alignmentRect (self, QRect)
QLayout.childEvent (self, QChildEvent)
QSize QLayout.closestAcceptableSize (QWidget, QSize)
QMargins QLayout.contentsMargins (self)
QRect QLayout.contentsRect (self)
int QLayout.count (self)
This method is abstract and should be reimplemented in any sub-class.
Qt.Orientations QLayout.expandingDirections (self)
QRect QLayout.geometry (self)
(int, int, int, int) QLayout.getContentsMargins (self)
int QLayout.indexOf (self, QWidget)
QLayout.invalidate (self)
bool QLayout.isEmpty (self)
bool QLayout.isEnabled (self)
QLayoutItem QLayout.itemAt (self, int)
This method is abstract and should be reimplemented in any sub-class.
QLayout QLayout.layout (self)
int QLayout.margin (self)
QSize QLayout.maximumSize (self)
QWidget QLayout.menuBar (self)
QSize QLayout.minimumSize (self)
QWidget QLayout.parentWidget (self)
QLayout.removeItem (self, QLayoutItem)
The QLayoutItem argument
QLayout.removeWidget (self, QWidget)
QLayout.setAlignment (self, Qt.Alignment)
QLayout.setContentsMargins (self, int, int, int, int)
QLayout.setContentsMargins (self, QMargins)
QLayout.setEnabled (self, bool)
QLayout.setGeometry (self, QRect)
QLayout.setMargin (self, int)
QLayout.setMenuBar (self, QWidget)
The QWidget argument has it's ownership transferred to Qt.
QLayout.setSizeConstraint (self, SizeConstraint)
QLayout.setSpacing (self, int)
SizeConstraint QLayout.sizeConstraint (self)
int QLayout.spacing (self)
QLayoutItem QLayout.takeAt (self, int)
This method is abstract and should be reimplemented in any sub-class.
The QLayoutItem result
int QLayout.totalHeightForWidth (self, int)
QSize QLayout.totalMaximumSize (self)
QSize QLayout.totalMinimumSize (self)
QSize QLayout.totalSizeHint (self)
QLayout.update (self)
QLayout.widgetEvent (self, QEvent)
QLayout.__len__ (self)