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

Qt::Popup window flag and QDialog modailty

    XMLWordPrintable

Details

    Description

      It seems that when a QDialog is given the Qt::PopUp window flag, it will never actually be modal.

      Documentation for Qt::PopUp clearly states that this flag "Indicates that the widget is a popup top-level window, i.e. that it is modal, but has a window system frame appropriate for popup menus."

      Also, QDialog::modal also mentions "exec() ignores the value of this property and always pops up the dialog as modal."

      However, if I were to display a dialog as follows:

      QDialog dia(this, Qt::Popup);
      dia.exec();

      the dialog is not modal. It is possible to interact with the calling window.

      This is either a bug or a documentation error.

      Attachments

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

        Activity

          People

            bjnilsen Bjørn Erik Nilsen
            gpf Shane McLaughlin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes