Search code examples
qtqtgui

QDoubleSpinBox: how to reduce the number of digits after the decimal point?


How I can reduce the number of digits after the decimal point? The default is 6 characters. Too many. TY.


Solution

  • Use myspinbox.setDecimals ( int prec )