Qt Reference Documentation

- Qt 4.8
- ALL VERSIONS

- A
- A
- A
- Print

# Right-to-left User Interfaces: Text Alignment Example

Files:

- declarative/righttoleft/textalignment/textalignment.svg
- declarative/righttoleft/textalignment/qml/textalignment/textalignment.qml
- declarative/righttoleft/textalignment/main.cpp
- declarative/righttoleft/textalignment/textalignment.pro
- declarative/righttoleft/textalignment/textalignment.qmlproject

This example shows how the horizontal alignment of Text, TextInput and TextEdit is affected by the reading direction of the text and by the layout mirrroring.

Click on the gray buttons shown at the bottom of the example to toggle between different horizontal alignment options.

See also QML Right-to-left User Interfaces.