I'm trying to make a normal button on Over effect (on qt 4.5) : when you go over a button it switch to a different image, when you leave it it turn back to the normal image.
i write this lines:
QToolButton* dice= new QToolButton(this);
QIcon icon;
icon.addPixmap(QPixmap("img/gioca_on.png"),QIcon::Active);
icon.addPixmap(QPixmap("img/gioca_off.png"),QIcon::Normal);
dice->setIcon(icona);
dice->setIconSize(QSize(103, 43));
dice->setGeometry(50, 50, 103, 43);
probably i don't get at all how to use the MODE parameter on the addPixmap method.
any suggestion.
On the same topic, what about if i want to use alpha-png (so with transparence) and don't want to show the normal PushButton Gui under the transparence?
tnx all




Reply With Quote
Bookmarks