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

QML file question

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 1.1k 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.
  • cmessineoC Offline
    cmessineoC Offline
    cmessineo
    wrote on last edited by
    #1

    I'm looking to put all my QML files in a centralized location. I copied them to QT_PATH/imports/components/ folder as well as a qmldir file and was able to import as follows

    import components 0.1

    I can use the components no problem, but I noticed in design view they do not show up. Is there another file that is needed to make them show up in the designer, so I can drag and drop?

    Thanks

    1 Reply Last reply
    0
    • cmessineoC Offline
      cmessineoC Offline
      cmessineo
      wrote on last edited by
      #2

      The only way I could get my qml components to show up in the designer library item pane was to use relative path

      something like

      import "../../../../workspace/components/"

      Which is too bad.

      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