summaryrefslogtreecommitdiffstats
path: root/examples/declarative/plugins/plugins.qml
blob: dbeb001b25cf94826530bd53e648adfa2748ee07 (plain)
1
2
3
4
5
6
7
8
9
10
11
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
}