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 classtype
.visibleName
should be set to a translated, user visible name identifying the corresponding sensor type.QgsSensorAbstractGuiMetadata(
QgsSensorAbstractGuiMetadata
)Methods
Creates an instance of the corresponding sensor type.
Creates a configuration widget for an
sensor
of this type.Returns an icon representing creation of the sensor type.
Returns the unique type code for the sensor class.
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:
- createSensorWidget(self, sensor: QgsAbstractSensor) QgsAbstractSensorWidget ¶
Creates a configuration widget for an
sensor
of this type. Can returnNone
if no configuration GUI is required.- Parameters:
sensor (QgsAbstractSensor) –
- Return type:
- 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