Reply
Thread Tools
Posts: 124 | Thanked: 213 times | Joined on Dec 2009
#1
I have a Qt application that makes use of a couple of embedded png images. Nothing excessive.

Running under the x86 scratchbox target (I use ESBox btw) is fine - the images show up.

I recompile to ARMEL, no problem, and I can tell from the executable size that the images are embedded, yet when I run it on my N900 the images do not display.

I get no warnings or errors at all....any ideas?
 
Posts: 16 | Thanked: 11 times | Joined on Dec 2009
#2
How are you loading the file, do you use the ":/" prefix in the Url?
 
Posts: 124 | Thanked: 213 times | Joined on Dec 2009
#3
Yes. I apparently am doing it correctly, or the fremantle_x86 target wouldn't work. It is only when I recompile to the fremantle_armel target that it stops working. Very odd.

fyi my code looks like:

const QImage myImage(":/img/image1.png")

I then use myImage to paint the background of a dockable widget.
 
Reply


 
Forum Jump


All times are GMT. The time now is 09:59.