Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-65651

Map location jumps after closing popup menu

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.10.1
    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            srutledg Shawn Rutledge
            DanielSt Peter Staab
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes