Qt 6.12 LTS is out! See what's new in the release
blog
Make pixmap transparent on QPushButton
General and Desktop
2
Posts
1
Posters
1.2k
Views
1
Watching
-
Hello ,
i want to set transparent pixmap on QPushButton. the image that is loaded not transparent.
EX.QImage image("ex.xpm")
QPixmap pix(image.copy(, 0,.width,height));
button.setIcon(pix);here ex.xpm is not transparent. please help me.
-
actually i want to change background of QPixmap image to transparent