[PyQt] Qspinbox maximum value

Mark Summerfield mark at qtrac.eu
Tue May 8 11:25:54 BST 2007


On Tue 8-May-07, joanne matthews (RRes-Roth) wrote:
> I'd need to be able to enter a value of 100000000000 in a qspinbox.
> setMaximum only seems to accept 1000000000. How can I change this
> behaviour?

On my 32-bit machine the biggest maximum number is 2^31-1, i.e.,
2147483647. An alternative would be to use a QDoubleSpinBox. This will
happily take a maximum of 100000000000L, and you can always set it to
show no decimal digits so that it looks to the user like it only handles
whole numbers.



-- 
Mark Summerfield, Qtrac Ltd., www.qtrac.eu




More information about the PyQt mailing list