QBoxLayout Class Reference
[QtGui module]
Inherits QLayout.
Inherited by QHBoxLayout and QVBoxLayout.
Types
- enum Direction { LeftToRight, RightToLeft, TopToBottom, BottomToTop, Down, Up }
Methods
- __init__ (self, Direction, QWidget parent = None)
- addItem (self, QLayoutItem)
- addLayout (self, QLayout, int stretch = 0)
- addSpacerItem (self, QSpacerItem)
- addSpacing (self, int)
- addStretch (self, int stretch = 0)
- addStrut (self, int)
- addWidget (self, QWidget, int stretch = 0, Qt.Alignment alignment = 0)
- int count (self)
- Direction direction (self)
- Qt.Orientations expandingDirections (self)
- bool hasHeightForWidth (self)
- int heightForWidth (self, int)
- insertItem (self, int, QLayoutItem)
- insertLayout (self, int, QLayout, int stretch = 0)
- insertSpacerItem (self, int, QSpacerItem)
- insertSpacing (self, int, int)
- insertStretch (self, int, int stretch = 0)
- insertWidget (self, int, QWidget, int stretch = 0, Qt.Alignment alignment = 0)
- invalidate (self)
- QLayoutItem itemAt (self, int)
- QSize maximumSize (self)
- int minimumHeightForWidth (self, int)
- QSize minimumSize (self)
- setDirection (self, Direction)
- setGeometry (self, QRect)
- setSpacing (self, int)
- setStretch (self, int, int)
- bool setStretchFactor (self, QWidget, int)
- bool setStretchFactor (self, QLayout, int)
- QSize sizeHint (self)
- int spacing (self)
- int stretch (self, int)
- QLayoutItem takeAt (self, int)
Detailed Description
Type Documentation
QBoxLayout.Direction
Method Documentation
QBoxLayout.__init__ (self, Direction, QWidget parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
QBoxLayout.addItem (self, QLayoutItem)
The QLayoutItem argument has it's ownership transferred to Qt.
QBoxLayout.addLayout (self, QLayout, int stretch = 0)
The QLayout argument has it's ownership transferred to Qt.
QBoxLayout.addSpacerItem (self, QSpacerItem)
The QSpacerItem argument has it's ownership transferred to Qt.
QBoxLayout.addSpacing (self, int)
QBoxLayout.addStretch (self, int stretch = 0)
QBoxLayout.addStrut (self, int)
QBoxLayout.addWidget (self, QWidget, int stretch = 0, Qt.Alignment alignment = 0)
The QWidget argument has it's ownership transferred to Qt.
int QBoxLayout.count (self)
Direction QBoxLayout.direction (self)
Qt.Orientations QBoxLayout.expandingDirections (self)
bool QBoxLayout.hasHeightForWidth (self)
int QBoxLayout.heightForWidth (self, int)
QBoxLayout.insertItem (self, int, QLayoutItem)
The QLayoutItem argument, if not None, causes self to be owned by Qt instead of PyQt.
QBoxLayout.insertLayout (self, int, QLayout, int stretch = 0)
The QLayout argument has it's ownership transferred to Qt.
QBoxLayout.insertSpacerItem (self, int, QSpacerItem)
The QSpacerItem argument has it's ownership transferred to Qt.
QBoxLayout.insertSpacing (self, int, int)
QBoxLayout.insertStretch (self, int, int stretch = 0)
QBoxLayout.insertWidget (self, int, QWidget, int stretch = 0, Qt.Alignment alignment = 0)
The QWidget argument has it's ownership transferred to Qt.
QBoxLayout.invalidate (self)
QLayoutItem QBoxLayout.itemAt (self, int)
QSize QBoxLayout.maximumSize (self)
int QBoxLayout.minimumHeightForWidth (self, int)
QSize QBoxLayout.minimumSize (self)
QBoxLayout.setDirection (self, Direction)
QBoxLayout.setGeometry (self, QRect)
QBoxLayout.setSpacing (self, int)
QBoxLayout.setStretch (self, int, int)
bool QBoxLayout.setStretchFactor (self, QWidget, int)
bool QBoxLayout.setStretchFactor (self, QLayout, int)
QSize QBoxLayout.sizeHint (self)
int QBoxLayout.spacing (self)
int QBoxLayout.stretch (self, int)
QLayoutItem QBoxLayout.takeAt (self, int)
The QLayoutItem result