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. [SOLVED] Multiple QML targets
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Multiple QML targets

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 3 Posters 2.8k 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.
  • B Offline
    B Offline
    bergo.torino
    wrote on last edited by
    #1

    Hello,

    I wanted to ask what would you suggest to solve my issue. I have a QML application which I have to build several times. Unfortunatelly every build differs on some graphics content (from non developer point of view my one application is a several different applications). I'm thinking how to solve it in a clever way so that I does everything with a single make and can be keept in one repo. The ideal solution is to switch resources for every build but I failed with QML (for example Image) and content taken from resources.

    Any ideas?

    Cheers,
    Konrad

    It's compiling - mostly I'm slacking off ;)

    1 Reply Last reply
    0
    • A Offline
      A Offline
      anselmolsm
      wrote on last edited by
      #2

      I would switch resource files, putting conditionals in the .pro file to load a .qrc file for each target.

      What kind of problems did you have loading content from resource files in QML?

      Anselmo L. S. Melo (anselmolsm)

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DenisKormalev
        wrote on last edited by
        #3

        Wild guess. Maybe you used ":/image.png" instead of "qrc:/image.png"?

        1 Reply Last reply
        0
        • B Offline
          B Offline
          bergo.torino
          wrote on last edited by
          #4

          I will try again, but AFAIR I tried both solutions.

          It's compiling - mostly I'm slacking off ;)

          1 Reply Last reply
          0
          • B Offline
            B Offline
            bergo.torino
            wrote on last edited by
            #5

            Damn me, It works!

            @Denis: thanks a lot.

            It's compiling - mostly I'm slacking off ;)

            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