Qt: reloading resources on each compilation

Is there a way to get QtCreator to recompile all the resources (images / qss files) that I specified in my qrc file every time I create a project?

Currently, if I change some styles in my qss file but don’t delete the file and re-add it to the qrc file, the old version of my qss file is used.

Thank.

+3
source share
2 answers

I don't know if there is an easy way to automatically restore the qrc file. However, you should be able to add dependency on individual files to the qrc file target, using qmakesomehow. I must admit that I am not sure how to do this.

+1
RCC_DIR = ../myproject/resources

(*.PRO)

0

Source: https://habr.com/ru/post/1737553/


All Articles