Prashant Saxena wrote:
I am initializing spinBox with value (0.421), what I am getting is (0.42).
Third decimal precision is getting disappeared. I need exact value in spin box.

the value of QDoubleSpinBox.decimals() defaults to 2.

you need to call setDecimals(3) *before* you call setValue(0.421).

HTH

_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to