开发者

Qt: force resource reloading on every compilation

Is there a way to force QtCreator to recompile all the resources (images / qss files) i have specified in my qrc file every time i build the project?

Currently if i change some styles in my qss file but dont remove the file and re-add开发者_StackOverflow中文版 it to the qrc file the old version of my qss file is used.

Thanks.


I don't know if there is an easy way to automatically cause the qrc file to rebuild. However, you should be able to add a dependency on the individual files to the qrc file target using qmake somehow. I have to admit I'm not sure how to do it, though.


RCC_DIR = ../myproject/resources

in your project file (*.PRO)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜