[Qt] Using QResources

Adding a QResource to your project :

  • ¬†Add new > Qt > Qt Resource file.

Make sure every single qrc file has been added to RESOURCES in your .pro file.

Then load every resource files added to your project in you main :


Don’t forget that the path to a QResource has the following form “:/prefix/pathToYourResource” and that you can use aliases in your QResource file.