Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt quick example not working
Forum Updated to NodeBB v4.3 + New Features

Qt quick example not working

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 907 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ArbolOne
    wrote on last edited by
    #1

    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

    This is not the first time you've been here, at the end you've always lost. You create viruses and we the cure, and in this battle you've always lost.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stereomatching
      wrote on last edited by
      #2

      "onClicked" not "onClicke[drive]"
      @
      MouseArea {
      anchors.fill: parent
      onClicked: {
      Qt.quit();
      }
      }
      @

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved