summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/qml-intro/hello-world4.qml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/snippets/declarative/qml-intro/hello-world4.qml')
-rw-r--r--doc/src/snippets/declarative/qml-intro/hello-world4.qml21
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/src/snippets/declarative/qml-intro/hello-world4.qml b/doc/src/snippets/declarative/qml-intro/hello-world4.qml
new file mode 100644
index 0000000..c97334e
--- /dev/null
+++ b/doc/src/snippets/declarative/qml-intro/hello-world4.qml
@@ -0,0 +1,21 @@
+import Qt 4.7
+
+Rectangle {
+ id: myRectangle
+ width: 500
+ height: 400
+
+ Text {
+ text: "<h1>Hello world again</h1>"
+ color: "#002288"
+ x: 100; y: 100
+ }
+
+//! [added an image]
+ Image {
+ source: "images/qt-logo.png"
+ }
+//! [added an image]
+
+ color: "lightgray"
+}