Qt quick example not working



  • This code is from the qt quick examples

    @
    import QtQuick 2.0

    Rectangle {
    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 -1

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

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

    I 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();
    }
    }
    @


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.