PDA

View Full Version : QSpinBox Check How Value Is Set



kev946
27th August 2019, 23:13
Is there a way to check if the value was set manually (i.e. the user typed in a value) or if it was set from the up/down step button being pressed?

anda_skoa
28th August 2019, 09:50
The valueChanged() signal will always be emitted when the value changes, not matter how it is being changed.

Depending on your goal you might find it more appropriate to connect to the editingFinished() signal instead or additionally.

Cheers,
_