summaryrefslogtreecommitdiff
path: root/examples/location/geojson_viewer/geojson_viewer.pro
Commit message (Collapse)AuthorAgeFilesLines
* Examples: Fix qmake buildFriedemann Kleint2023-03-071-1/+0
| | | | | | | | | Fix the resources and remove C++ 11. Pick-to: 6.5 6.5.0 Change-Id: I1141594eae239b32b3c00663f2e0d78ec00421fd Reviewed-by: Matthias Rauter <matthias.rauter@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Get the geojson example working againShawn Rutledge2022-11-151-1/+1
| | | | | | | | | | | | | | | | | | fdbbfa4a6723b816478ee011ab4098e5332dc2f5 removed MapObjectView, but this example continued to depend on it. This reverts parts of commit be7cbed7411d024d178377bd327d5916c80e02a0. Also: - use QtCore.StandardPaths rather than Qt.labs.platform - remove the widgets dependency - use FileDialog.nameFilters to read and write geojson files Let's assume that FileDialog.selectedFile will actually output a QUrl to save the file to, as opposed to a plain path, since the dumpGeoJSON() function is calling toLocalFile() on it. At least that works with native dialogs. Task-number: QTBUG-108455 Change-Id: I1f14c6425115aa95ac2080438ff0c3a24b1b7196 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Migrate geojson_viewer example to Qt 6Ivan Solovev2022-07-261-0/+1
| | | | | | | | | | This includes using QuickControls2 instead of QC1 and also refactoring of the code for android permission requests. Task-number: QTBUG-96795 Pick-to: 6.2 Change-Id: I2986d5f1572d5889b15ee6b5d031d51a7b6a3da9 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Use new permission api instead of androidextrasAssam Boudjelthia2021-06-151-1/+0
| | | | | | Change-Id: I64eeb909ef8c034defccebb29f767c69778f501d Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Examples: request permissions storage permissions on AndroidAssam Boudjelthia2020-02-241-0/+2
| | | | | | | | | Since QStandardPaths::writableLocation() is used, it's best to make sure we have to write permissions on Android. Task-number: QTBUG-80717 Change-Id: I992661aed25e7d40254f7c7d6373273cf84aac16 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Improve GeoJson Viewer examplePaolo Angelelli2019-01-251-1/+2
| | | | | | | | Switches to Qt.labs.platform FileDialog and sets the proper initial directory, as well as handles command line argument Change-Id: I2ae4fc3244d1e2566556d3966aedf273ac98e3d1 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Add QGeoJson: a GeoJSON parserJulian Sherollari2019-01-181-0/+19
Add a Class to convert a GeoJSON document to a QVariantList ready to be used as Model in a MapItemView. It comes with autotests, example and detailed documentation. [ChangeLog][QtLocation] Added a GeoJSON parser which can be used to annotate maps with tracks, polygonal boundaries, etc. Fixes: QTBUG-64111 Change-Id: Ib06d3902a052f69f75ae40be5c9ab56023cad916 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>