[Qt-interest] no icons showing up with MSVS2008
Penn Taylor
penn.taylor at atdeconsulting.com
Wed Aug 11 19:47:58 CEST 2010
>Date: Wed, 11 Aug 2010 00:36:33 -0700
>From: David Boosalis <david.boosalis at gmail.com>
>
>It used to work, but now for some reason I cannot get any icons
>displayed in my toolbars when I use MSVS 2008. However if I run
>qmake, then nmake from a DOS prompt the icons are there. Anybody have
>any suggestions on how I can get icons showing up when I compile
>inside the MSVS 2008 ide. I am using Qt 4.6.2, and from VS2008 I
>create a MSV2008 project from the Qt shortcut menu on Qt->open-qt-
>project file. It compiles nicely but now png images on my toolbar.
>
>I've even tried install of my source code from CVS.
>
>Any help very much appreicted.
>
>-David
I had a similar issue with toolbar icons recently when using SCons to
build on Linux. My project has multiple resource (.qrc) files -- I'm
guessing yours does too -- and it turned out that rcc was not being
called with the -name option. Check that rcc is being called with -name
during your build process. If multiple resources are built into one
executable or library and the -name option is not used, you get a name
clash because there are multiple definitions of qInitResources in
different translation units, and one resource effectively hides all the
others.
-Penn Taylor
More information about the Qt-interest-old
mailing list