Qt定位GeoClue v2插件

Qt Positioning GeoClue v2 plugin

Qt定位GeoClue v2插件

Overview

概述

This plugin is an interface to the GeoClue v2 library. It requires this library to be installed on the system to function.

​此插件是GeoClue v2库的接口。它需要在系统上安装此库才能运行。

The plugin uses D-Bus to establish communication with the GeoClue v2 D-Bus service and to provide positioning information.

该插件使用D-Bus与GeoClue v2 D-Bus服务建立通信,并提供定位信息。

The plugin can be used to receive only the positioning information. It does not provide satellite information.

该插件只能用于接收定位信息。它不提供卫星信息。

The plugin can be loaded by using the provider name geoclue2.

可以使用提供者名称geolue2加载插件。

Parameters

参数

The following table lists parameters that can be passed to the geoclue2 plugin.

下表列出了可以传递给geolue2插件的参数。

ParameterDescription
desktopId

The Desktop Id property used by the D-Bus service. If the parameter is not specified, the application name provided by QCoreApplication::applicationName() is used.


D-Bus服务使用的Desktop Id属性。如果未指定参数,则使用QCoreApplication::applicationName()提供的应用程序名称。

Examples

示例

The following examples show how to create a geoclue2 PositionSource from C++ and QML.

QML

PositionSource {
    name: "geoclue2"
    PluginParameter { name: "desktopId"; value: "SomeIdentifierString" }
}

C++

QVariantMap params;
params["desktopId"] = "SomeIdentifierString";
QGeoPositionInfoSource *positionSource = QGeoPositionInfoSource::createSource("geoclue2", params, this);

Android pluginGypsy plugin

© 2024 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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值