[PyQt] QSpinBox valueChanged signal

Chris Wood c.c.wood at gmail.com
Mon Jun 30 16:55:34 BST 2014


On 30 June 2014 16:50, Vincent Vande Vyvre <vincent.vandevyvre at swing.be>
wrote:

> 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.


I'm not saying the docs are wrong (but perhaps they are little bit
ambiguous), I just wanted to know if there's a way to achieve what I want
:)


> --
> Vincent V.V.
> Oqapy <https://launchpad.net/oqapy> . Qarte <https://launchpad.net/qarte>
> . PaQager <https://launchpad.net/paqager>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140630/8522da65/attachment-0001.html>


More information about the PyQt mailing list