[Solved] QSpinBox: how to signal only when editing finished?
-
QSpinBox normally emit signal valueChanged(int) for each key stroke, so if I want to insert "123", I receive 3 signals for 1, 12 and 123. I need to known when the user has completed the input, so to receive only one signal for the complete number 123.
I known I can connect to the signal editingFinisched(), but this only partially resolve my problem since I also want to be signaled even when the user step up/down (this is considered a "complete" input) and if I setValue() programmaticly.
How can I do that?
-
Hi,
just switch off "keyboardTracking":http://doc.qt.nokia.com/4.7/qabstractspinbox.html#keyboardTracking-prop
Tony.