PDA

View Full Version : editingFinished() signal



jamadagni
17th February 2006, 04:07
The Qt 4.1 documentation says:

void QAbstractSpinBox::editingFinished () [signal]
This signal is emitted editing is finished. This happens when the spinbox looses focus and when enter is pressed.

This means "when the spinbox loses focus or when enter is pressed", right?

Mad Max
17th February 2006, 05:34
The Qt 4.1 documentation says:

void QAbstractSpinBox::editingFinished () [signal]
This signal is emitted editing is finished. This happens when the spinbox looses focus and when enter is pressed.

This means "when the spinbox loses focus or when enter is pressed", right?
This means "when the spinbox loses focus AND when enter is pressed". I tried it.

jamadagni
17th February 2006, 06:13
This means "when the spinbox loses focus AND when enter is pressed". I tried it.
Well how can the spinbox lose focus at the same time it receives a keystroke? Further, the spinbox may lose focus due to mouse action, and AFAIK Enter does not cause a widget to lose focus unless so explicitly configured.

Mad Max
17th February 2006, 06:39
Well how can the spinbox lose focus at the same time it receives a keystroke?
I don't know HOW it work (it not interest me yet) , but it work well, I assure you.

Further, the spinbox may lose focus due to mouse action, and AFAIK Enter does not cause a widget to lose focus unless so explicitly configured.
Probably it emit QFocusEvent inside. Just do try it in the simple app.