[Qt-interest] Disabling buttons without gray color

Malyushytsky, Alex alex at wai.com
Mon Oct 31 22:49:34 CET 2011


>> Make the users change their settings. Or maybe not. Users don't really care what the developer wants on his theme, they want to keep their theme throughout their desktop. And I for my part like disabled options/buttons/fields/windows to be of less contrast and off less color.
>>Just be glad that your toolkit of choice keeps you focused on your task at hand and not spent time with dealing all the different theme-settings. And keep that in mind the next time when you complain about some big corporate not adhering to standards...

I have not seen any complaints on toolkit behavior.

My experience is shown that most of users do not change default scheme.
As you said user do not care what developer think, but they would not like to work with ugly interface either.
So we as developers should make that our application are kept functional and attractive at any time with at least most of schemes.
That was what was question about.

Often pixmap generated by icon by default is simply ugly in disabled state.
The way to go as somebody mentioned below - explicitly set pixmap to be used in such state using available in QIcon functionality:

void addFile ( const QString & fileName, const QSize & size = QSize(), Mode mode = Normal, State state = Off )
void  addPixmap ( const QPixmap & pixmap, Mode mode = Normal, State state = Off )

Most of the time setting normal state icon to disabled will produce better ( especially if button has disabled text)  effect than auto-generated pixmap.

Regards,
  Alex


-----Original Message-----
From: qt-interest-bounces+alex=wai.com at qt.nokia.com [mailto:qt-interest-bounces+alex=wai.com at qt.nokia.com] On Behalf Of Arnold Krille
Sent: Sunday, October 30, 2011 1:54 PM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] Disabling buttons without gray color

On Sunday 30 October 2011 19:36:53 Nicholas Shatokhin 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?

Make the users change their settings. Or maybe not. Users don't really care what the developer wants on his theme, they want to keep their theme throughout their desktop. And I for my part like disabled options/buttons/fields/windows to be of less contrast and off less color.

Just be glad that your toolkit of choice keeps you focused on your task at hand and not spent time with dealing all the different theme-settings. And keep that in mind the next time when you complain about some big corporate not adhering to standards...

Arnold


---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

“This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you.”

“Please consider our environment before printing this email.”


More information about the Qt-interest-old mailing list