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

QML Map resize height

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.14.0
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      When resizing the main window height, the Map is well resized due to anchoring, but

      MapItems (i.e. MapCircle)  doesn't keep their position to fixed coordonates.

      Resizing horizontally is working correctly.

      Can be reproduced with this small example (from minimal_map.qml)

      import QtQuick 2.0
      import QtQuick.Window 2.0
      import QtLocation 5.6
      import QtPositioning 5.6
      
      Window {
       width: 512
       height: 512
       visible: true
      
      Plugin {
       id: mapPlugin
       name: "osm"
       }
      
      MapCircle{
       id : target
       center: cityMap.center
       radius: 50
       color: "red"
       }
      
      Map {
       id : cityMap
       anchors.fill: parent
       plugin: mapPlugin
       center: QtPositioning.coordinate(59.91, 10.75) // Oslo
       zoomLevel: 14
       Component.onCompleted: addMapItem(target)
       }
      }
      

        Attachments

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

          Activity

            People

            Assignee:
            paangele Paolo Angelelli
            Reporter:
            mani ROUAULT GUY
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes