diff options
Diffstat (limited to 'src/quick/doc/src/concepts/positioning/righttoleft.qdoc')
-rw-r--r-- | src/quick/doc/src/concepts/positioning/righttoleft.qdoc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/quick/doc/src/concepts/positioning/righttoleft.qdoc b/src/quick/doc/src/concepts/positioning/righttoleft.qdoc index 722d7b747b..7c7c314fc3 100644 --- a/src/quick/doc/src/concepts/positioning/righttoleft.qdoc +++ b/src/quick/doc/src/concepts/positioning/righttoleft.qdoc @@ -145,6 +145,16 @@ enter either \c LTR or \c RTL as the translation for the locale. </context> \endcode +Next, add the following bindings to the root QML component of your application: +\code +LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLeft +LayoutMirroring.childrenInherit: true +\endcode + +The first binding ensures that the UI will be mirrored appropriately when a +right-to-left locale is set. The second binding ensures that child items of the +root component will also respect mirroring. + You can test that the layout direction works as expected by running your Qt Quick application with the compiled translation file: |