PDA

View Full Version : How to get rid of this QRadioButton's border?



mying
19th January 2011, 23:35
5786

This is a screenshot of Qt's example stylesheet. The rectangle appears when I click on a QRadioButton. It doesn't seem like a border since setting border= none returns the same result. Could anybody give me any help or hint on how to remove it please?

5785
Also if there was no custom styles, the radio button's text gets blocked when I click on it.

The same thing happens for QCheckBox as well.

Thanks in advance.

wysota
20th January 2011, 01:38
This rectangle marks that the button has focus. One way to get rid of it is to set the widget's focus policy to NoFocus. You can probably do it through stylesheets too but you have to find the right syntax yourself.