[Qt-interest] mask for spin box

Duane Hebert spoo at flarn.com
Tue Feb 9 16:53:01 CET 2010


"Ian Thomson" <Ian.Thomson at iongeo.com> wrote in message news:4B7173BB.3060806 at iongeo.com...
> Hi,
> 
> Robert Wood wrote:
>> It does it as standard. You can prove this to yourself very simply by 
>> simply sticking one on a form and keeping the up arrow depressed. You'll 
>> soon see it flip from 9 to 10. :~)
> 
> I'm guessing he meant trailing digits, e.g. 01 instead of 1. This could 
> probably be done by inheriting from the class and overriding 
> textFromValue and valueFromText.

Yes like 01 - 59.  I was hoping there was a mask setting but it looks like
I will have to override these functions.

Thanks.



More information about the Qt-interest-old mailing list