I have a QDoubleSpinBox widget and set decimals be 4. I found that even if the number is 0.25, it is displayed as 0.2500. I'd like the QDoubleSpinBox to display the decimals of a number without suffix 0s. For example, 0.255 should be displayed 0.255 but not 0.2550. Could anyone show me how to set this option?