Details
-
Suggestion
-
Resolution: Fixed
-
P3: Somewhat important
-
None
-
None
-
ce85cb161 (dev)
Description
I'm implementing a live preview, where edits made to a SpinBox should update some backend values instantly. Unfortunately this doesn't work for SpinBox, whose only modification signal is emitted when e.g. enter is pressed. Using valueChanged as a workaround is not possible, as it's not emitted until the value is accepted, and same with displayText. There's no editText to use either (as seen in e.g. ComboBox). So it seems the only workaround is to have a Binding to the contentItem's textEdited signal. However, even despite that only being a workaround, it also has its own issues:
To avoid having to use valueFromText, having an editText property would help too.
Attachments
Issue Links
- is duplicated by
-
QTBUG-103205 SpinBox, no way to listen for text entered
-
- Closed
-
- relates to
-
QTBUG-64151 "Error: Locale: Number.fromLocaleString(): Invalid format" when erasing last digit of "2,000" in editable SpinBox
-
- Closed
-
-
QTBUG-99177 Add a signal for editingFinished in ComboBox
-
- Reported
-
- resulted in
-
QTBUG-114694 [Tests] tst_controls::Basic::SpinBox::test_editable_doubleSpinBox fails on macOS
-
- Closed
-