PDA

View Full Version : [SOLVED] Remove the +/- buttons of a QDoubleSpinBox?



hickscorp
17th April 2007, 15:23
The question is in the title... What would be the best way to remove the +/- buttons of a QDoubleSpinBox object?

Thanks,
Pierre.

jpn
17th April 2007, 15:36
The question is, why? :)

Use a QLineEdit with a QDoubleValidator instead of QDoubleSpinBox.

hickscorp
17th April 2007, 15:39
The answer is, because i'm lazy to do from an edit box:
- minimum / maximum range validation,
- step control,
etc.

i didnt notice this QDoubleValidator stuff :)
So i guess you gave me the solution, with a minimal work around ^^

Thank you very much,
Pierre.