techspots
Wednesday, August 11, 2010
QML Examples: Hello World
Our first QML program will start with Hello World. The below code will create a Light Blue colored Rectangle with Width of 200 pixels and Height of 200 pixels.
Within that rectangle, it will print the Text "Hello World" starting at (x,y) = (66,93)
This program can be executed using qml viewer.
import Qt 4.7
Rectangle {
width: 200
height: 200
color: "lightblue"
Text {
x: 66
y: 93
text: "Hello World"
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment