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. Error: module "QtQuick" version 2.0 is not installed
Qt 6.11 is out! See what's new in the release blog

Error: module "QtQuick" version 2.0 is not installed

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 5.8k 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.
  • L Offline
    L Offline
    lisabeeren
    wrote on last edited by
    #1

    Hey Guys,

    I'm wanting to play around with QtQuick, but have run into the following error when I run my program:

    @module "QtQuick" version 2.0 is not installed
    import QtQuick 2.0
    ^ @

    I'm using qtcreator 2.6.1

    My guess was that it was building against QT 4.8 which was installed earlier, so I modified the build paths to be QT5. Under 'Build & Run' -> 'Qt Versions' -> 'Manual' -> qmake Location :

    /opt/Qt5.0.0/5.0.0/gcc_64/bin/qmake

    but this still didn't fix it.

    My program is:

    @import QtQuick 2.0

    Rectangle {
    width: 360
    height: 360
    Text {
    text: qsTr("Hello World")
    anchors.centerIn: parent
    }
    }@

    Any tips?

    with thanks

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lisabeeren
      wrote on last edited by
      #2

      Got it!

      I think now I've changed the QT version to 5, I have the option to create a 'Qt Quick 2 Application'. Creating a new project, I can see a different entry in the .pro file. Copying this accross to my old project:

      @

      Please do not modify the following two lines. Required for deployment.

      include(qtquick2applicationviewer/qtquick2applicationviewer.pri)
      qtcAddDeployment()@

      fixes it.

      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