summaryrefslogtreecommitdiffstats
path: root/examples/declarative/loader
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-07-30 23:39:53 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-07-30 23:39:53 (GMT)
commit0ce2bedf9b5da9d480b994a9b812c37d1f5caa39 (patch)
tree7e8ef6069f8c669ff6e92e23cf8b46cfad7ed3ee /examples/declarative/loader
parenta70f8a2b0966420e1911554a117e066592b1822c (diff)
downloadQt-0ce2bedf9b5da9d480b994a9b812c37d1f5caa39.zip
Qt-0ce2bedf9b5da9d480b994a9b812c37d1f5caa39.tar.gz
Qt-0ce2bedf9b5da9d480b994a9b812c37d1f5caa39.tar.bz2
Introduce Loader item.
The Loader item takes the qml/qmlItem functionality from Item and moves it to a specialized subclass.
Diffstat (limited to 'examples/declarative/loader')
-rw-r--r--examples/declarative/loader/loader.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/declarative/loader/loader.qml b/examples/declarative/loader/loader.qml
index 447d73a..f507651 100644
--- a/examples/declarative/loader/loader.qml
+++ b/examples/declarative/loader/loader.qml
@@ -1,8 +1,10 @@
import Qt 4.6
Rect {
- id: Shell
width: 300
height: 400
- qml: "Browser.qml"
+ Loader {
+ anchors.fill: parent
+ source: "Browser.qml"
+ }
}