Like
this post, we can rotate text easily with
Rotate element.
import Qt 4.7
Rectangle {
width: 200
height: 200
Text {
id: original
x: 60
y: 80
text: qsTr("Hello World")
}
Text {
x: original.x
y: original.y + 16
text: original.text + "!"
font {
family: "Helvetica"
pointSize: 12
italic: true
}
color: "blue"
transform: Rotation {
angle: 45
} // rotate this text item
}
}
And let's be smooth the text:
transform: Rotation {
angle: 45
} // rotate this text item
smooth: true // smooth the transformation of this text
No comments:
Post a Comment