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. Module not installed
Qt 6.11 is out! See what's new in the release blog

Module not installed

Scheduled Pinned Locked Moved Solved QML and Qt Quick
5 Posts 3 Posters 16.0k Views 2 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.
  • S Offline
    S Offline
    SQEW
    wrote on last edited by A Former User
    #1
    This post is deleted!
    raven-worxR 1 Reply Last reply
    0
    • S SQEW

      This post is deleted!

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @SQEW said in QML module not installed:

      QQmlEngine::addImportPath("/lemonade/bin/org/lemonade/element") as well as a few other things, but I can't get it to work.

      should be QQmlEngine::addImportPath("/lemonade/bin/");

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      S 1 Reply Last reply
      1
      • raven-worxR raven-worx

        @SQEW said in QML module not installed:

        QQmlEngine::addImportPath("/lemonade/bin/org/lemonade/element") as well as a few other things, but I can't get it to work.

        should be QQmlEngine::addImportPath("/lemonade/bin/");

        S Offline
        S Offline
        SQEW
        wrote on last edited by
        #3

        @raven-worx

        Told you it was a simple fix! In fact, I tried this path before, but it still didn't work at first, because I used 'import Element 1.0' in my QML files. I've replaced that with 'import org.lemonade.element 1.0', and it works now, thanks!

        Just one more small question: QtCreator is still unable to recognize this path, as in, the editor underlines it red, and it is unable to use autocompletion as a result. Any idea how to fix that?

        raven-worxR Julien BJ 2 Replies Last reply
        0
        • S SQEW

          @raven-worx

          Told you it was a simple fix! In fact, I tried this path before, but it still didn't work at first, because I used 'import Element 1.0' in my QML files. I've replaced that with 'import org.lemonade.element 1.0', and it works now, thanks!

          Just one more small question: QtCreator is still unable to recognize this path, as in, the editor underlines it red, and it is unable to use autocompletion as a result. Any idea how to fix that?

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @SQEW said in QML module not installed:

          Just one more small question: QtCreator is still unable to recognize this path, as in, the editor underlines it red, and it is unable to use autocompletion as a result. Any idea how to fix that?

          no i don't know - but this doesn't mean there is a way. I also stumbled upon this, and i ended up copying my module to QT_INSTALL_DIR/qml folder.

          QtCreator probably has a setting somewhere to also set it's QML import path.

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0
          • S SQEW

            @raven-worx

            Told you it was a simple fix! In fact, I tried this path before, but it still didn't work at first, because I used 'import Element 1.0' in my QML files. I've replaced that with 'import org.lemonade.element 1.0', and it works now, thanks!

            Just one more small question: QtCreator is still unable to recognize this path, as in, the editor underlines it red, and it is unable to use autocompletion as a result. Any idea how to fix that?

            Julien BJ Offline
            Julien BJ Offline
            Julien B
            wrote on last edited by Julien B
            #5

            Hello @SQEW,

            I had the same problem on linux and I first used the solution @raven-worx proposed, then I ended up creating a script which

            export QML_IMPORT_PATH=/path/to/your/qml/
            export QML2_IMPORT_PATH=/path/to/your/qml/

            before launching qtcreator

            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