[PyQt] QSpinBox valueChanged signal
Vincent Vande Vyvre
vincent.vandevyvre at swing.be
Mon Jun 30 16:50:58 BST 2014
Le 30/06/2014 17:22, Chris Wood a écrit :
> 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
>
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
The doc says right, probably a problem in your code.
--
Vincent V.V.
Oqapy <https://launchpad.net/oqapy> . Qarte
<https://launchpad.net/qarte> . PaQager <https://launchpad.net/paqager>
More information about the PyQt
mailing list