hello,
Is any way to thread images? I mean, I have load an image on a button. This image has a red zone that i don't need and I would like to erase that black area and stay with the desired image.
Is any way to turn this area(the red one) transparent?
My code is the following one:
QPixmap buttonImage("images/down.bmp");
QPixmap button2Image("images/up.bmp");
QIcon Icon;
Icon.addPixmap ( buttonImage, QIcon::Normal, QIcon::Off );
Icon.addPixmap ( button2Image, QIcon::Normal, QIcon::On );
QPushButton *Button = new QPushButton(&widget1);
Button->setIcon(Icon);
Button->setIconSize(QSize(120,80));
Button->setCheckable(true);
Button->setGeometry(0,0,100,78);
Button->move(295,320);
thanks in advance!!
Bookmarks