Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Changing in .qrc file not reflecting after recompilation

Changing in .qrc file not reflecting after recompilation

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.7k 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.
  • Z Offline
    Z Offline
    Zain
    wrote on last edited by
    #1

    Hello All,

    In my GUI application I have generated .qrc file containing XML files. I am applying some changes in some of XML file's data and trying to recompile my application, But that changes not showing at run time execution.

    Even I tried with deletion of old .qrc and generated new one but no change just giving same result as got with previous one.
    Please suggest me, what should I do to resolve this?

    Thanks
    Zain

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      It should work on recompile, or at least on full rebuild (clean, rebuild). Check your paths, maybe you are including some old versions of your files in .qrc definition?

      (Z(:^

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        Zain
        wrote on last edited by
        #3

        Thanks sierdzio for reply,

        I have selected new version of my file.
        To get file I am using following code.

        @
        fileName=":/XMLFiles/File1.xml";
        QFile xmlFile(fileName);
        @

        I have made XMLFiles.qrc.

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Take a look into XMLFiles.qrc, then (it's a standard text file) to see if paths are correct. If you are using shadow building, make sure you clean the build directory. It really should work, and usually does so without problems, at least in my case.

          (Z(:^

          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