QGIS API Documentation 3.41.0-Master (cea29feecf2)
|
Base class for widgets which allow control over the properties of sensors. More...
#include <qgssensorwidget.h>
Signals | |
void | changed () |
Emitted whenever configuration changes happened on this sensor configuration. | |
Public Member Functions | |
QgsAbstractSensorWidget (QWidget *parent=nullptr) | |
Constructor for QgsAbstractSensorWidget. | |
virtual QgsAbstractSensor * | createSensor ()=0 |
Creates a new sensor matching the settings defined in the widget. | |
virtual bool | setSensor (QgsAbstractSensor *sensor)=0 |
Sets the widget settings to match a given sensor. | |
virtual bool | updateSensor (QgsAbstractSensor *sensor)=0 |
Updates an existing sensor to match the settings defined in the widget. | |
Base class for widgets which allow control over the properties of sensors.
Definition at line 36 of file qgssensorwidget.h.
QgsAbstractSensorWidget::QgsAbstractSensorWidget | ( | QWidget * | parent = nullptr | ) |
Constructor for QgsAbstractSensorWidget.
parent | parent widget |
Definition at line 27 of file qgssensorwidget.cpp.
|
signal |
Emitted whenever configuration changes happened on this sensor configuration.
|
pure virtual |
Creates a new sensor matching the settings defined in the widget.
|
pure virtual |
Sets the widget settings to match a given sensor.
If true
is returned, sensor was an acceptable type and the widget has been updated to match the sensor's properties.
If false
is returned, then the widget could not be successfully updated to show the properties of sensor.
|
pure virtual |
Updates an existing sensor to match the settings defined in the widget.
If true
is returned, the sensor was successfully updated.
If false
is returned, then the widget could not successfully update the sensor.