Debian Codegraph @

tests/manual/scenegraph_lancelot/data/text/text_style2.qml

raw
1 import QtQuick 2.0
2
3 //vary font style
4
5 Item {
6 width: 320
7 height: 480
8
9 Column {
10 anchors.fill: parent
11 Repeater {
12 model: [Text.Normal, Text.Outline, Text.Raised, Text.Sunken]
13 Text {
14 renderType: Text.QtRendering
15 width: parent.width
16 wrapMode: Text.Wrap
17 font.pointSize: 10
18 style: modelData
19 styleColor: "green"
20 text: "The quick fox jumps in style " + modelData
21 }
22 }
23
24 Repeater {
25 model: [Text.Normal, Text.Outline, Text.Raised, Text.Sunken]
26 Text {
27 renderType: Text.NativeRendering
28 width: parent.width
29 wrapMode: Text.Wrap
30 font.pointSize: 10
31 style: modelData
32 styleColor: "green"
33 text: "The quick fox jumps in style " + modelData
34 }
35 }
36 }
37 }