QML_RUNTIME_TESTING should be disabled by default.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativebinding / data / deletedObject.qml
1 import QtQuick 2.0
2
3 Rectangle {
4     id: wrapper
5     width: 400
6     height: 400
7
8     property bool activateBinding: false
9
10     Binding {
11         id: binding
12         target: Qt.createQmlObject('import QtQuick 2.0; Item { property real value: 10 }', wrapper)
13         property: "value"
14         when: activateBinding
15         value: x + y
16     }
17
18     Component.onCompleted: binding.target.destroy();
19
20 //    MouseArea {
21 //        anchors.fill: parent
22 //        onClicked: activateBinding = true;
23 //    }
24 }