Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.14.0, 5.14.2
-
None
-
-
c5904cb96aed3b171c543a2cf0bed8f8ac5f95c4 (qt/qtbase/dev) 08d60c5e6278359bbf13a475db357b744643e695 (qt/tqtc-qtbase/tqtc/lts-5.15) 25d8f9da70401b4c9fb545eb488037f76ba770f7 (qt/qtbase/6.0) a363e1e8ea416f72380668f483661cef0b526448 (qt/qtbase/6.1)
Description
When pressing the clear button inside a QLineEdit and next give focus to another widget, I expect to receive the QLineEdit::editingFinished() signal. This is not the case any more since submit https://codereview.qt-project.org/c/qt/qtbase/+/246539 which was done to fix QTBUG-40.
In attachment I added a minimal Qt Creator project to reproduce the issue:
- Open the project
- Type something in the left QLineEdit
- Give focus to the right QLineEdit
=> "Editing finished." is printed to std::cout
- Click the clear button in the first QLineEdit and give focus again to the right QLineEdit
=> nothing is printed to std::cout
If you try the same thing with an earlier version (I tried 5.12.6) the signal is emitted (and you see "Editing finished." a second time).