It works incorrectly only when the validator changes the text. The cause is QLineControl::fixup() (src/gui/widgets/qlinecontrol.cpp, line 387) — it calls QLineControl::internalSetText() with only 2 parameters, omitting the one that controls emission of the textEdited() signal. And since that parameter defaults to 'true', you get what you get.
On 07/16/2012 03:38 PM, R. Reucher wrote: > On Monday 16 July 2012 09:14:31 Constantin Makshin wrote: >> Functions you are interested in are (line numbers are taken from the code >> in the Git repository): >> src/gui/widgets/qlineedit.cpp, line 383 (QLineEdit::setText) >> src/gui/widgets/qlinecontrol_p.h, line 213 (QLineControl::setText) >> src/gui/widgets/qlinecontrol.cpp, line 676 (QLineControl::internalSetText) >> src/gui/widgets/qlinecontrol.cpp, line 620 (QLineControl::finishChange) >> >> Nothing looks wrong there... > > Yeah, I also recall it was working correctly when I used it last time... > > However, the example acts "wrongly", but it somehow only happens when > the validator is set. The attached example (w/o the validator) works > correctly. > > HTH, René
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest