Disabling does not gray-out buttons
Hi,
Qt 4.6
openSuSE 11.2
QApplication style set to "plastique" or "oxygen".
I'd like to disable a QPushButton with setEnabled(false). The button is disabled (no clicks are possible), but not grayed-out. Somehow stupid for the user.
With the QQApplication style set to "motiff" the button view slightly changes, but still is not gray-out and looks ugly.
What to do ?
Thanks
me :)
Re: Disabling does not gray-out buttons
Re: Disabling does not gray-out buttons RESOLVED
Hi,
I've modified the palette, but I've used the
QPalette::setColor( ColorRole role, const QColor & color ), instead of
QPalette::setColor ( ColorGroup group, ColorRole role, const QColor & color )
so I've changed all color groups instead of active color only.
Thanks for help
me :)
1 Attachment(s)
Re: Disabling does not gray-out buttons RESOLVED
Curious, works fine here on Gentoo with 4.6.3. This is motif, plastique and oxygen styles from top to bottom:
Attachment 5322
Re: Disabling does not gray-out buttons RESOLVED
Thank you ChrisW67, as I already wrote (see above) it was my bug.
By the way - how to mark a thread noticeably as resolved or finished, so the it is not continued any more ?
greetings