PDA

View Full Version : Does Qt Embedded support PNG



hybrid_snyper
22nd October 2009, 16:30
Hi,

I am having some trouble displaying PNGs on my embedded platform, just wondering if it is supported. I have created some icons which I can display on my no bother when running my app in an i386 environment but no such luck in an embedded one.

Thanks.

wysota
22nd October 2009, 16:36
Yes, PNG should be supported on all platforms Qt runs on.

hybrid_snyper
23rd October 2009, 08:37
Even it is running on the framebuffer. I have designed the gui using designer, would the PNGs be embedded into the code some how or is there a file location that the pngs should eb in?

wysota
23rd October 2009, 08:53
It depends if you use Qt resources or not. Adding a png file to a form in Designer is not enough to embed the file into the binary. You either have to make that file available during runtime (remember about relative paths) or use Qt resources.