aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/scenegraph_lancelot/data/text/text_style2.qml
blob: 984ca6a1ed5668b93d904831abee0a909bfb6a62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import QtQuick 2.0

//vary font style

Item {
    width: 320
    height: 480

    Column {
        anchors.fill: parent
        Repeater {
            model: [Text.Normal, Text.Outline, Text.Raised, Text.Sunken]
            Text {
                renderType: Text.QtRendering
                width: parent.width
                wrapMode: Text.Wrap
                font.pointSize: 10
                style: modelData
                styleColor: "green"
                text: "The quick fox jumps in style " + modelData
            }
        }

        Repeater {
            model: [Text.Normal, Text.Outline, Text.Raised, Text.Sunken]
            Text {
                renderType: Text.NativeRendering
                width: parent.width
                wrapMode: Text.Wrap
                font.pointSize: 10
                style: modelData
                styleColor: "green"
                text: "The quick fox jumps in style " + modelData
            }
        }
    }
}