How to add float values as the step size in spinbox ....
I want to increment the step value at a rate of 0.1,0.2, ......
How to add float values as the step size in spinbox ....
I want to increment the step value at a rate of 0.1,0.2, ......
Hi,from Qt documentation:
QSpinBox is designed to handle integers and discrete sets of values (e.g., month names); use QDoubleSpinBox for floating point values.
With Qt3 you can use wwFloatSpinBox from wwWidgets.
For Qt4, there is already a QDoubleSpinBox that works nicely.
For Qt3, the above class works. I also created a FixedSpinBox class for my QBrew program (on my website). I also seem to recall one on the free download page at Trolltech.
Bookmarks