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

Clicking Mac title bar in other window doesn't close popup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P4: Low P4: Low
    • None
    • 5.0.1
    • None
    • Mac only
    • macOS

      1. Right-click line edit in "Window 1" and bring up context menu.
      2. Click title bar on "Window 2".
      => popup from "Window 1" doesn't close.

      #include <QApplication>
      #include <QWidget>
      #include <QLineEdit>
      
      int main(int argc, char *argv[])
      {
      	QApplication a(argc, argv);
      
      	QWidget widgetWindow;
      	widgetWindow.setFixedSize(200,100);
      	QLineEdit* edit = new QLineEdit(&widgetWindow);
      	widgetWindow.setWindowTitle("Window 1");
      	widgetWindow.show();
      
      	QWidget widgetWindow2;
      	widgetWindow2.setBaseSize(QSize(200,100));
      	widgetWindow2.setWindowTitle("Window 2");
      	widgetWindow2.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:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes