summaryrefslogtreecommitdiffstats
path: root/examples/declarative/plugins/plugins.qml
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-01-07 07:33:53 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-01-07 07:33:53 (GMT)
commit78221020e2fd9370b0915a32cde81a95bdf44d87 (patch)
tree2c807d104f1e18b155de0d88d44b7749e42390a8 /examples/declarative/plugins/plugins.qml
parent3b10e20d8230d1b6044ab5c96ffdb24bc37f85da (diff)
downloadQt-78221020e2fd9370b0915a32cde81a95bdf44d87.zip
Qt-78221020e2fd9370b0915a32cde81a95bdf44d87.tar.gz
Qt-78221020e2fd9370b0915a32cde81a95bdf44d87.tar.bz2
Load qmlmodules plugins.
This allows projects which use the declarative module to add QML types through C++ modules, such that qmlviewer (or any QML) can import those types.
Diffstat (limited to 'examples/declarative/plugins/plugins.qml')
-rw-r--r--examples/declarative/plugins/plugins.qml23
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/declarative/plugins/plugins.qml b/examples/declarative/plugins/plugins.qml
new file mode 100644
index 0000000..df6b5d4
--- /dev/null
+++ b/examples/declarative/plugins/plugins.qml
@@ -0,0 +1,23 @@
+import Qt 4.6
+import com.nokia.TimeExample 1.0
+
+Item {
+
+ Time { id: time }
+
+ width: 200
+ height: 100
+
+ Rectangle {
+ anchors.fill: parent
+ color: "blue"
+ }
+
+ Text {
+ text: time.hour + ":" + (time.minute < 10 ? "0" : "") + time.minute
+ anchors.centerIn: parent
+ color: "white"
+ font.pixelSize: 42
+ font.bold: true
+ }
+}