blob: d5b449c938599b456981ddecc32f313f3250069f (
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
|
import QtQuick 2.0
Item {
property var object
property bool test1: false
property bool test2: false
// Test methods are executed in sequential order
function runTest() {
var c = Qt.createComponent("propertyVarOwnership.3.type.qml");
object = c.createObject();
if (object.dummy != 10) return;
test1 = true;
}
// Run gc() from C++
function runTest2() {
if (object.dummy != 10) return;
object = undefined;
if (object != undefined) return;
test2 = true;
}
// Run gc() from C++ - QObject should be collected
}
|