Class: QgsSensorAbstractGuiMetadata

class qgis.gui.QgsSensorAbstractGuiMetadata

Bases: sip.wrapper

Stores GUI metadata about one sensor class.

This is a companion to QgsSensorAbstractMetadata, storing only the components related to the GUI behavior of sensor.

Note

In C++ you can use QgsSensorGuiMetadata convenience class.

New in version 3.32.

QgsSensorAbstractGuiMetadata(type: str, visibleName: str) Constructor for QgsSensorAbstractGuiMetadata with the specified class type.

visibleName should be set to a translated, user visible name identifying the corresponding sensor type.

QgsSensorAbstractGuiMetadata(QgsSensorAbstractGuiMetadata)

Methods

createSensor

Creates an instance of the corresponding sensor type.

createSensorWidget

Creates a configuration widget for an sensor of this type.

creationIcon

Returns an icon representing creation of the sensor type.

type

Returns the unique type code for the sensor class.

visibleName

Returns a translated, user visible name identifying the corresponding sensor.

createSensor(self, parent: QObject) QgsAbstractSensor

Creates an instance of the corresponding sensor type.

Parameters:

parent (QObject) –

Return type:

QgsAbstractSensor

createSensorWidget(self, sensor: QgsAbstractSensor) QgsAbstractSensorWidget

Creates a configuration widget for an sensor of this type. Can return None if no configuration GUI is required.

Parameters:

sensor (QgsAbstractSensor) –

Return type:

QgsAbstractSensorWidget

creationIcon(self) QIcon

Returns an icon representing creation of the sensor type.

Return type:

QIcon

type(self) str

Returns the unique type code for the sensor class.

Return type:

str

visibleName(self) str

Returns a translated, user visible name identifying the corresponding sensor.

Return type:

str