[PyQt] QSpinBox valueChanged signal
Chris Wood
c.c.wood at gmail.com
Mon Jun 30 16:22:12 BST 2014
The documentation for the valueChanged signal says that
`This signal is emitted whenever the spin box's value is changed. The new
value's integer value is passed in i.`
as opposed to editingFinished, which is only emitted when focus is lost.
However, I've found that if you type a value into a QSpinBox, then the
signal is only emitted when focus is lost. This contrasts to QLineEdit
where textChanged (and textEdited) are emitted when the text is changed and
the focus is still the QLineEdit.
Is there a way to get round this when using a QSpinBox, so that a signal is
emitted when text is typed into the widget without having to lose focus?
Thanks,
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140630/8e8451e1/attachment.html>
More information about the PyQt
mailing list