[Qt-interest] Images only showing on machine software was originally written on

Eric Clark eclark at ara.com
Tue May 24 18:42:25 CEST 2011



> -----Original Message-----
> From: qt-interest-bounces+eclark=ara.com at qt.nokia.com [mailto:qt-
> interest-bounces+eclark=ara.com at qt.nokia.com] On Behalf Of Andre
> Somers
> Sent: Tuesday, May 24, 2011 11:33 AM
> To: qt-interest at qt.nokia.com
> Subject: Re: [Qt-interest] Images only showing on machine software was
> originally written on
> 
> Op Di, 24 mei, 2011 6:19 pm, schreef Robert Wood:
> > On 24/05/11 15:58, Andre Somers wrote:
> >> If you are certain that you have the image files, you might have
> >> forgotten to distribute the Qt image plugins. That would mean that Qt
> >> cannot read the files you distributed or compiled in...
> >>
> >> André
> >
> > I have tried PNGs which make no difference, so...
> >
> > ...when you say I am certain I "have" the image files, how do you mean?
> I mean that you know for a fact that the images are actually contained in your
> resource file, and that it is actually those images you are referencing (and not
> the ones on disk anyway, which would work fine on your dev machine but
> obviously not on a client machine).
> 
> > They are in the directory is the source code and the resource file.
> But are you really using the resource file? Is the resource file compiled and
> linked in?
> 
> > I
> > have done some looking up of Qt image plugins on Google, but I don't
> > understand what they are and how you use them. Is it just a class you
> > have to include when you compile or is it much more complex than that?
> No, you have to distribute some .dll's (or whatever library format you use on
> your platform) in the right place (where your Qt program can find them).

To be exact, you need to place the image plugin dlls in your bin (executable's) directory under a sub-directory called "imageformats". The dlls you need are located in your Qt directory under Qt/plugins/imageformats.

Eric

> 
> André
> 
> 
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest



More information about the Qt-interest-old mailing list