blob: 98d7726063ddc3f91ca25641481907c0ee487178 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import AttachedProperties 1.0
QtObject {
id: root
TestType.object: Component {}
TestType.count: 42 + 2
Component.onCompleted: {
TestType.count = 42;
console.log(TestType.object.progress);
}
QtObject {
TestType.count: 43
Component.onCompleted: {
console.log(TestType.count);
console.log(root.TestType.count);
console.log(root.TestType.object.progress);
}
}
}
|