edifice.FlowView#
- class edifice.FlowView(**kwargs)[source]#
Bases:
_LinearView[QWidget]Flow-style layout.
Displays its children horizonally left-to-right and wraps into multiple rows.
The height of each row is determined by the tallest child in that row.
This component has similar behavior to an HTML CSS wrap flex container.
Note
The
FlowViewelement is implemented in Python because Qt does not provide any nativeQLayoutwhich behaves this way. Currently theFlowViewhas O(N) time complexity for inserting a child at the beginning of N children because of technical limitations of the Qt API.Props
All props for
QtWidgetElement.Methods
__init__(**kwargs)register_ref(reference)Registers provided
Referenceto this Element.set_key(key)Set the key of an
Element.Attributes
childrenThe children of this Element.
propsThe props of this Element.
underlyingThe underlying QWidget, which may not exist if this Element has not rendered.