blob: 029a439607678cce8e7c66e6dd611e902087be9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import QtQuick 2.0
Rectangle {
width: 400
height: 400
Text {
id: text
anchors.centerIn: parent
font.pointSize: 24
Behavior on font.pointSize { NumberAnimation {} }
}
function updateFontProperties() {
text.font.italic = true
text.font.pointSize = 48
text.font.weight = Font.Bold
}
}
|