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

MapQuickItem HoverHandler or MouseArea incorrect if zoomLevel set

    XMLWordPrintable

Details

    • Linux/X11
    • Foundation Sprint 127, Foundation Sprint 128

    Description

      If you have a MapQuickItem embedded in a Map, and have a MouseArea filling the MapQuickItem or have a HoverHandler within the MapQuickItem, if the zoomLevel is set to anything other than 0.0 (drawing the item on the screen surface), then the MouseArea incorrectly covers the entirety of the Map item.

      See the attached simple example to see this in action.

      Here, the MapQuickItem should be visible (opacity 1) if the mouse cursor is over the MapQuickItem, and not visible (opacity 0) if the mouse cursor is outside of the MapQuickItem.

      Pressing the button at the top will toggle between the MapQuickItem's zoomLevel set to 17 and 0.0, illustrating that it works properly when the zoomLevel is set to 0.

      Attachments

        1. minReproducer.qml
          2 kB
        2. qtbug-134438.7z
          1.17 MB
        3. qtbug-134438-1.7z
          1.07 MB
        4. qtbug-134438-2.7z
          1.07 MB
        5. qtbug-134438-hoverhandler.7z
          1.17 MB
        For Gerrit Dashboard: QTBUG-134438
        # Subject Branch Project Status CR V

        Activity

          People

            matthias_rauter Matthias Rauter
            kkyzivat Keith Kyzivat
            Vladimir Minenko Vladimir Minenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change