[Interest] QLIneEdit Bug still valid ?

Constantin Makshin cmakshin at gmail.com
Tue Jul 17 01:06:43 CEST 2012

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é

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120717/dcf49191/attachment.sig>

More information about the Interest mailing list