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. Can't get QT5.0 to find qtdesktopcomponents
Qt 6.11 is out! See what's new in the release blog

Can't get QT5.0 to find qtdesktopcomponents

Scheduled Pinned Locked Moved QML and Qt Quick
7 Posts 4 Posters 3.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.
  • I Offline
    I Offline
    impsnldavid
    wrote on last edited by
    #1

    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".

    1 Reply Last reply
    0
    • E Offline
      E Offline
      elpuri
      wrote on last edited by
      #2

      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).

      1 Reply Last reply
      0
      • M Offline
        M Offline
        madoodia
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          [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").

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • M Offline
            M Offline
            madoodia
            wrote on last edited by
            #5

            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?

            1 Reply Last reply
            0
            • JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              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

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              1 Reply Last reply
              0
              • M Offline
                M Offline
                madoodia
                wrote on last edited by
                #7

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

                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