Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
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
- relates to
-
QTBUG-72930 Passing a Component to methods expecting QQuickItem succeeds in QML
-
- Closed
-
For Gerrit Dashboard: QTBUG-61509 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
249498,2 | Fix crash when assigning a Component to MapQuickItem.sourceItem | 5.12 | qt/qtlocation | Status: MERGED | +2 | 0 |