The PluginParameter type describes a parameter for a position plugin. More...
Import Statement: | import QtPositioning |
Since: | QtPositioning 5.14 |
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, or the serial port to which a serial GPS receiver is connected.
To set such a parameter, declare a PluginParameter inside an element that accepts plugin parameters as configuration objects, such as a PositionSource object, and set values for its name and value properties. A list of valid parameter names for each plugin is available from the default plugins page for position plugins.
The following example shows the instantiation of the NMEA plugin with the nmea.source parameter that specifies the data source.
PositionSource { name: "nmea" PluginParameter { name: "nmea.source"; value: "serial:/dev/ttyACM0" } }
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.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qml-qtpositioning-pluginparameter.html