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

QtLocation map example pinch-to-zoom issue

    XMLWordPrintable

Details

    Description

      The QtLocation map example creates a QML map element. Inside of that map element it creates a MouseArea and has it fill parent. Everything mostly functions correctly except for pinch to zoom. When you do a pinch gesture the map jumps every time. If you disable the MouseArea everything works as expected. If you set mouse.accepted to false in the MouseArea pinch to zoom works properly, but you do not get any other events in this mouseArea. There are a few possible solutions.

      1. Fix the currently handling of gestures in the map so that this isn't a problem
      2. Emit onClicked, onDoubleClicked, onPressAndHold, etc from the Map object so that users can have additional functionality

      To better describe how the map jumps when doing pinch to zoom. If you put your thumb on a specific location, then put your pointer finger on any location. As soon as you initiate a pinch gesture, the map jumps so that the specific location that was under your thumb jumps to be under your pointer finger.

      Attachments

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

        Activity

          People

            michal Michal Klocek
            nath Niels Weber
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes