[Qt-jambi-interest] [BUG] JUIC use complete path to refer to icons
Gunnar Sletta
gunnar at trolltech.com
Wed Jul 23 08:54:59 CEST 2008
Jose Arcangel Salazar Delgado wrote:
> 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();
Hi Jose,
This is indeed the wrong behaviour. The classpath files should be
referenced relativly. How did you create this .jui file? When I try to
select resources in designer and save the jui file I only get relative
paths. Both for resources in the file system and resources located in .jars.
Best regards,
Gunnar
More information about the Qt-jambi-interest
mailing list