Qt Location C++ Classes

提供检索位置和导航信息的 C++ 接口。更多

命名空间

QLocation

包含 QtLocation 模块中使用的各种标识符

QGeoCodeReply

管理由 QGeoCodingManager 实例启动的操作

QGeoCodingManager

支持地理编码操作

QGeoCodingManagerEngine

为希望提供地理编码操作支持的 QGeoServiceProvider 插件实现者提供接口和便利方法

QGeoManeuver

代表两个 QGeoRouteSegment 相交点的相关信息

QGeoRoute

代表两点之间的路线

QGeoRouteReply

管理由 QGeoRoutingManager 实例启动的操作

QGeoRouteRequest

代表定义路由信息请求的参数和限制条件

QGeoRouteSegment

代表一个路由段

QGeoRoutingManager

支持地理路由操作

QGeoRoutingManagerEngine

为希望提供地理路由信息访问的 QGeoServiceProvider 插件实现者提供接口和便捷方法

QGeoServiceProvider

聚合对提供地理信息的服务的访问

QPlace

代表关于一个地点的数据集

QPlaceAttribute

代表一个地点的通用属性信息

QPlaceCategory

代表QPlace可关联的类别

QPlaceContactDetail

代表联系详情,如电话号码或网址

QPlaceContent

保存有关地点的内容

QPlaceContentReply

管理由QPlaceManager实例启动的内容检索操作

QPlaceContentRequest

代表内容请求的参数

QPlaceDetailsReply

管理由QPlaceManager实例启动的地点详细信息获取操作

QPlaceIcon

代表一个图标

QPlaceIdReply

管理返回标识符的操作,如保存和删除地点和类别的操作

QPlaceManager

允许客户端访问存储在特定后端的地点的接口

QPlaceManagerEngine

为 QGeoServiceProvider 插件的实现者提供的接口,这些插件希望提供对地点功能的访问。

QPlaceMatchReply

管理由 QPlaceManager 实例启动的地点匹配操作

QPlaceMatchRequest

用于从一个管理器中查找与另一个管理器相匹配的地点。它代表一组请求参数

QPlaceProposedSearchResult

代表包含搜索建议的搜索结果

QPlaceRatings

保存地点的评级信息

QPlaceReply

管理由 QPlaceManager 实例启动的操作,并充当更专业回复的基类

QPlaceResult

代表包含一个地点的搜索结果

QPlaceSearchReply

管理由 QPlaceManager 实例启动的地点搜索操作

QPlaceSearchRequest

代表搜索请求的参数集

QPlaceSearchResult

搜索结果的基类

QPlaceSearchSuggestionReply

管理由QPlaceManager实例启动的搜索建议操作

QPlaceSupplier

代表场所或与场所相关内容的供应商

QPlaceUser

代表单个用户

详细说明

C++ API 提供了对地理编码和导航信息以及地点搜索的访问。使用QMLAPI 可在支持触摸手势、叠加等功能的交互式地图上呈现这些信息。

在 C++ 代码中包含相应的头文件。例如,使用路线的应用程序可包括

#include <QGeoRoute>

在项目文件中添加location关键字,以便与Qt Location 库链接:

QT += location

更多信息,请参阅Qt Location 概述

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.