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

[REG] QML MapPolygon moves when changing border width

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.12.1, 5.12.2
    • 5.11.2
    • None
    • MSVC2017 Windows 10 x64
    • Windows
    • d9985cd5a308cece06a88e6203529837f00b33aa (qt/qtlocation/5.11)

    Description

      If you put a MapPolygon on the map and then toggle its border.width property it will appear moved until the map is zoomed in/out, or panned, or rotated, (basically until it is rerendered).

      Toggling the border width is common say if you are drawing a MapPolygon and highlighting it using its border, e.g. for selection.

      (The example is a duplicate I used to show the border not painting initially, but this is a different bug.)

      Use this QML in the minimal_map example project.

      The bug can be triggered by starting the application, and then clicking the button twice. The first time the border on the MapPolygon will thicken, then the second time it will shrink and you will be able to see the two shapes do not align any more. If you move the map in any way to cause a rerender the MapPolygon jumps back to its normal/correct place.

      I tried this with the osm and itemsoverly plugin.

       

       

      Attachments

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

        Activity

          People

            paangele Paolo Angelelli
            petermj Peter Myerscough-Jackopson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes