QIcon background not showing as transparent on QToolButton with custom button background
-
Hi,
I'm using QT 5.15.7 on an embedded system and I'm having a problem with an icon background on a QToolButton.
I have my own button background images (for button up and down) and on top of that an icon with text beneath it (this is why I'm not using QPushButton btw). Unfortunately, the icon background isn't transparent so the icon is enclosed within a white box which doesn't look great with my custom button background. Does anyone know how to fix this short of me manipulating the icon background myself?
For reference, the icon is a bitmap although I've tried a jpeg and the problem still occurs.
Thanks in advance for any help!
-
@RogerD Jpeg has no transparency.
-
Hi and welcome to devnet,
The most simple is to update your image for it to have a transparent background.
-
@RogerD Jpeg has no transparency.
-
-
-