PDA

View Full Version : Replace all QPushButton's with MyButton



Lykurg
22nd July 2009, 22:03
Hi,

since I want to remove the selected dotted line from all QPushButton's, I have my own class MyButton with QPushButton as base. Fine. I also can replace all instances of QPushButton I use by hand. No Problem so long, but how can I even change the button used in file dialogs etc. (generated from Qt) or in QDialogButtonBox? Any simple possibility?

Thanks,

Lykurg

Lykurg
22nd July 2009, 22:10
Yeah, it's too late, forget my question, I am using a style. Ups....:o

wysota
22nd July 2009, 22:28
It's enough to install a style proxy and remove a respective hint responsible for drawing the focus frame. Then it'll work regardless of the style.

Lykurg
22nd July 2009, 23:06
It's enough to install a style proxy and remove a respective hint responsible for drawing the focus frame. Then it'll work regardless of the style.

Proxy styles are cool :cool: Never have heard of them until now. Thanks.