[Qt-interest] icons are not appearing in windows
David Ching
dc at remove-this.dcsoft.com
Mon Dec 7 17:54:50 CET 2009
"Sujan Dasmahapatra" <sujan.dasmahapatra at gmail.com> wrote in message
news:b3126990912070451t512aae3fn7d196f51b2dd99f3 at mail.gmail.com...
> Hi David
> My windlyzer.qrc file looks like this .This file is located in rc
> directory under the directory where the program runs.
> and images are in images folder under the current directory.
> This images are working fine in LINUX problem in VC++ windows.but the
> images are visible in windows in any icon
> or image editor. Suggestions from anyone would > be appreciated . Thanks
> ///////////////////////////////////////////////////////////////////////////
> <!DOCTYPE RCC><RCC version="1.1">
> <qresource>
> <file>../images/geom.jpg</file>
> <file>../images/mesh.jpg</file>
> <file>../images/geom.png</file>
> <file>../images/mesh.png</file>
> <file>../images/geom_mod.png</file>
> <file>../images/mesh_mod.png</file>
> <file>../images/copy.png</file>
>
> </qresource>
> </RCC>
>
> ////////////////////////////////////////////////////////////////////////
I don't know how the "../images" works. My .qrc doesn't have "../". What
works for me is my qrc is this:
<qresource prefix="/iklogin">
<file>resources/steel_nologo.gif</file>
</qresource>
NOTE: the resources/ folder is beneath the current one (containing
.vcproj file).
and I successfully create an image like this:
QImage backgroundImage (":/iklogin/resources/steel_nologo.gif", "gif")
Try removing the "../" and use a prefix. Also try with a simple .bmp
instead of jpg and gif to see if the issue is that the plugin is not loaded
(bmp plugin is always there), as recommended previously.
-- David
More information about the Qt-interest-old
mailing list