aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlproperty/data/invalidBinding.qml
blob: e2bb1d172d9dafc56215c30611ddc0dbfbf7bf19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import QtQuick 2.0

Item {
    property Text text: myText

    property Rectangle rectangle1: myText
    property Rectangle rectangle2: eval('getMyText()') // eval to force non-shared (v8) binding

    function getMyText() { return myText; }

    Text {
        id: myText

        anchors.verticalCenter: parent // invalid binding
    }
}