Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
PyQt QDoubleSpinBox by default displayable and settable decimal
VladStudent last edited by
Is it possible to set QDoubleSpinBox so that by default, displayed decimals are only one decimal place (example : 1.0), but if you edit the value manually it can be set up to five decimal places (example :1.03456)?
I found only QDoubleSpinBox.setDecimals which sets both the displayed and editable decimal places to the same setting.
You will likely be interested in textFromValue from your subclass.