Thank you this is exactly what I wanted.
Added after 54 minutes:

Originally Posted by
ChrisW67
Then "icons:someicon.png" should look first in :/user then in :/global for someicon.png.
I'm guessing you meant ":icons/someicon.png"
Ah no, now I see how it works:
http://doc.trolltech.com/latest/qdir...setSearchPaths
But how would if my resource file has some sub folder that are also mutual, how would that work?
For example, if both the global and the user resource files contain:
readme.txt
icons/logo.png
QResource::registerResource ( "global.rcc",
"/global" );
QResource::registerResource ( "user.rcc",
"/user" );
QDir::setSearchPaths("resourcedata",
QStringList() <<
":/user" <<
":/global");
QResource::registerResource ( "global.rcc", "/global" );
QResource::registerResource ( "user.rcc", "/user" );
QDir::setSearchPaths("resourcedata", QStringList() << ":/user" << ":/global");
To copy to clipboard, switch view to plain text mode
Now to get to the (potentially overloaded) logo, do I write "resourcedata/icons:logo.png" ?
Bookmarks