[Qt-interest] QPalette ColorRole-s
Mihail Naydenov
mlists at ymail.com
Fri Jan 28 09:39:19 CET 2011
QPalette is a value class, subclassing is not an option;
thanks
MihailNaydenov
----- Original Message ----
> From: Nikos Chantziaras <realnc at arcor.de>
> To: qt-interest at qt.nokia.com
> Sent: Thu, January 27, 2011 5:12:03 PM
> Subject: Re: [Qt-interest] QPalette ColorRole-s
>
> On 01/27/2011 04:43 PM, Mihail Naydenov wrote:
> > Is there a particular reason for not having a UserRole last-enum-value in
> > ColorRole? So one can define custom roles.
> >
> > I guess it is to reinforce color reuse, but limits the usability of the
>class
> > for creating custom widgets.
> >
> >
> > How is this supposed to be handled?
>
> I guess by subclassing QPalette and introducing your own custom roles.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
More information about the Qt-interest-old
mailing list