Files
qt-creator/tests/manual/debugger/qquick2/qml/main.qml
Kai Koehne e8241adae3 Debugger: Add simple app to test mixed QML/CPP debugging (QQuick2)
Change-Id: Id744e3306da20bd7e2051ec4c45e3475084b64bc
Reviewed-by: hjk <qthjk@ovi.com>
2012-01-24 10:39:53 +01:00

30 lines
492 B
QML

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
}
}