Qt Creator: Force the Resource Re-compilation

Use custom build step to force resource compilation.

December 12, 2016 - 1 minute read -
qt qtcreator

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!