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

Modal QDialog created by application is hidden when application loses focus

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P1: Critical
    • 5.0.2
    • 5.0.0
    • GUI: Window management
    • None
    • Mac OSX 10.6.8
      Qt 5 (0cac0796a0156c1745e2a276c20d4eabb5f88bf8)

    Description

      Using Qt 5 on Macintosh, if an application creates and displays a modal dialog, and then the application loses focus, the modal dialog is hidden until the application regains focus. However, if the dialog is modeless, it is not hidden when the application loses focus.

      Using Qt 4.8.3 on the same system, the dialog is not hidden when the application loses focus regardless of whether or not it is modal.

      Steps to reproduce:
      1. Build and execute attached project.
      2. Click on the Modal Dialog button.
      3. Select the window of another application (Qt Creator, for example), to deactivate the test application. The modal dialog created by the test application is hidden.
      4. If the test application regains focus, the dialog is shown again, except that it will be shown under the QMainWindow created by the application.

      Attachments

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

        Activity

          People

            dedietri Gabriel de Dietrich (drgvond)
            aclight Adam Light
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes