summaryrefslogtreecommitdiff
path: root/tests/manual/debugger/qquick2/qml/main.qml
blob: f9d3621b35545a7fbb7d03db1323eb708014f0d1 (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
import QtQuick 2.0
import myplugin 1.0

Rectangle {
    width: 100
    height: 100

    MyType {
        id: time
    }

    Component.onCompleted: {
        // bp here should be hit on startup
        backend.greet("C++");
    }

    Connections {
        target: backend
        onGreetBack: {
            console.log("hello \"" + toWhom + "\"");
        }
    }

    Text {
        anchors.centerIn: parent
        // bp here should be hit every second
        text: time.timeText
    }
}