summaryrefslogtreecommitdiff
path: root/tests/manual/debugger/qquick1/qml/main.qml
blob: 7b673067a9ebeed3a614180e1bb992dfbf17bf74 (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 1.1
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
    }
}