Alex Rivera | Logout

PyQt4: QSpinBox doesn't accept values higher than 100

Asked 2011-04-22T11:12:16.313
13

I am quite new to python and qt, i want to use a spinner that ranges from 0 - 1000000 but the QSpinBox wont go above 100 even when i set the max to be 1000000, i am sure it is really simple to do, bu i have been searching for ages and cannot find anything. here is the code i have used so far:

steps_spin = qt.QSpinBox()
steps_spin.setValue(10000)
steps_spin.setMinimum(100)
steps_spin.setSingleStep(100)

I hope you guys can help me!

Edit
Report

1 Answer

5

How about

steps_spin.setRange(0,1000000)
answered 2011-04-22T11:20:51.150

Your Answer