slint icon indicating copy to clipboard operation
slint copied to clipboard

SpinBox "manual edition" when using large values

Open djobet opened this issue 7 months ago • 0 comments
trafficstars

Feature Description

It would be nice if the spinbox could also be used as LineEdit, ie : in order to input large values quickly, the user could just edit the value of the spinbox as if it was a LineEdit. I think Qt offers that with its implementation of QSpinBox. From QT's doc : QSpinBox allows the user to choose a value by clicking the up/down buttons or pressing up/down on the keyboard to increase/decrease the value currently displayed. The user can also type the value in manually. The spin box supports integer values but can be extended to use different strings with [validate](https://doc.qt.io/qt-6/qspinbox.html#validate)(), [textFromValue](https://doc.qt.io/qt-6/qspinbox.html#textFromValue)() and [valueFromText](https://doc.qt.io/qt-6/qspinbox.html#valueFromText)().

Product Impact

No response

djobet avatar Apr 16 '25 10:04 djobet