[Qt-interest] changing colors in spin box

Jason H scorp1us at yahoo.com
Fri Aug 19 19:35:01 CEST 2011


I was hoping he would elaborate on what part he didn't udnerstand. Like the changing the color for the background role of the widget's palette or what not. Did I just say too much? ;-)



________________________________
From: Doug Stewart <doug.dastew at gmail.com>
To: André Somers <andre at familiesomers.nl>
Cc: qt-interest at qt.nokia.com
Sent: Friday, August 19, 2011 1:24 PM
Subject: Re: [Qt-interest] changing colors in spin box





On Fri, Aug 19, 2011 at 9:06 AM, André Somers <andre at familiesomers.nl> wrote:

Wrong guess. Of course it is possible. There can be a 1000 reasons nobody replied (yet). One of those is that it is unlikely that you are using a QAbstractSpinBox, though you might be subclassing one though. You might want to reimplement stepBy and update the background color based on the value that is set from there. 
>
>Andre
>
>
>On Fri, Aug 19, 2011 at 2:44 PM, Doug Stewart <doug.dastew at gmail.com> wrote:
>
>
>>
>>
>>On Wed, Aug 17, 2011 at 11:20 PM, Doug Stewart <doug.dastew at gmail.com> wrote:
>>
>>I am using an qabstractspinbox, and I want to change the back ground color when I spin to a different text.
>>>
>>>
>>>How can I do this?
>>>
>>>Doug 
>>
>>I got no answer so I guess its not possible.
>>Doug
>>_

Thanks for your hint. I will look at it soon.
Doug
Yes I did a sublass of it. 

_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110819/cffbe62e/attachment.html 


More information about the Qt-interest-old mailing list