Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Can't get QT5.0 to find qtdesktopcomponents



  • I'm trying to use the qtdesktopcomponents module. I've built the project file into my QT folder, and in my .pro set:

    @QML2_IMPORT_PATH = C:\Qt\Qt5.0.0\5.0.0\msvc2010\qml\QtDesktop@

    But when I run a simple QML importing QtDesktop 1.0, it fails and I get the error "module "QtDesktop" is not installed".



  • The QML2_IMPORT_PATH is an environment variable that is read runtime. If you put that in your .pro you're just settings a qmake variable. If the QTDIR environment variable is set and your directory structure is normal you don't have to explicitly set the QML2_IMPORT_PATH variable. If you do set it, you should set it to point to the ...\qml directory (instead of ...\qml\QtDesktop).



  • hi
    thanks for post and reply.

    but elpuri this does not work for me.(QTDIR)

    can you explain more or if you have a better way explain it??

    thanks


  • Moderators

    [quote author="madoodia" date="1398354859"]hi
    thanks for post and reply.

    but elpuri this does not work for me.(QTDIR)

    can you explain more or if you have a better way explain it??thanks[/quote]Hi madoodia,

    The recommended way is to not touch QTDIR at all. Just Install Qt 5.2.1 -- you will have access to Qt Desktop Components automatically (but it has been renamed to "Qt Quick Controls").



  • thanks JKSH
    no, my problem is another thing
    i don't want install QT5.2.1
    i want useportable QT5.2.1, like PyQt5.21.msi that have qmlscene and other Qt stuffs in itself.

    you know?


  • Moderators

    I think your problem isn't related to this thread.

    Please start a new thread and:

    Tell us what you tried to do

    Tell us what error messages you get



  • thanks
    please look at this thread
    http://qt-project.org/forums/viewthread/41852/


Log in to reply