summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/qml-intro/hello-world2.qml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/snippets/declarative/qml-intro/hello-world2.qml')
-rw-r--r--doc/src/snippets/declarative/qml-intro/hello-world2.qml16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/src/snippets/declarative/qml-intro/hello-world2.qml b/doc/src/snippets/declarative/qml-intro/hello-world2.qml
new file mode 100644
index 0000000..73b2f8c
--- /dev/null
+++ b/doc/src/snippets/declarative/qml-intro/hello-world2.qml
@@ -0,0 +1,16 @@
+import Qt 4.7
+
+Rectangle {
+ id: myRectangle
+ width: 500
+ height: 400
+
+//! [updated text]
+ Text {
+ text: "<h2>Hello World</h2>"; color: "darkgreen"
+ x: 100; y:100
+ }
+//! [updated text]
+
+ color: "lightgray"
+}