[Qt-interest] Disabled widget using QStyleOption
Fabio Dago
fabio.dago at sir.to.it
Mon Jul 13 10:07:03 CEST 2009
Hi.
I'm trying to draw a disabled progressBar using QStyle::drawControlMethod().
I thik I have to set the right property in the QStyleOption parameter to
make my progressBar disabled, but I don't know how...
The QStyle::State property doesn't wok. The default value is
QStyle::State_None but the progressBar is drawn as enabled, even if the
<qstyle.html#StateFlag-enum> QStyle::State_Enabled is not set.
<qstyle.html#StateFlag-enum>
Any other idea?
Thanks.
Fabio.
<qstyle.html#StateFlag-enum>
More information about the Qt-interest-old
mailing list