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

QLineEdit::editingFinish() signal gets emitted every time focus is brought back to the window when closing

    XMLWordPrintable

Details

    • 205570 dd1a6308719929b0798447244b401376d983cfbf (qt/qtbase/dev)

    Description

      When closing a window that contains a QLineEdit that has a slot connected to its editingFinished() signal, it is possible to get this signal fired more than once depending on what the slot code is doing. If you show a messagebox inside the slot, then this will cause the signal to be emitted twice thus causing the messagebox to be shown twice.

      This bug is still present in Qt mainline (4.6) - as shown by the attached sample code.

      Attachments

        Issue Links

          Activity

            People

              sgaist Samuel Gaist
              anshaw Andy Shaw (closed Nokia identity) (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: