[Qt-interest] Removing rollover effects from my QPlastiqueStyle derived style in Qt 4.5
John Moran
johnfrederickmoran at gmail.com
Thu Feb 25 14:59:40 CET 2010
On Thu, Feb 25, 2010 at 12:55 PM, amulya rattan <talk2amulya at gmail.com> wrote:
> What you need is QStyle::State_MouseOver.
> Look for this state when drawing controls like buttons etc.
I think you forgot to e-mail the list there Amulya.
I see that that particular flag is documented here:
http://qt.nokia.com/doc/4.5/qstyle.html
I suppose I ought to call the base class (QPlastiqueStyle)
implementation in my own implementation of this pure virtual func:
void QStyle::drawPrimitive ( PrimitiveElement elem, const QStyleOption
* option, QPainter * painter, const QWidget * widget = 0 ) const
[pure virtual]
The docs say "See also drawPrimitive()" when they talk about enum
QStyle::StateFlag, which is why I think this is the case. However,
what I ought to do in the override, I do not know.
Please help!
Regards,
John Moran
More information about the Qt-interest-old
mailing list