QToolButton is adding extra padding by itself
Unsolved
General and Desktop
-
wrote on 9 Jun 2020, 16:49 last edited by
-
Hi
yes its reserved for hover effect. ( blue frame)
I dont know any way easy to get rid of it. -
wrote on 9 Jun 2020, 17:22 last edited by
I can adjust padding using a stylesheet.
QToolButton { padding: -1 -2 -2 -1; }
Resets the padding completely, but I'm getting varying results on different QToolBars, was hoping there was a good way to reset it properly.
-
Hi
I tried with QProxyStyle but could not guess where it get the border from so gave up and went with stylesheet.
1/4