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
Forum Updated to NodeBB v4.3 + New Features

Module not installed

Scheduled Pinned Locked Moved Solved QML and Qt Quick
5 Posts 3 Posters 14.6k 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 22 Dec 2016, 08:46 last edited by A Former User
    #1
    This post is deleted!
    R 1 Reply Last reply 22 Dec 2016, 09:03
    0
    • S SQEW
      22 Dec 2016, 08:46

      This post is deleted!

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 22 Dec 2016, 09:03 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 22 Dec 2016, 09:40
      1
      • R raven-worx
        22 Dec 2016, 09:03

        @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 22 Dec 2016, 09:40 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?

        R J 2 Replies Last reply 22 Dec 2016, 09:44
        0
        • S SQEW
          22 Dec 2016, 09:40

          @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?

          R Offline
          R Offline
          raven-worx
          Moderators
          wrote on 22 Dec 2016, 09:44 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
            22 Dec 2016, 09:40

            @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?

            J Offline
            J Offline
            Julien B
            wrote on 22 Dec 2016, 13:07 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

            1/5

            22 Dec 2016, 08:46

            • Login

            • Login or register to search.
            1 out of 5
            • First post
              1/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved