PDA

View Full Version : QT Resource File (.qrc) data not getting linked statically with application



srinirao
4th March 2010, 16:00
Hi,

I have a an application where i am storing resource through qrc mechanism. I have the code split in shared library which is getting lnked with the application. All my QRC resources gets displayed properly if i link it dynamically with library. But i don't get my resourcs displayed when i link the same application statically with the library.

Am i missing something trivial here ?

Please help,

JD2000
4th March 2010, 18:03
Have you included a RESOURCES = file.qrc in your .pro file?

srinirao
5th March 2010, 09:26
SOLVED!!!



The problem was that i had missed making call to Q_INIT_RESOURCE(resource_name) in my main application[main.cpp].

As per QT documentation, this is required when the program is statically built.



Thanks.