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. QML Module not found - and designer shows no GUI
Forum Updated to NodeBB v4.3 + New Features

QML Module not found - and designer shows no GUI

Scheduled Pinned Locked Moved QML and Qt Quick
8 Posts 4 Posters 18.5k 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
    Laserbeak43
    wrote on last edited by
    #1

    Hello,
    I have an error when making a desktop Qt Quick 2 application.
    the line:
    @import QtMultimedia 5.0@

    gives the error:

    "QML Module not found:

    Import paths:

    for qmake projects use the QML_IMPORT_PATH to add import paths.
    for qmlproject projects, use the importPaths property to add import paths."

    When looking at designer it will show me nothing but this error message. Does anyone know how to fix this? none of these entries are in my path variable.

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

      It's now QML2_IMPORT_PATH - so make sure the correct import path is included in that environment variable. If the multimedia module's QML import is installed to: c:\path\to\Qt\imports\com\digia\multimedia then your QML2_IMPORT_PATH should include something like: QML2_IMPORT_PATH=c:\path\to\Qt\imports

      Cheers,
      Chris.

      M 1 Reply Last reply
      1
      • L Offline
        L Offline
        Laserbeak43
        wrote on last edited by
        #3

        Thanks!
        I'll give that a try the first chance I get.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          Laserbeak43
          wrote on last edited by
          #4

          where do i find and edit QML_IMPORT_PATH or QML2_IMPORT_PATH?, furthermore, there are 10 "imports" folders in sub directories of my qt install.

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

            QML2_IMPORT_PATH is an environment variable. See http://support.microsoft.com/kb/310519 for information on how to set that in XP, for example.

            1 Reply Last reply
            0
            • L Offline
              L Offline
              Laserbeak43
              wrote on last edited by
              #6

              OK so i just add it to my path. I was wondering if there was a special terminal or something that ran in Qt's background that held special variables for Qt. Thanks

              1 Reply Last reply
              0
              • C chrisadams

                It's now QML2_IMPORT_PATH - so make sure the correct import path is included in that environment variable. If the multimedia module's QML import is installed to: c:\path\to\Qt\imports\com\digia\multimedia then your QML2_IMPORT_PATH should include something like: QML2_IMPORT_PATH=c:\path\to\Qt\imports

                Cheers,
                Chris.

                M Offline
                M Offline
                MikoLee
                wrote on last edited by
                #7

                @chrisadams thx very much ,it's worked.

                ODБOïO 1 Reply Last reply
                0
                • M MikoLee

                  @chrisadams thx very much ,it's worked.

                  ODБOïO Offline
                  ODБOïO Offline
                  ODБOï
                  wrote on last edited by ODБOï
                  #8

                  @MikoLee said in QML Module not found - and designer shows no GUI:

                  @chrisadams thx very much ,it's worked.

                  @MikoLee he was LAST ONLINE 15 OCT 2012, 04:32 :/

                  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