Is it possible to make QPushButton and QToolButton look identical during mouse-over, i.e. the look and feel for hover events?
I don't use custom stylesheets, but there is a global application setting:
QtGui.QApplication.setStyle("plastique")
I'm looking for something like "propagate" the current (system-default) mouse-over-stylesheet of a QPushButton to a QToolButton. By default, a QPushButton will be highlighted during mouse-over, while a QToolButton does nothing at all.
Environment: Qt 4.8.6, running on Linux CentOS 6 and Windows 7
Taking Nicolas answer as starting point, I created an own CSS style sheet:
To apply the style, I used the following PyQT code snippet:
The resulting look and feel is almost identical to the default "plastique" style, if the application background color is set to "#ede9e3".
At first, I applied the style sheet to all Tool- and PushButtons (i.e. system default). But after this, all buttons in dialogs lost there default width. So I decided to apply the style only to the buttons inside of the vertical layout, which contains all involved buttons.