Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.15.2
-
None
Description
I try to call QML from c++, for geomap show on QQuickView. It can show the map on QQuickView, but I got a error message as following
"QObject::connect(QQuickWindow, QDeclarativeGeoMap): invalid nullptr parameter"
If I change root item from "Rectangle" to "Window", no error happen, and none thing show on QQuickView.
QML code
=====================
import QtQuick 2.0
import QtLocation 5.6
import QtPositioning 5.6
Rectangle {
visible: true
Plugin
{ id: mapPlugin name: "osm" // "mapboxgl", "esri", ... }Map
{ anchors.fill: parent plugin: mapPlugin center: QtPositioning.coordinate(59.91, 10.75) // Oslo zoomLevel: 14 }}