diff options
Diffstat (limited to 'examples/declarative/plugins/plugins.qml')
-rw-r--r-- | examples/declarative/plugins/plugins.qml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/declarative/plugins/plugins.qml b/examples/declarative/plugins/plugins.qml new file mode 100644 index 0000000..dbeb001 --- /dev/null +++ b/examples/declarative/plugins/plugins.qml @@ -0,0 +1,12 @@ +import com.nokia.TimeExample 1.0 // import types from the plugin +import 'files' // import types from the 'files' directory + +Clock { // this class is defined in QML (files/Clock.qml) + + Time { // this class is defined in C++ (plugins.cpp) + id: time + } + + hours: time.hour + minutes: time.minute +} |