Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.7, 6.2.2, 6.3.0 Feature Freeze
-
0462d24dcd (qt/qtbase/dev) 0462d24dcd (qt/tqtc-qtbase/dev) d0b5adb3b2 (qt/qtbase/6.2) a015985490 (qt/qtbase/6.3) d0b5adb3b2 (qt/tqtc-qtbase/6.2) a015985490 (qt/tqtc-qtbase/6.3) 3045196fba (qt/tqtc-qtbase/5.15)
Description
When opening a QMenu and right clicking on a widget within the menu to open context menu the context menu position provided by QWidget::customContextMenuRequested doesn't seem to be mapped to the widget coordinates => the position is way off and using it to position a context menu doesn't yield very good results.
Steps to reproduce the problem:
- run the attached example.
- Click on "press here" button
- Right click anywhere on "tab1" or "tab2" white rectangle. The effect is clearer the further the click is from the upper left corner of the window.
Attachments
For Gerrit Dashboard: QTBUG-99371 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
387642,2 | Deliver context menu event with correct coordinates to widgets in popups | dev | qt/qtbase | Status: MERGED | +2 | 0 |
387663,2 | Deliver context menu event with correct coordinates to widgets in popups | 6.3 | qt/qtbase | Status: MERGED | +2 | 0 |
387664,2 | Deliver context menu event with correct coordinates to widgets in popups | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |
387665,3 | Deliver context menu event with correct coordinates to widgets in popups | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |