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

Clicking Mac title bar doesn't close popup with no parent

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.0.1
    • None
    • Mac
    • macOS

    Description

      If popup window has no parent, clicking Mac title bar doesn't close the popup. Compare results from two code snips below.

      BUG
      #include <QApplication>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
      
          QWidget window;
          window.show();
      
          QWidget popup(NULL, Qt::Popup);
          popup.setFixedSize(100,100);
          popup.show();
      
          return a.exec();
      }
      
      NORMAL
      #include <QApplication>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
      
          QWidget window;
          window.show();
      
          QWidget popup(&window, Qt::Popup);
          popup.setFixedSize(100,100);
          popup.show();
      
          return a.exec();
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              junozz Juno Kwak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes