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. reuse QML files over different subprojects

reuse QML files over different subprojects

Scheduled Pinned Locked Moved Solved QML and Qt Quick
5 Posts 2 Posters 1.0k Views
  • 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.
  • M Offline
    M Offline
    MirkoV
    wrote on last edited by
    #1

    I need to reuse a qml component located on a different resource file located under a different subproject.
    It's possible?

    T 1 Reply Last reply
    0
    • M MirkoV

      I need to reuse a qml component located on a different resource file located under a different subproject.
      It's possible?

      T Offline
      T Offline
      Tirupathi Korla
      wrote on last edited by
      #2

      @MirkoV copying to local project under resource file will work.

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

        No you can't. The "reusable" qml file it's not in a subdirectory.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MirkoV
          wrote on last edited by
          #4

          Ok just found a trick: put the qml files in the "qml" directory with a suitable qmldir file.
          This can be quite a good solution, but the qml file is publicly exposed :-(

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

            https://www.kdab.com/embedding-qml-why-where-and-how/

            This is the solution (and worked for me).

            1 Reply Last reply
            1

            • Login

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