On Lun 18 Oct 2010 16:27:43 Josh Stratton escribió:
> Are there any QtJambi hooks for loading a QIcon from an image inside a
> jar file? In Java Swing I would pass the icon the file object to the
> icon, which I got from getResource, but QIcon and its respective
> equivalents don't take those kind of paths. They only seem to take
> file paths. Is it possible to feed them straight in somehow? I could
> always just copy them to a temp dir on startup of my app, but that
> seems hackish if there was a way to do it already.
>
try something like :
MainWindow.setWindowIcon(new QIcon(new
QPixmap("classpath:com/nettrace/lotecarng/gui/resources/images/azul_logo.png")));
> Thanks, Josh
> _______________________________________________
> 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