aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/qobjectDerivedArgument.qml
blob: bf4ab6fd7a3aedad95d235a0d111c5e1a7c278bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import QtQuick 2.0
import Qt.test 1.0

MyQmlObject {
    id: root
    stringProperty: 'hello'
    property var child

    property bool result: false

    Component.onCompleted: {
        child = invokable.createMyQmlObject('goodbye');

        result = (invokable.getStringProperty(root) == 'hello') &&
                 (invokable.getStringProperty(child) == 'goodbye');
    }
}