Re: Loading disabled icons
You can add a second pixmap to the icon set so that Qt will swap icons on its own. Just take a look at QIconSet::setPixmap() and use the mode QIconSet::Disabled.
Re: Loading disabled icons
Thanks a lot that worked.
Code:
I have another similar question if i need to define different large icon sizes for toolbar and smaller icon size for menubar.
if (mToolbar)
{
mAction
->setIconSet
(QPixmap("largeICon" ),QIconset
::Large))}
if
if (mMenu)
{
mAction
->setIconSet
(QPixmap("smallIcon" ),QIconset
::small))}
When executes above code it just load only one size icon it overwrites another icon size.
Re: Loading disabled icons
Don't change the icon set. Add a pixmap with a different mode to the existing icon set.