Solved QPushbutton remove or modify dotted frame when it is focused
-
Hi!
I want to remove or modify the dotted rectangle from a focused qpushbutton without a style sheet.
QPushButton does not have a setFrameStyle method, such as QListWidget.Thanks in advance.
-
Hi,
If without style sheet then you'll have to write a proxy style to draw the PE_FrameFocusRect for your button. See QStyle::CE_PushButton.
-
@SGaist said in QPushbutton remove or modify dotted frame when it is focused:
QStyle::CE_PushButton
Thanks for the reply, I will try.
SetFocusPolicy (Qt :: NoFocus) also provided a good solution.