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 FlowView element is implemented in Python because Qt does not provide any native QLayout which behaves this way. Currently the FlowView has worst-case O(N 2) time complexity for inserting children because of technical limitations of the Qt API.

Props

All props for QtWidgetElement.

Methods

__init__(**kwargs)

register_ref(reference)

Registers provided Reference to this Element.

set_key(key)

Set the key of an Element.

Attributes

children

The children of this Element.

props

The props of this Element.

underlying

The underlying QWidget, which may not exist if this Element has not rendered.