layout¶
Package Contents¶
Expand layout |
|
Flow layout |
|
Vertical box layout |
- class ExpandLayout(parent=None)¶
Bases:
PyQt5.QtWidgets.QLayout
Expand layout
- addWidget(widget: PyQt5.QtWidgets.QWidget)¶
- addItem(item)¶
- count()¶
- itemAt(index)¶
- takeAt(index)¶
- expandingDirections()¶
- hasHeightForWidth()¶
- heightForWidth(width)¶
get the minimal height according to width
- setGeometry(rect)¶
- sizeHint()¶
- minimumSize()¶
- eventFilter(obj, e)¶
- class FlowLayout(parent=None, needAni=False, isTight=False)¶
Bases:
PyQt5.QtWidgets.QLayout
Flow layout
- addItem(item)¶
- addWidget(w)¶
- setAnimation(duration, ease=QEasingCurve.Linear)¶
set the moving animation
Parameters¶
- duration: int
the duration of animation in milliseconds
- ease: QEasingCurve
the easing curve of animation
- count()¶
- itemAt(index: int)¶
- takeAt(index: int)¶
- removeWidget(widget)¶
- removeAllWidgets()¶
remove all widgets from layout
- takeAllWidgets()¶
remove all widgets from layout and delete them
- expandingDirections()¶
- hasHeightForWidth()¶
- heightForWidth(width: int)¶
get the minimal height according to width
- setGeometry(rect: PyQt5.QtCore.QRect)¶
- sizeHint()¶
- minimumSize()¶
- setVerticalSpacing(spacing: int)¶
set vertical spacing between widgets
- verticalSpacing()¶
get vertical spacing between widgets
- setHorizontalSpacing(spacing: int)¶
set horizontal spacing between widgets
- horizontalSpacing()¶
get horizontal spacing between widgets
- eventFilter(obj: PyQt5.QtCore.QObject, event: PyQt5.QtCore.QEvent) bool ¶
- class VBoxLayout(parent)¶
Bases:
PyQt5.QtWidgets.QVBoxLayout
Vertical box layout
- addWidgets(widgets: List[PyQt5.QtWidgets.QWidget], stretch=0, alignment=Qt.AlignTop)¶
add widgets to layout
- addWidget(widget: PyQt5.QtWidgets.QWidget, stretch=0, alignment=Qt.AlignTop)¶
add widget to layout
- removeWidget(widget: PyQt5.QtWidgets.QWidget)¶
remove widget from layout but not delete it
- deleteWidget(widget: PyQt5.QtWidgets.QWidget)¶
remove widget from layout and delete it
- removeAllWidget()¶
remove all widgets from layout