Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions
Problem installing Qt5+DesktopComponents on Kubuntu 12.10: module QtDesktop not found
peller last edited by
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:
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.
import QtQuick 2.0
import QtDesktop 1.0 // remove this line and it works fine :/
text: qsTr("Hello World")
Any help would be greatly appreciated!
chrisadams last edited by
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.