Details
-
Sub-task
-
Resolution: Done
-
P2: Important
-
2c7cab4172f1acc86fd49345a2847417e162f2c3
Description
Provide an attached property-based API for setting the layout direction for QML elements.
LayoutMirroring.enabled is used for mirroring the element layouts. LayoutMirroring.childrenInherit is used for determining whether the mirroring will be inherited by the children elements.
If no attached property has been defined, no mirroring is done, and left will continue to mean left, and right will continue to mean right.
You can specify layout direction for a particular Item
Item { LayoutMirroring.enabled: true anchors.left: parent.left // actually mirrored to right Row { // flows from left to right ... } }
or make all children elements also inherit the layout direction
Item { LayoutMirroring.enabled: true LayoutMirroring.childrenInherit: true anchors.left: parent.left // actually mirrored to right Row { // flows from right to left ... } }