Questions tagged [qtlocation]

The Qt Location API helps to create viable mapping solutions using the data available from some of the popular location services.

The Qt Location API enables the user to:

  • access and present map data,
  • support touch gesture on a specific area of the map,
  • query for a specific geographical location and route,
  • add additional layers on top, such as polylines and circles,
  • and search for places and related images.

The module provides both a C++ API as well as a QML API.

70 questions
0
votes
1 answer

Qt QML - create my own shape in Qt Location

I'm currently working on a Qt Quick application that will provide a map viewer. I want to create irregular shapes (more than one shape) and then put them on the map. is it a good way to do this with QQuickPaintedItem (Writing QML Extensions with…
Behzad
  • 121
  • 1
  • 16
0
votes
1 answer

AbstractListModel rows added but QML View not being updated

I have a model that have a list of MarkerItem (which is a struct). struct MarkerItem{ enum marker_state{ marker_observation = 0, marker_important, marker_redundant, marker_deleted }; MarkerItem(const…
Neel Basu
  • 12,638
  • 12
  • 82
  • 146
0
votes
1 answer

MapQuickItem not visible in QML Map

I want to draw a circle dynamically (through C++) on a QML Map, But depending on the the zoomLevel, the circle may not be visible. MapCircle does not have a zoomLevel property. So I am first creating a MapQuickItem and trying to put a MapCircle as…
Neel Basu
  • 12,638
  • 12
  • 82
  • 146
0
votes
1 answer

QtLocation and OpenStreetMap: is it possible to get English labels in non-English countries?

I'm using a Map QML class from QtLocation (plugin osm) on my QML widget. I want to scroll the viewport to some arabian countries, but the labels there are with Arabian letters, not Latin! I don't understand none of them. Cannot I somehow switch the…
Felix
  • 3,351
  • 6
  • 40
  • 68
0
votes
0 answers

Can I use a gradient with a Qt Location MapPolygon?

I have a Qt Location map upon which I'd like to draw some polygons. The MapPolygon class provides an easy way to drape a polygon over the terrain, as desired. I would like to shade the polygon using a gradient, like RadialGradient. I'm playing with…
Jason R
  • 11,159
  • 6
  • 50
  • 81
0
votes
2 answers

Qt Quick MapPolyLine insertCoordinate

I have a PolyLine on my map and want to add a new co-ordinate to it when a user clicks between two existing points. I can get the click event with:- MouseArea { id: mouseArea anchors.fill: parent acceptedButtons: Qt.LeftButton |…
CF-GISRAW
  • 73
  • 1
  • 5
0
votes
0 answers

QtLocation crash on close under Windows, no crash under Android

I am developing an Android application which uses the QtLocation module. The problem is, after closing the map window / or closing the application under Windows the application crashes. If I start the exact same application under Android there is…
0
votes
1 answer

Map Plugin shows no service providers

I'm trying to render an empty Map in QML 5.7, in order to draw geolocated polylines. However, no plugins are available to supply the map data: Map { anchors.fill:parent plugin: Plugin { name: "osm" Component.onCompleted:…
Phrogz
  • 296,393
  • 112
  • 651
  • 745
-1
votes
1 answer

QML: Draw geofence area on QML Map

Any ideas how to draw custom geofence area in QML (Qt Location module) similar to this: Something similar to MapCircle or MapPolygon but filled outside of the region? And have custom filling pattern?
Aleksey Kontsevich
  • 4,671
  • 4
  • 46
  • 101
-1
votes
1 answer

Adding new places to the QML map is not working

I am currently creating a program that can mark places on the map. map.qml: import QtQuick 2.10 import QtQuick.Controls 2.3 import QtLocation 5.6 import QtPositioning 5.6 Rectangle { ListModel { id: locationModel } Plugin { …
aszan
  • 15
  • 5
1 2 3 4
5