1 import Qt.test 1.0
2
3 MyQmlObject {
4 property variant a
5 property bool runTest: false
6 onRunTestChanged: {
7 function myFunction() {
8 console.log("hello world");
9 }
10 a = myFunction;
11 }
12
13 }