PluginParameter QML Type

The PluginParameter type describes a parameter to a Plugin . 更多...

import 语句: import QtLocation 5.3
Since: Qt Location 5.5

特性

详细描述

The PluginParameter object is used to provide a parameter of some kind to a Plugin. Typically these parameters contain details like an application token for access to a service, or a proxy server to use for network access.

To set such a parameter, declare a PluginParameter Plugin object, and give it name and value properties. A list of valid parameter names for each plugin is available from the plugin reference pages .

用法范例

The following example shows an instantiation of the HERE plugin with a mapping API app_id and token pair specific to the application.

Plugin {
    name: "here"
    PluginParameter { name: "here.app_id"; value: "EXAMPLE_API_ID" }
    PluginParameter { name: "here.token"; value: "EXAMPLE_TOKEN_123" }
}
					

特性文档编制

name : string

This property holds the name of the plugin parameter as a single formatted string. This property is a write-once property.

value : QVariant

This property holds the value of the plugin parameter which support different types of values (variant). This property is a write-once property.