We do the following solution in our project (I can't provide code because of company policies):
- First, we build all resources to separate binary .rcc file. It is not necessary, but helpful.
- Second, In release builds we always load resources from the Qt resource system.
Third, only in debug builds:
- We check the
resource
folder for amain.qss
file. - If it exists: we open it and replace all
:/
with./resource/
string, then apply it - If it doesn't exist: we load resources as in the release version.
- We check the