Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-83295

QLineEdit::editingFinished() not emitted when pressing the clear button and moving focus away

    XMLWordPrintable

Details

    • All
    • 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).

      Attachments

        1. QLineEdit.zip
          2 kB
          David Butijn
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            dbutijn David Butijn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: