Qt 5.11 | Qt Location | Map Viewer (QML) | mapviewer.pro Example File

Qt 5.11.3 Reference Documentation

# mapviewer.pro Example File

mapviewer/mapviewer.pro

      TARGET = qml_location_mapviewer
      TEMPLATE = app

      QT += qml network quick positioning location
      SOURCES += main.cpp

      # Workaround for QTBUG-38735
      QT_FOR_CONFIG += location-private
      qtConfig(geoservices_mapboxgl): QT += sql opengl
      qtConfig(geoservices_osm): QT += concurrent

      RESOURCES += \
          mapviewer.qrc

      OTHER_FILES +=mapviewer.qml \
          helper.js \
          map/MapComponent.qml \
          map/MapSliders.qml \
          map/Marker.qml \
          map/CircleItem.qml \
          map/RectangleItem.qml \
          map/PolylineItem.qml \
          map/PolygonItem.qml \
          map/ImageItem.qml \
          map/MiniMap.qml \
          menus/ItemPopupMenu.qml \
          menus/MainMenu.qml \
          menus/MapPopupMenu.qml \
          menus/MarkerPopupMenu \
          forms/Geocode.qml \
          forms/GeocodeForm.ui.qml\
          forms/Message.qml \
          forms/MessageForm.ui.qml \
          forms/ReverseGeocode.qml \
          forms/ReverseGeocodeForm.ui.qml \
          forms/RouteCoordinate.qml \
          forms/Locale.qml \
          forms/LocaleForm.ui.qml \
          forms/RouteAddress.qml \
          forms/RouteAddressForm.ui.qml \
          forms/RouteCoordinateForm.ui.qml \
          forms/RouteList.qml \
          forms/RouteListDelegate.qml \
          forms/RouteListHeader.qml

      target.path = $$[QT_INSTALL_EXAMPLES]/location/mapviewer
      INSTALLS += target