walsha3000
21st February 2010, 00:40
I can't seem to get the ToolButton icon to change when pressed.
This is the simple code I use...
btnArrowLeft = new QToolButton;
btnArrowLeft->setObjectName("ArrowLeft");
// make the icon
QIcon iconGif( "icons/iconBack1.gif");
iconGif.addFile( "icons/iconBack2.gif", iconSize, QIcon::Active, QIcon::Off );
//
btnArrowLeft->setIcon( iconGif );
Am I missing some obvious part?
Thanks for any help
andy walsh
This is the simple code I use...
btnArrowLeft = new QToolButton;
btnArrowLeft->setObjectName("ArrowLeft");
// make the icon
QIcon iconGif( "icons/iconBack1.gif");
iconGif.addFile( "icons/iconBack2.gif", iconSize, QIcon::Active, QIcon::Off );
//
btnArrowLeft->setIcon( iconGif );
Am I missing some obvious part?
Thanks for any help
andy walsh