qt6-bb10/qtdeclarative/tests/baseline/scenegraph/data/text/text_style2.qml

38 lines
977 B
QML

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
}
}
}
}