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.

Added in version 3.32.

QgsSensorAbstractGuiMetadata(type: Optional[str], visibleName: Optional[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(a0: 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 | None) QgsAbstractSensor | None

Creates an instance of the corresponding sensor type.

Parameters:

parent (Optional[QObject])

Return type:

Optional[QgsAbstractSensor]

createSensorWidget(self, sensor: QgsAbstractSensor | None) QgsAbstractSensorWidget | None

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

Parameters:

sensor (Optional[QgsAbstractSensor])

Return type:

Optional[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