[Qt-jambi-interest] [BUG] JUIC use complete path to refer to icons

Jose Arcangel Salazar Delgado arcangel.salazar at gmail.com
Tue Jul 22 09:28:24 CEST 2008


Hi.
Look at this code that is generated by de JUIC when I set an Icon to a
QAction in the Designer using the Resource system:

actionNuevo = new QAction(Ui_MainWindow);
actionNuevo.setObjectName("actionNuevo");
actionNuevo.setIcon(new QIcon(new
QPixmap("classpath:file:/home/arcangel/workspace/carniceria/src#com/linuxsoluciones/carniceria/resources/add.png")));
QFont font = new QFont();

I don't know if this is the correct behavior, but when you share the
code trough SVN disable the other to see the Icons in the app until
they reset the Icons.

Thanks for the time.



More information about the Qt-jambi-interest mailing list