Hi there,
When developing my application on Qt Creator and I launch the program from there, all goes fine. Also when executing the .exe locally.
But when i try the program on another computer (Windows XP SP3) which doesn't have Qt installed, images are not displayed. These images are svg and gif. I configured Qt with the option -qt-gif but I think that the problem isn't gif images because also svg images are not displayed.
With the program executable I supply also these files:
- libgcc_s_dw2-1.dll
- mingwm10.dll
- qgif4.dll
- qsvg4.dll
- QtCore4.dll
- QtGui4.dll
Images are embedded in the .exe files through the qrc resource file:
<RCC>
<qresource>
<file>BalloonSat.svg</file>
<file>dash.gif</file>
<file>dashdot.gif</file>
<file>dashdotdot.gif</file>
<file>dot.gif</file>
<file>dots.gif</file>
<file>lines.gif</file>
<file>solid.gif</file>
<file>steps.gif</file>
<file>sticks.gif</file>
</qresource>
</RCC>
<RCC>
<qresource>
<file>BalloonSat.svg</file>
<file>dash.gif</file>
<file>dashdot.gif</file>
<file>dashdotdot.gif</file>
<file>dot.gif</file>
<file>dots.gif</file>
<file>lines.gif</file>
<file>solid.gif</file>
<file>steps.gif</file>
<file>sticks.gif</file>
</qresource>
</RCC>
To copy to clipboard, switch view to plain text mode
Which is located in the /icons directory (in the .pro there is "RESOURCES += icons/BalloonSat.qrc"). Then I load images like here:
fWindow
->setWindowIcon
(QIcon(":BalloonSat.svg"));
fWindow->setWindowIcon(QIcon(":BalloonSat.svg"));
To copy to clipboard, switch view to plain text mode
Using Windows XP SP3, Qt 4.5.3 and Qt Creator 1.3.0
Anyone can help me?
Sorry for my english, hope you can understand my problem
Thanks, Dario
Bookmarks