[Qt-interest] QSpinBox with large values
Scott Aron Bloom
Scott.Bloom at sabgroup.com
Mon Feb 2 16:46:23 CET 2009
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> bounces at trolltech.com] On Behalf Of Srdjan Todorovic
> Sent: 2009-02-02 07:19
> To: Милош Тошић
> Cc: qt-interest at trolltech.com
> Subject: Re: [Qt-interest] QSpinBox with large values
>
> Hi,
>
> 2009/2/2 Милош Тошић <milostosic77 at gmail.com>:
> > Could anyone explain me why the setRange / setMinimum / setMaximum
> methods
> > of QSpinBox are taking ints for arguments?
> > My problem is that I would like to have 64bit values editable with spin
> box
> > but for this to work those methods would have to take QVariant as an
> > argument.
>
> Which Qt version?
>
> But this draws another question from me: is Qt 64bit software?
>
> Srdjan
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
[Scott Aron Bloom]
It does nto appear that QSpinBOx supports 64 bit numbers as a range, Its probably an artifact and a usage model issue.. (It would be very difficult for a user to roll through that large a value range IMO)
That said,, you could "copy" the QSpinBox code, and use qlonglong as your numbers... QSpinBox is derived from QAbstractSpinpBox which is pretty easy to use.
And yes... QT can be easly built as a 64 bit library.
Scott
More information about the Qt-interest-old
mailing list