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

Native dialog static functions leave parent widget inactive after use on Mac

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.1.0
    • 4.8.0
    • GUI: Window management
    • None
    • Mac OSX Snow Leopard, Lion
    • macOS

    Description

      QFileDialog::getOpenFileName(parentWidget) always leaves parentWidget de-activated when it returns if native dialogs are used (the default). Keyboard shortcuts do not work and the widget most be manually re-activated by the user.

      QColorDialog::getColor does the same.

      The same code works as expected on Windows when using the native Win32 dialogs (parentWidget is re-activated).

      Workaround is to call parentWidget->activateWindows() explicitly when the function returns.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            danny77uk Daniel
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes