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

X11: showing a QMessageBox from within QDialog::accept() makes it lose focus

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.13.1
    • None
    • Linux/X11

    Description

      On X11, I have these:

      • A main window with a button. Clicking that button will show a QDialog.
      • Override the QDialog::accept() and show a QMessageBox.
      • When the message box closes, the dialog loses focus to main window.

      I think the dialog should hold its focus when the message box closes.

      I'm attaching source code which reproduces that behavior.

      Would you please check?

      Thank you,

      Attachments

        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
            em2ceyhqfflon em2cEYhqFfLon protonmail
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes