[Qt-interest] Disabling buttons without gray color
Nicholas Shatokhin
n.shatokhin at gmail.com
Sun Oct 30 19:48:46 CET 2011
I'm changing icons on buttons. So, when I disable button (I need that user
can't click it) icon become grayscale. I need that enabled buttons and
disabled looks similar. I need that disabled button looks like as enabled
but was unclickable.
Sun, 30 Oct 2011 21:45:38 +0300 було написано Gopalakrishna Bhat
<gopalakbhat at gmail.com>:
> Hi,
>
> It is always good to distinguish a disabled button from the one that is
> not
> because the user keep pressing the button and he will not know what
> happened to his actions.
>
> If you really do it as per your question way then you can install event
> filters QObject::installEventFilter and filter out the input events.
>
> On Mon, Oct 31, 2011 at 12:06 AM, Nicholas Shatokhin
> <n.shatokhin at gmail.com>wrote:
>
>> When I use method setDisable(true) of QPushButton or QTableView, field
>> become gray (icons on buttons lose their colors). But I don't need it. I
>> need disable button with full color icons. How can I do this?
>>
>> Best regards,
>> Nick.
>>
>> --
>> За використання революційного клієнта електронної пошти Opera:
>> http://www.opera.com/mail/
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at qt.nokia.com
>> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>>
>
>
>
--
За використання революційного клієнта електронної пошти Opera:
http://www.opera.com/mail/
More information about the Qt-interest-old
mailing list