Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.2.0
-
None
-
2 screens, Primary - 1080p 17inch laptop. Secondary - 32 inch 1440p external monitor
-
-
58d4645661 (qt/qtbase/dev) daabed5107 (qt/qtbase/6.3) daabed5107 (qt/tqtc-qtbase/6.3) 43ab2d4966 (qt/tqtc-qtbase/6.2)
Description
QMenu always pops up on the primary screen, regardless of popup cordintates
Attached is the code to reproduce, the code works fine with qt 5.15 but not with qt 6.2
#include <QApplication> #include <QPushButton> #include <QMenu> #include <QAction> int main(int argc, char *argv[]) { QApplication a(argc, argv); QWidget w; auto b = new QPushButton(&w); QObject::connect(b, &QPushButton::clicked, &w, [b](bool) { auto m = new QMenu(b); m->addAction("action 1"); m->popup(b->mapToGlobal(QPoint(0, b->height()))); } ); w.show(); return a.exec(); }
Attachments
Issue Links
- is duplicated by
-
PYSIDE-1885 regression, qcombobox popup displayed on the wrong screen
- Closed
-
QTBUG-102356 QMenu pops up on wrong screen
- Closed
For Gerrit Dashboard: QTBUG-97533 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
406821,2 | Windows: Fix pop-up windows being incorrectly moved to primary display | dev | qt/qtbase | Status: MERGED | +2 | 0 |
409696,2 | Windows: Fix pop-up windows being incorrectly moved to primary display | 6.3 | qt/qtbase | Status: MERGED | +2 | 0 |
409700,2 | Windows: Fix pop-up windows being incorrectly moved to primary display | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |