If you are curious (or someone else needs this solution), I had same problem, except RCC file was not option to me (I needed to be in DLL file).
Here is topic I started and solved
Basically, in my library (DLL) project I had to:
- include qrc_RESOURCE_NAME.cpp file in library (DLL) project (in .pro file) - this is generated at compilation time, so you will most likely need to compile twice (1st (only qmake is enough) to generate that qrc_RESOURCE_NAME.cpp file, 2nd to compile with project)
- include that qrc_RESOURCE_NAME.cpp (directly or indirectly) in your application (EXE) project
- use normally protocol qrc:/// (or shorter :/) for loading your files
For more details, visit link I have posted.