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

Component as source of a MapQuickItem crashes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.12.2
    • 5.9.0
    • None
    • Debian 3.16.39-1+deb8u2 (2017-03-07) x86_64 GNU/Linux

      Qt 5.9.0
    • be55fa95765c0d53fadddfce2e9aefa651cf791d (qt/qtlocation/5.12)

    Description

      The following code makes Qt 5.9.0 crash on a Linux box.

      I have omitted the plugin key on purpose.

       

       

      import QtQuick 2.7
      import QtQuick.Controls 2.0
      import QtQuick.Layouts 1.0
      import QtLocation 5.7
      import QtPositioning 5.0
      
      ApplicationWindow {
          visible: true
          width: 640
          height: 480
          title: qsTr("Map crash")
      
          Plugin{
              id:esri
              name:"esri"
              PluginParameter { name: "esri.token"; value: "INSERT YOUR KEY HERE" }
          }
          Map{
              id:map
              onSupportedMapTypesChanged: activeMapType = supportedMapTypes[1]
              anchors.fill: parent
              color:"black"
      
              copyrightsVisible:false
              zoomLevel: 10
      
              plugin:esri
              ListModel
              {
                  id: modelWithAnId
                  ListElement
                  {
                      degLatitude: 1.
                      degLongitude: 1.
                  }
              }
      
              MapItemView
              {
                  model:modelWithAnId
                  delegate:
                      MapQuickItem
                      {
                          coordinate: QtPositioning.coordinate( degLatitude , degLongitude )
                          sourceItem:
                              Component
                              {
                                  Rectangle
                                  {
                                      id:rectangleWithAnId
                                      border.width: 3
                                      border.color: "#cccccc"
                                      visible: true
                                      rotation: 45
                                      width:10
                                      height: width
                                  }
                              }
                      }
              }
          }
      }
      
      
      

      If you comment out the "Component", the Rectangle is correctly displayed :

       

       

                          sourceItem:
      //                        Component
      //                        {
                                  Rectangle
                                  {
                                      id:rectangleWithAnId
                                      border.width: 3
                                      border.color: "#cccccc"
                                      visible: true
                                      rotation: 45
                                      width:10
                                      height: width
                                  }
      //                        }
      
      

       

       

       

      Attachments

        Issue Links

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

          Activity

            People

              paangele Paolo Angelelli
              sr__ sr__
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes