[Qt-interest] Images only showing on machine software was originally written on
Andre Somers
andre at familiesomers.nl
Tue May 24 18:33:15 CEST 2011
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).
André
More information about the Qt-interest-old
mailing list