embedding/importing graphics -solved
I've asked a similar question in the designer forum, but now I realize a more general question might also be useful. This is not the same question, it's an extension in general.
What ways are available to embed or import graphics into a Qt project (I'm using Qt 4) which allow the end product to not require external graphics files? I've seen simple bitmaps turned into arrays and included as a header file, but usually for very simple things like cursor shapes. Suppose I have a large, complicated graphic image, maybe a png or jpg, and I want to somehow permanently and statically embed it into an application...I'd have to serialize this and turn it into a data structure. Images which are compressed greatly complicate this. Is there some utility or general scheme to compile in images and make them available as a serialized data structure, rather than an outside file that has to be shipped with each project?
Note: I'm starting with png or jpg or other formats which can be exported by Gimp.
I guess I answered my own question, the Qt resource system does this!
-- "Quality is free", quoted from Dr. W. E. Deming
This post has been edited 2 times, last edit by "VirtualBrainSucker" (Aug 4th 2005, 11:26pm)