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. Problem installing Qt5+DesktopComponents on Kubuntu 12.10: module QtDesktop not found
QtWS25 Last Chance

Problem installing Qt5+DesktopComponents on Kubuntu 12.10: module QtDesktop not found

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

    Hi.
    I have Qt5 and DesktopComponents compiled/installed from git to /usr/local/Qt-5.0.0, using Kubuntu 12.10. Going into /usr/local/Qt-5.0.0/imports/QtDesktop verifies the desktop components seem to have installed correctly.

    My PATH is set to /usr/local/Qt-5.0.0/bin:$PATH, and I have QtCreator built against Qt5. Yet, when I create simple QML app and try to run it, it fails with 'module "QtDesktop" not installed'

    Attempting to use QtWebKit also gives the module not installed error, which also seems to have been installed correctly to the imports directory. My hunch says i'm missing some kind of setup detail separating my Qt4/Qt5 installs but I can't seem to find much googling :(

    Here's the relevant code:
    [code]
    // myprogram.pro

    Add more folders to ship with the application, here

    folder_01.source = qml/qtquick_tut
    folder_01.target = qml
    DEPLOYMENTFOLDERS = folder_01

    Additional import path used to resolve QML modules in Creator's code model

    QML_IMPORT_PATH = /usr/local/Qt-5.0.0/imports

    The .cpp file which was generated for your project. Feel free to hack it.

    SOURCES += main.cpp

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

    include(qtquick2applicationviewer/qtquick2applicationviewer.pri)
    qtcAddDeployment()

    // main.qml
    import QtQuick 2.0
    import QtDesktop 1.0 // remove this line and it works fine :/

    Rectangle {
    width: 360
    height: 360
    Text {
    text: qsTr("Hello World")
    anchors.centerIn: parent
    }
    MouseArea {
    anchors.fill: parent
    onClicked: {
    Qt.quit();
    }
    }
    }
    [/code]
    Any help would be greatly appreciated!
    Thanks

    1 Reply Last reply
    0
    • C Offline
      C Offline
      chrisadams
      wrote on last edited by
      #2

      See https://codereview.qt-project.org/#change,37539 and the discussion about Qt4/Qt5 coinstallation on the development list: http://lists.qt-project.org/pipermail/development/2012-October/007602.html

      Use QML2_IMPORT_PATH for QtQuick2 imports.

      Cheers,
      Chris.

      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