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

QDialog with Qt::Tool flag doesn't behave fully as modal when exec() is called

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.1.0
    • Fix Version/s: 5.1.1
    • Labels:
      None
    • Environment:
      Qt5.1.0
      MacOSX
      Windows
      Linux
    • Commits:
      8493f5d6a343c9a754ce439fed77c7e1a901747e

      Description

      Hello,

      I went from Qt 4.7.4 to Qt5.1.0.
      There is now a strange thing happening with modal QDialogs that have the Qt::Tool flag, and all platforms are affected (Windows, Mac and Linux):

      It seems as the modal dialog is not completely modal: one can select edit boxes, and even close the parent dialog by clicking its close button in the upper left corner. The consequence of this are regular crashes.

      On top of that, customization flags don't seem to work well anymore, at least on Mac e.g:
      Qt::Tool|Qt::CustomizeWindowHint|Qt::WindowTitleHint will still offer colored maximize and close buttons in the dialog bar.

      Refer to the example project attached.

        Attachments

        1. application.zip
          19 kB
        2. qtbug32433.tar
          10 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            kleint Friedemann Kleint
            Reporter:
            floatingwoods Marc Freese
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes