SpinBox Wheel Event
-
How can I detect that SpinBox's value changed by the user rather than the program, and how can I catch the wheel event when SpinBox's value changed with a mouse wheel?
-
Hi,
It has "value":http://qt-project.org/doc/qt-5/qml-qtquick-controls-spinbox.html#value-prop property so you can use onValueChanged handler.
-
Hi,
It is invoked even when the value is changed by the program, and it doesn't have any properties to get the way the value changes (mouse wheel, table model or keyboard) -
There's no direct way to get these but as a workaround for the mouse wheel you could define a MouseArea for the Spinbox and then use onWheel to detect changes by MouseWheel. You will need a flag to hold this change.