Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.0.1
-
None
-
Mac
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
- relates to
-
QTBUG-68080 we need to move popup event forwarding logic from QWidgetWindow::handleMouseEvent() to QGuiApplication
- Closed