[Qt-interest] Disabling buttons without gray color

Gopalakrishna Bhat gopalakbhat at gmail.com
Sun Oct 30 19:51:27 CET 2011


Then eventFilter is the way to go.

On Mon, Oct 31, 2011 at 12:18 AM, Nicholas Shatokhin
<n.shatokhin at gmail.com>wrote:

> 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<http://lists.qt.nokia.com/mailman/listinfo/qt-interest>
>>>
>>>
>>
>>
>>
>
> --
> За використання революційного клієнта електронної пошти Opera:
> http://www.opera.com/mail/
>



-- 
My blog http://gkbhat.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111031/22e08080/attachment.html 


More information about the Qt-interest-old mailing list