Qt Creator: Force the Resource Re-compilation

December 12, 2016

Because of a bug in Qt Creator, the *.qrc file i not always compiled into the executable file. A workaround to do this is to add a dummy file to your *.qrc file and then touch it before every build. To do that in Windows:

  • Go to Projects tab
  • Click Add Build Step
  • Select Custom Process Step
  • Fill it according to the following screenshot

cmake_configuration_page

And voila!

Comments

comments powered by Disqus