开发者

Qt: force resource reloading on every compilation

开发者 https://www.devze.com 2022-12-23 15:18 出处:网络
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?

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

精彩评论

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