Skip to content

EFlexItem Flex item ​

import EUI 1.0

Examples ​

Weighted growth ​

QML sourceQML
Preview
Run the code to try the component

Edit text, properties, or events, then select Run.

Code runs in this browser Licenses

Weighted shrink ​

QML sourceQML
Preview
Run the code to try the component

Edit text, properties, or events, then select Run.

Code runs in this browser Licenses

Size constraints ​

QML sourceQML
Preview
Run the code to try the component

Edit text, properties, or events, then select Run.

Code runs in this browser Licenses

Ordering ​

QML sourceQML
Preview
Run the code to try the component

Edit text, properties, or events, then select Run.

Code runs in this browser Licenses

Per-item alignment ​

QML sourceQML
Preview
Run the code to try the component

Edit text, properties, or events, then select Run.

Code runs in this browser Licenses

Properties ​

PropertyDescriptionValues and default
alignSelfstring

Cross-axis alignment override for this item.

"auto" / "start"
"center" / "end"
"stretch"

Default"auto"
basisreal

Base main-axis size; a negative value uses the content implicit size.

Default-1
contentalias

Default content slot; aliases button text in EFloatButton.

Defaultbody.data
flexItemboolRead only

Identifies an item that supplies flex layout parameters.

DefaultComputed
growreal

Growth weight for spare main-axis space; 0 prevents growth.

Default0
maxSizereal

Maximum allowed main-axis size; Infinity means no limit.

DefaultInfinity
minSizereal

Minimum allowed main-axis size.

Default0
orderint

Layout order; equal values preserve declaration order.

Default0
shrinkreal

Shrink weight multiplied by the base size; 0 prevents shrinking.

Default1

Released under the MIT License. Third-party assets retain their own licenses.