PDA

View Full Version : QResource::registerResource - problem?



zeldaknight
5th May 2010, 05:57
Hi,
I need to load various resource files during the load process of my application. I'd like to have them all stored under a certain prefix, which if I've read right should be what the second parameter of QResource::registerResource() should do. However this code:


QResource::registerResource(qApp->applicationDirPath() + "/Presets/" + fn), "Presets"

doesn't seem to work - the resource file I am trying to load (created in Qt Creator) still gets loaded in the base directory. Am I doing something wrong?

Thanks!