Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.10.0
-
None
-
Windows, macOS
-
3e91062877c0853aff693799bc5e33cdf7aaad42
Description
This problem occurs only in Qt 5.10 (not 5.9).
Steps to reproduce:
- Right click on the map to show the popup menu.
- Drag the map somewhere outside of the popup.
- Now click somewhere on the map. The map's location will jump to another location.
import QtQuick 2.7 import QtQuick.Controls 2.0 import QtQuick.Layouts 1.3 import QtLocation 5.9 import QtPositioning 5.8 ApplicationWindow { visible: true width: 640 height: 480 title: qsTr("Hello World") Map { id: map anchors.fill: parent plugin: Plugin { name: "osm" } MouseArea { anchors.fill: parent acceptedButtons: Qt.LeftButton | Qt.RightButton onClicked: { if (mouse.button === Qt.RightButton) { showMapPopup(); } } function showMapPopup() { mapPopupMenu.x = mouseX; mapPopupMenu.y = mouseY; mapPopupMenu.open(); } } Menu { id: mapPopupMenu modal: true } } }
Attachments
For Gerrit Dashboard: QTBUG-65651 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
219256,2 | skip filtering during post-delivery if there are no PointerHandlers | 5.10.1 | qt/qtdeclarative | Status: MERGED | -1 | 0 |