Hi I'm trying create a QToolButton with a QIcon on it so that different bitmaps are displayed for different active states. How do I realize this using Qt Designer?
In code it looks like this:
QToolButton *backButton = new QToolButton(myToolBar);
QIcon backIcon(QString::fromUtf8("./graphics/BACK1.BMP"));
backIcon.addFile(QString::fromUtf8("./graphics/BACK2.BMP"),QSize(38,38),QIcon::Active,QIcon::Off);
backButton->setIcon(backIcon);
Thanks for the help.
Stefan