Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Changing in .qrc file not reflecting after recompilation

    General and Desktop
    2
    4
    1407
    Loading More Posts
    • 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
      Zain last edited by

      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 Reply Quote 0
      • sierdzio
        sierdzio Moderators last edited by

        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 Reply Quote 0
        • Z
          Zain last edited by

          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 Reply Quote 0
          • sierdzio
            sierdzio Moderators last edited by

            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 Reply Quote 0
            • First post
              Last post