I have a problem registering/unregistering .rcc files. I have several .qrc files (themes, for customization reasons) from which I create the coresponding .rcc files at build time. From the application the user should be able to change the .rcc theme dynamically. So for that, I had to do QResource::unregisterResource(path/first.rcc)
and then QResource::registerReousrce(path/second.rcc)
.
The problem is that unregisterResource always returns false and the application resources appear to be mixed in the views (some from the first.rcc, some from the second.rcc).
I use QT 5.7.
Do you have any suggestions? Why does unregisterResource return false? Thanks