Class: QgsIODeviceSensor¶
- class qgis.core.QgsIODeviceSensor¶
Bases:
QgsAbstractSensor
An abstract class QIODevice-based sensor classes
New in version 3.32.
QgsIODeviceSensor(parent: QObject = None) Constructor for a abstract QIODevice-based sensor, bound to the specified
parent
.Methods
Handles the connection to the sensor.
Handles the disconnection from the sensor.
Returns the I/O device.
Initiates the I/O
device
.Parses the data read from the device when available.
- childEvent(self, QChildEvent)¶
- connectNotify(self, QMetaMethod)¶
- customEvent(self, QEvent)¶
- disconnectNotify(self, QMetaMethod)¶
- handleConnect(self)¶
Handles the connection to the sensor.
Note
Triggered by calling
connectSensor()
- handleDisconnect(self)¶
Handles the disconnection from the sensor.
Note
Triggered by calling
disconnectSensor()
- iODevice(self) QIODevice ¶
Returns the I/O device.
- Return type:
QIODevice
- initIODevice(self, device: QIODevice)¶
Initiates the I/O
device
.Note
Takes ownership of the device.
- Parameters:
device (QIODevice) –
- isSignalConnected(self, QMetaMethod) bool ¶
- parseData(self)¶
Parses the data read from the device when available.
- receivers(self, PYQT_SIGNAL) int ¶
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- timerEvent(self, QTimerEvent)¶