QGIS API Documentation 3.38.0-Grenoble (exported)
Loading...
Searching...
No Matches
Signals | Public Member Functions | List of all members
QgsAbstractSensorWidget Class Referenceabstract

Base class for widgets which allow control over the properties of sensors. More...

#include <qgssensorwidget.h>

Inheritance diagram for QgsAbstractSensorWidget:
Inheritance graph
[legend]

Signals

void changed ()
 Emitted whenever configuration changes happened on this sensor configuration.
 

Public Member Functions

 QgsAbstractSensorWidget (QWidget *parent=nullptr)
 Constructor for QgsAbstractSensorWidget.
 
virtual QgsAbstractSensorcreateSensor ()=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.
 

Detailed Description

Base class for widgets which allow control over the properties of sensors.

Since
QGIS 3.32

Definition at line 36 of file qgssensorwidget.h.

Constructor & Destructor Documentation

◆ QgsAbstractSensorWidget()

QgsAbstractSensorWidget::QgsAbstractSensorWidget ( QWidget *  parent = nullptr)

Constructor for QgsAbstractSensorWidget.

Parameters
parentparent widget

Definition at line 26 of file qgssensorwidget.cpp.

Member Function Documentation

◆ changed

void QgsAbstractSensorWidget::changed ( )
signal

Emitted whenever configuration changes happened on this sensor configuration.

◆ createSensor()

virtual QgsAbstractSensor * QgsAbstractSensorWidget::createSensor ( )
pure virtual

Creates a new sensor matching the settings defined in the widget.

◆ setSensor()

virtual bool QgsAbstractSensorWidget::setSensor ( QgsAbstractSensor sensor)
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.

◆ updateSensor()

virtual bool QgsAbstractSensorWidget::updateSensor ( QgsAbstractSensor 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.


The documentation for this class was generated from the following files: