flow_layout¶
Module Contents¶
Flow layout |
- 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 ¶