blob: 0656432f9e849ca3b373c754528519d189e5f84c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
// Copyright (C) 2017 Ford Motor Company
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
//![0]
import QtQuick
import QtRemoteObjects
import TimeExample // import types from the plugin
Rectangle {
width: 200
height: 400
Clock { // this class is defined in QML
id: clock1
anchors.top: parent.top
Time { // this class is defined in C++
id: time
node: sharedNode
}
hours: time.hour
minutes: time.minute
valid: time.state == Time.Valid
}
Clock { // this class is defined in QML
id: clock2
anchors.top: clock1.bottom
Time { // this class is defined in C++
id: time2
node: sharedNode
}
hours: time2.hour
minutes: time2.minute
valid: time2.state == Time.Valid
}
Node {
id: sharedNode
registryUrl: "local:registry"
}
}
//![0]
|