[Qt-interest] Images only showing on machine software was originally written on
Paul Miller
paul at fxtech.com
Tue May 24 18:41:41 CEST 2011
On 5/24/2011 11:33 AM, Andre Somers wrote:
> 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).
Right but you don't need to do this if:
a) your images are PNGs
b) they are stored in your resource file properly, which is compiled
into your application
I suspect his images are not making it into his resource file (if he is
now using PNG images).
More information about the Qt-interest-old
mailing list