[Qt-interest] How to set textcolor for actions in QMenu?
Arnold Krille
arnold at arnoldarts.de
Tue May 10 08:58:30 CEST 2011
On Tuesday 10 May 2011 06:59:18 Wilhelm wrote:
> Am 09.05.2011 12:44, schrieb Arnold Krille:
> > There is a reason for standards. There is a reason for themes. There is a
> > reason your apps menus look the same as the ones from
> > dolphin/konqueror/marble/whatever on your platform. Actually there are
> > several reasons, accessibility is one of them, the fact that an app is
> > less usable when it looks different then the others is another.
> thanks for all those answers and, surely, you all are right in the way
> that this is a bad idea (although I've seen it some places)!
If you have seen it in some places, it doesn't mean its a good idea.
> But, what about QTabBar::setTabTextColor() ? I think, the same arguments
> hold in this case, not?
Yes and no. In general its a bad idea to use these kind of functions with (for
example) QColor::red. But for tabs its an interesting idea to use with
QPalette::Link or QPalette::LinkActive to highlight this tab for temporary
attention.
While this is a case often found with tabs (like in chat-clients, terminal-
applications, even browsers) its rather uncommon that a menu-item needs non-
permanent attention.
Have fun,
Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110510/f0fecfd4/attachment.bin
More information about the Qt-interest-old
mailing list