Hello,
There is a similar way to do this in qt-jambi, using classpath:file.
Here is an example to set an icon for a button :
myscreen.exitButton.setIcon(new QIcon("classpath:exit2.png"));
It's the same thing for properties, pictures etc...
Regards
Paul.
Le samedi 28 juin 2008 à 03:51 +0200, [EMAIL PROTECTED] a écrit :
> hi all!
> i am looking for a way to get an image from the inside of a .jar file
> (to use as an icon). in swing i did something like:
>
> setIconImage(new
> ImageIcon(SomeClass.class.getResource("my_icon.gif")).getImage() );
>
> which worked fine with SomeClass.class being in the same directory
> inside the .jar as the .gif file. is there an easy way to do something
> similar in qt-jambi?
>
> thanks for your help, mops
> _______________________________________________
> Qt-jambi-interest mailing list
> [email protected]
> http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
>
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest