PDA

View Full Version : static library - embedded resourses



bitChanger
7th December 2006, 21:02
I've created a custom widget using the shared Qt4.2.2 libraries.

The .png files that I used for icon images were added to a .qrc file and referenced in my .pro file under RESOURSES=

I created a stub main and tested the widget, all looks great.

Then I removed main and compiled this custom widget into a static lib file so i can use the widget in multiple projects without having source all over the place.

When one of the other projects uses the custom widget the icons don't show up. The widget works as expected but no embedded images.

Any ideas?

jacek
7th December 2006, 21:20
http://doc.trolltech.com/4.2/resources.html#using-resources-in-the-application