Qt-interest Archive, July 2007
No icon displayed when target is run on an other workstation...
Message 1 in thread
Dear community,
I'm trying to deploy a Qt application.
Everything works fine on our development workstation, but when testing on an
other workstation icons don't appear on the GUI...
1. On our development workstation, icons do appear on the GUI, even though
the target (*.exe file) is moved anywhere else out of the project directory
on the hard drive.
2. But, they do not appear when the target is run on an other workstation,
with the Qt's *.dll in the same directory.
Does someone has any idea?
Thank you,
Christophe
Note: I used the Qt Designer to do it.
--
[ signature omitted ]
Message 2 in thread
Do you declare the icon files in the resource file?
1) Create one resource file , for example app.qrc
2) Declare icons image file in this file as the following format
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>xxx.png</file>
<file>yyy.png</file>
</qresource>
</RCC>
3) Add one item in the project file
RESOURCES += app.qrc
-----Original Message-----
From: Christophe Bismuth [mailto:christophe.bismuth@xxxxxxxxx]
Sent: 2007年7月27日 7:46 PM
To: qt-interest@xxxxxxxxxxxxx
Subject: No icon displayed when target is run on an other workstation...
Dear community,
I'm trying to deploy a Qt application.
Everything works fine on our development workstation, but when testing on an
other workstation icons don't appear on the GUI...
1. On our development workstation, icons do appear on the GUI, even though
the target (*.exe file) is moved anywhere else out of the project directory
on the hard drive.
2. But, they do not appear when the target is run on an other workstation,
with the Qt's *.dll in the same directory.
Does someone has any idea?
Thank you,
Christophe
Note: I used the Qt Designer to do it.
--
[ signature omitted ]
Message 3 in thread
That's exactly what I've done...
"brian li" <lxgbrian@xxxxxxxxx> a ¨¦crit dans le message de news:
46a9de02.1437720a.1f3b.0081@xxxxxxxxxxxxxxxx
Do you declare the icon files in the resource file?
1) Create one resource file , for example app.qrc
2) Declare icons image file in this file as the following format
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>xxx.png</file>
<file>yyy.png</file>
</qresource>
</RCC>
3) Add one item in the project file
RESOURCES += app.qrc
-----Original Message-----
From: Christophe Bismuth [mailto:christophe.bismuth@xxxxxxxxx]
Sent: 2007Äê7ÔÂ27ÈÕ 7:46 PM
To: qt-interest@xxxxxxxxxxxxx
Subject: No icon displayed when target is run on an other workstation...
Dear community,
I'm trying to deploy a Qt application.
Everything works fine on our development workstation, but when testing on an
other workstation icons don't appear on the GUI...
1. On our development workstation, icons do appear on the GUI, even though
the target (*.exe file) is moved anywhere else out of the project directory
on the hard drive.
2. But, they do not appear when the target is run on an other workstation,
with the Qt's *.dll in the same directory.
Does someone has any idea?
Thank you,
Christophe
Note: I used the Qt Designer to do it.
--
[ signature omitted ]
Message 4 in thread
Do your icons depend on any of the image formats (jpeg maybe?) that are provided as plugins? if so, you also have to deploy the image plugins.
http://doc.trolltech.com/4.3/deployment-windows.html#qt-plugins
Cheers,
Peter
> -----Original Message-----
> From: Christophe Bismuth [mailto:christophe.bismuth@xxxxxxxxx]
> Sent: Monday, July 30, 2007 12:00 PM
> To: qt-interest@xxxxxxxxxxxxx
> Subject: Re: No icon displayed when target is run on an other
> workstation...
>
> That's exactly what I've done...
>
> "brian li" <lxgbrian@xxxxxxxxx> a ¨¦crit dans le message de news:
> 46a9de02.1437720a.1f3b.0081@xxxxxxxxxxxxxxxx
>
> Do you declare the icon files in the resource file?
> 1) Create one resource file , for example app.qrc
> 2) Declare icons image file in this file as the following format
> <!DOCTYPE RCC><RCC version="1.0">
> <qresource>
> <file>xxx.png</file>
> <file>yyy.png</file>
> </qresource>
> </RCC>
>
> 3) Add one item in the project file
> RESOURCES += app.qrc
>
>
> -----Original Message-----
> From: Christophe Bismuth [mailto:christophe.bismuth@xxxxxxxxx]
> Sent: 2007Äê7ÔÂ27ÈÕ 7:46 PM
> To: qt-interest@xxxxxxxxxxxxx
> Subject: No icon displayed when target is run on an other workstation...
>
> Dear community,
>
> I'm trying to deploy a Qt application.
>
> Everything works fine on our development workstation, but when testing on
> an
>
> other workstation icons don't appear on the GUI...
>
> 1. On our development workstation, icons do appear on the GUI, even though
> the target (*.exe file) is moved anywhere else out of the project
> directory
> on the hard drive.
> 2. But, they do not appear when the target is run on an other workstation,
> with the Qt's *.dll in the same directory.
>
> Does someone has any idea?
>
> Thank you,
> Christophe
>
> Note: I used the Qt Designer to do it.
--
[ signature omitted ]
Message 5 in thread
Thank you Peter. My application depends on the Qt GIF plugin: I've created a
qt.conf file and bundled the Qt's GIF dll with the application.
Thank you,
Christophe
"Peter Prade" <prade@xxxxxxxxxxx> a écrit dans le message de news:
1C5B9B48EC79514FB4F4A7884ACFCB9F224557@xxxxxxxxxxxxxxxxxxxxxxx
Do your icons depend on any of the image formats (jpeg maybe?) that are
provided as plugins? if so, you also have to deploy the image plugins.
http://doc.trolltech.com/4.3/deployment-windows.html#qt-plugins
Cheers,
Peter
> -----Original Message-----
> From: Christophe Bismuth [mailto:christophe.bismuth@xxxxxxxxx]
> Sent: Monday, July 30, 2007 12:00 PM
> To: qt-interest@xxxxxxxxxxxxx
> Subject: Re: No icon displayed when target is run on an other
> workstation...
>
> That's exactly what I've done...
>
> "brian li" <lxgbrian@xxxxxxxxx> a ¨¦crit dans le message de news:
> 46a9de02.1437720a.1f3b.0081@xxxxxxxxxxxxxxxx
>
> Do you declare the icon files in the resource file?
> 1) Create one resource file , for example app.qrc
> 2) Declare icons image file in this file as the following format
> <!DOCTYPE RCC><RCC version="1.0">
> <qresource>
> <file>xxx.png</file>
> <file>yyy.png</file>
> </qresource>
> </RCC>
>
> 3) Add one item in the project file
> RESOURCES += app.qrc
>
>
> -----Original Message-----
> From: Christophe Bismuth [mailto:christophe.bismuth@xxxxxxxxx]
> Sent: 2007Äê7ÔÂ27ÈÕ 7:46 PM
> To: qt-interest@xxxxxxxxxxxxx
> Subject: No icon displayed when target is run on an other workstation...
>
> Dear community,
>
> I'm trying to deploy a Qt application.
>
> Everything works fine on our development workstation, but when testing on
> an
>
> other workstation icons don't appear on the GUI...
>
> 1. On our development workstation, icons do appear on the GUI, even though
> the target (*.exe file) is moved anywhere else out of the project
> directory
> on the hard drive.
> 2. But, they do not appear when the target is run on an other workstation,
> with the Qt's *.dll in the same directory.
>
> Does someone has any idea?
>
> Thank you,
> Christophe
>
> Note: I used the Qt Designer to do it.
--
[ signature omitted ]