Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. .qrc files are not always recompiled

.qrc files are not always recompiled

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
3 Posts 2 Posters 993 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.
  • PowerNowP Offline
    PowerNowP Offline
    PowerNow
    wrote on last edited by
    #1

    Hi,

    When I create a hybrid QML/C++ project in Qt Creator, and place the QML files in resources, I can change a QML file, save the file, click build or run, and then NOT get the updated file built into the executable. This behavior is already known but nothing happend over the years. For me this is an annoying major bug.

    qrc files are not always recompiled

    Does maybe someone know a workaround for this?

    Best greetings...

    raven-worxR 1 Reply Last reply
    0
    • PowerNowP PowerNow

      Hi,

      When I create a hybrid QML/C++ project in Qt Creator, and place the QML files in resources, I can change a QML file, save the file, click build or run, and then NOT get the updated file built into the executable. This behavior is already known but nothing happend over the years. For me this is an annoying major bug.

      qrc files are not always recompiled

      Does maybe someone know a workaround for this?

      Best greetings...

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

      @PowerNow
      have you tried to rerun qmake everytime you add a new qml file to your project as stated in the link you provided??

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

      PowerNowP 1 Reply Last reply
      2
      • raven-worxR raven-worx

        @PowerNow
        have you tried to rerun qmake everytime you add a new qml file to your project as stated in the link you provided??

        PowerNowP Offline
        PowerNowP Offline
        PowerNow
        wrote on last edited by PowerNow
        #3

        @raven-worx : Thxs for your fast response!

        I tried the following:
        1.) Restart computer and start afterwards Qt-Creator -> then it works for a while but nevertheless the failure comes back
        2.) Rename the filename.qml to _filename.qml -> same as above
        3.) Change from "Build Debug" to "Build Release" -> same as above
        4.) "Clean Project" + "Run" -> same as above
        5.) As you ment and I overlooked, described in the bugreport, everytime I insert a new .qml file I start "Run qmake" -> it seems that it work, yep!!! Hopefully its a sustainable solution/workaround.

        Best greetings...

        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