flow_layout =========== .. py:module:: qfluentwidgets.components.layout.flow_layout Module Contents --------------- .. autoapisummary:: qfluentwidgets.components.layout.flow_layout.FlowLayout .. py:class:: FlowLayout(parent=None, needAni=False, isTight=False) Bases: :py:obj:`PyQt5.QtWidgets.QLayout` Flow layout .. py:attribute:: duration :value: 300 .. py:attribute:: ease .. py:attribute:: needAni .. py:attribute:: isTight .. py:method:: addItem(item) .. py:method:: insertItem(index, item) .. py:method:: addWidget(w) .. py:method:: insertWidget(index, w) .. py:method:: 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 .. py:method:: count() .. py:method:: itemAt(index: int) .. py:method:: takeAt(index: int) .. py:method:: removeWidget(widget) .. py:method:: removeAllWidgets() remove all widgets from layout .. py:method:: takeAllWidgets() remove all widgets from layout and delete them .. py:method:: expandingDirections() .. py:method:: hasHeightForWidth() .. py:method:: heightForWidth(width: int) get the minimal height according to width .. py:method:: setGeometry(rect: PyQt5.QtCore.QRect) .. py:method:: sizeHint() .. py:method:: minimumSize() .. py:method:: setVerticalSpacing(spacing: int) set vertical spacing between widgets .. py:method:: verticalSpacing() get vertical spacing between widgets .. py:method:: setHorizontalSpacing(spacing: int) set horizontal spacing between widgets .. py:method:: horizontalSpacing() get horizontal spacing between widgets .. py:method:: eventFilter(obj: PyQt5.QtCore.QObject, event: PyQt5.QtCore.QEvent) -> bool