Details
Description
1. Compile and run the attached examples with Qt 6.2.7
2. examples.zip contains 3 examples : qchart_contextmenuevent, qchart_customcontextmenurequested, qchartcontextmenu_release_event
3. All three examples contain code to show the context menu on the chart.
4. Right click on the chart to see the context menu.
5. Observe that it crashes after multiple clicks. (It may take several clicks continuously to reproduce the crash.)
I tested on Windows. It might be an issue on Mac and Linux too.
I was able to reproduce crash for qchartcontextmenu_release_event on macOS as well.
Attachments
For Gerrit Dashboard: QTBUG-118669 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
516343,2 | Fix crash on QChartView mouse press handling | dev | qt/qtcharts | Status: MERGED | +2 | 0 |
516456,2 | Fix crash on QChartView mouse press handling | 6.6 | qt/qtcharts | Status: MERGED | +2 | 0 |
516527,2 | Fix crash on QChartView mouse press handling | tqtc/lts-6.5 | qt/tqtc-qtcharts | Status: MERGED | +2 | 0 |
516601,2 | Fix crash on QChartView mouse press handling | tqtc/lts-6.2 | qt/tqtc-qtcharts | Status: MERGED | +2 | 0 |