PDA

View Full Version : Remove color when pushButton is selected



alenn.masic
26th November 2012, 14:06
Hi all

I have a button with transparent icon over it, but when I click on that button it becomes selected and as usual OS put some color over it so we can know that button is selected. Is there a way to remove this color so I can have clean button when I click on it.

prof.ebral
28th November 2012, 18:15
setStyleSheet


QPushButton:pressed { add your style here; }

wysota
28th November 2012, 19:09
Hi all

I have a button with transparent icon over it, but when I click on that button it becomes selected and as usual OS put some color over it so we can know that button is selected. Is there a way to remove this color so I can have clean button when I click on it.

Set its focus policy to NoFocus.

alenn.masic
28th November 2012, 21:39
Set its focus policy to NoFocus.

that's it. thanks