PyQt QDoubleSpinBox by default displayable and settable decimal
Unsolved
Qt in Education
-
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.
-
Hi,
You will likely be interested in textFromValue from your subclass.