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

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

XMLWordPrintable

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

      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,

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            em2ceyhqfflon em2cEYhqFfLon protonmail
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes