[Qt-interest] Remove QPushButton's click effect
Bence Magyar
mw.mzperx at gmail.com
Tue Aug 9 15:50:57 CEST 2011
Dear List,
As the subject states I want to remove QPushButton's click effect. By click
effect I mostly mean the orange-like half-transparent foreground coloring.
(It is orange-like since I am on Ubuntu, the coloring is different on other
systems/styles.)
I have been looking around for stuff like this but I only managed to get rid
of the moving effect of the pushbuttons content via setting a padding in
CSS.
These pages seemed to be the most useful:
http://doc.qt.nokia.com/4.6/stylesheet-examples.html#customizing-qpushbutton
http://stackoverflow.com/questions/1712199/styling-qpushbutton-with-css
So my objective is to get a widget I can display a picture on and this
widget has a clicked() signal without any graphical side-effect.
Is there a way of solving this simply without having to derive from
QAbstractButton or QPushButton and override the paint method?
My goal is quite simple after all so I hope there is an elegant way instead
of writing "tons" of code.
-Bence
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110809/bd2ba663/attachment.html
More information about the Qt-interest-old
mailing list