[SailfishDevel] How do I include ressources (.png) in my project ?

Franck Routier (perso) alci at mecadu.org
Fri Oct 4 10:22:32 UTC 2013


Thanks a lot !

Worked like a charm, once I realized that I had to use a url (qrc://...) 
with IconButton, but that was easy.
When I ceated a .qrc file, it was automatically added to the .pro file.
I could not edit it using the resource editor first, as the file was 
empty... but once populated from the example given in the (nokia :-) 
doc, all went fine.

Regards,
Franck



Le 04/10/2013 10:30, Volodymr Kuksynok a écrit :
> 10/4/13 11:27 AM, Franck Routier (perso) ???????(??):
>> Hi,
>>
>> I am trying to create a simple application that displays a png file 
>> using QtQuick / Silica.
>> I am using IconButton, but I can't get the png file to be deployed on 
>> the Sailfish virtual machine.
>> I have added the file in the "other files" directory of the project, 
>> but I must be missing a step...
>> I guess I should play with the sailfishapplication.pri file, or not 
>> :-), but I'm quite clueless on that (I'm a java kind of guy), and I 
>> expect a "standard way" of including such ressource...
>>
>> Thanks for any tip or pointer,
>>
>> Franck
>>
>>
>>
>> _______________________________________________
>> SailfishOS.org Devel mailing list
> Hello!
>  You can use standart Qt reources mechanism
> http://harmattan-dev.nokia.com/docs/library/html/qt4/resources.html

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20131004/68e5ad40/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4237 bytes
Desc: Signature cryptographique S/MIME
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20131004/68e5ad40/attachment.bin>


More information about the Devel mailing list