Qt quick example not working
-
This code is from the qt quick examples
@
import QtQuick 2.0Rectangle {
width: 360
height: 360
Text {
text: qsTr("Hello World")
anchors.centerIn: parent
}
MouseArea {
anchors.fill: parent
onClicke[drive]: {
Qt.quit();
}
}
}
@When I type Ctr-R, I get this error
Starting [drive]:\AO\dev\build-qt-quick_untitled-Desktop_Qt_5_1_0_MinGW_32bit-Debug\debug\qt-quick_untitled.exe...
Failed to start program. Path or permissions wrong?
[drive]:\AO\dev\build-qt-quick_untitled-Desktop_Qt_5_1_0_MinGW_32bit-Debug\debug\qt-quick_untitled.exe exited with code -1Starting [drive]:\AO\dev\build-qt-quick_untitled-Desktop_Qt_5_1_0_MinGW_32bit-Debug\debug\qt-quick_untitled.exe...
Failed to start program. Path or permissions wrong?
[drive]:\AO\dev\build-qt-quick_untitled-Desktop_Qt_5_1_0_MinGW_32bit-Debug\debug\qt-quick_untitled.exe exited with code -1Starting [drive]:\AO\dev\build-qt-quick_untitled-Desktop_Qt_5_1_0_MinGW_32bit-Debug\debug\qt-quick_untitled.exe...
Failed to start program. Path or permissions wrong?
[drive]:\AO\dev\build-qt-quick_untitled-Desktop_Qt_5_1_0_MinGW_32bit-Debug\debug\qt-quick_untitled.exe exited with code -1I am the supper user in this Win7-64bit machine, why would qt not be able to find the path or say that the permission is wrong?
TIA
-
"onClicked" not "onClicke[drive]"
@
MouseArea {
anchors.fill: parent
onClicked: {
Qt.quit();
}
}
@