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

childEvent

connectNotify

customEvent

disconnectNotify

handleConnect

Handles the connection to the sensor.

handleDisconnect

Handles the disconnection from the sensor.

iODevice

Returns the I/O device.

initIODevice

Initiates the I/O device.

isSignalConnected

parseData

Parses the data read from the device when available.

receivers

sender

senderSignalIndex

timerEvent

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)