PDA

View Full Version : gridlayout with QPushButton,QIcons and QLabel with trasparent background



PstdEr
28th March 2013, 02:33
Hi,

I need to create a UI with some icons ,these Icons must be arranged in a grid layout fashion with the transparent background.
I have tried with QPushButton , QIcon and QLabel but i am not able to make the pushbutton , label background transparent so that i can see only icon and name below the icon with the background image of widget on which they are placed.

can some one let me know with some example code or reference how else i can design the same UI.

ChrisW67
28th March 2013, 06:57
Have you tried?


widget->setStyleSheet("background-color: rgba(0,0,0,0%)");