blob: 7dd19782e6e9b85f46921e6fff969f9256f9685a (
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
|
import QtQml
QtObject {
id: root
property int width: 43
Component.onCompleted: () => { console.log(this.width); }
property var arrow: () => { return this; }
property var func: function() { return this; }
property QtObject child: QtObject {
property var aa;
property var ff;
Component.onCompleted: {
root.arrowResult = root.arrow();
root.funcResult = root.func();
var a = root.arrow;
root.aResult = a();
var f = root.func;
root.fResult = f();
aa = a;
root.aaResult = aa();
ff = f;
root.ffResult = ff();
}
}
property var arrowResult
property var funcResult
property var aResult
property var fResult
property var aaResult
property var ffResult
}
|