Integrating QProxyStyle with styleSheet to prevent the movement of QToolButton.
-
Hi I'm looking for a way to prevent the visible movement of
QToolButtonwhen clicked. I found this post:https://forum.qt.io/topic/15068/prevent-flat-qtoolbutton-from-moving-when-clicked/7
My problem is that I also set the styleSheet for my button:
toolButton->setStyleSheet("QToolButton {border: none; color: #223f5a;}");and this doesn't work well with
QProxyStyle. Can someone tell me how I can integrate the stylesheet withQProxyStyle? -
Hi,
Since you are using a proxy style then do all the styling in there.