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

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

XMLWordPrintable

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

      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();
      }
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes