PDA

View Full Version : textChanged vs textEdited



Raccoon29
26th March 2008, 08:34
Hi everyone,

it seems a stupid question, but I found no answer, even in this forum history, so...

The question is: what is the difference between textChanged signal and textEdited signal for a QLineEdit?

I read docs, but it just says that they are emitted when text changes for both of them. So? :confused:

Thank you in advance

wysota
26th March 2008, 09:01
textChanged() is emited whenever the contents of the widget changes whereas textEdited() is emited only when the user changes the text using mouse and keyboard (so it is not emitted when you call QLineEdit::setText()).

Raccoon29
26th March 2008, 09:14
Thank you, now it has sense :)

...yes,but doc could spend two words for this...

wysota
26th March 2008, 14:09
I personally think they are clear about it.

Raccoon29
27th March 2008, 17:01
Oh God, you are right, it is written below! :eek:

...sorry, I wasted a thread, I can't really understand why I missed it...
sorry, again and thank you for your answers... :o