I am trying to make a QDoubleSpinbox that allows for entering custom metric distances with units, e.g. "3.123 mm", "2.1 um", "10.567 m".
Is there any way to convince QDoubleSpinbox to make the suffix editable?
I am trying to make a QDoubleSpinbox that allows for entering custom metric distances with units, e.g. "3.123 mm", "2.1 um", "10.567 m".
Is there any way to convince QDoubleSpinbox to make the suffix editable?
I figured it out. Can't use
suffix(), but there is another way. Here you go:Alternatively, here is a link to the full version that includes some checks.