QSensor¶

PyQt5.QtSensors.QSensor

Inherits from QObject.

Inherited by QAccelerometer, QAltimeter, QAmbientLightSensor, QAmbientTemperatureSensor, QCompass, QDistanceSensor, QGyroscope, QHolsterSensor, QHumiditySensor, QIRProximitySensor, QLidSensor, QLightSensor, QMagnetometer, QOrientationSensor, QPressureSensor, QProximitySensor, QRotationSensor, QTapSensor, QTiltSensor.

Description¶

TODO

Enums¶

AxesOrientationMode

TODO

Member

Value

Description

AutomaticOrientation

TODO

TODO

FixedOrientation

TODO

TODO

UserOrientation

TODO

TODO


Feature

TODO

Member

Value

Description

AccelerationMode

TODO

TODO

AlwaysOn

TODO

TODO

AxesOrientation

TODO

TODO

Buffering

TODO

TODO

FieldOfView

TODO

TODO

GeoValues

TODO

TODO

PressureSensorTemperature

TODO

TODO

SkipDuplicates

TODO

TODO

Methods¶

__init__(Union[QByteArray, bytes, bytearray], parent: QObject = None)

TODO


addFilter(QSensorFilter)

TODO


availableDataRates() → List[Tuple[int, int]]

TODO


axesOrientationMode() → AxesOrientationMode

TODO


bufferSize() → int

TODO


connectToBackend() → bool

TODO


currentOrientation() → int

TODO


dataRate() → int

TODO


@staticmethod
defaultSensorForType(Union[QByteArray, bytes, bytearray]) → QByteArray

TODO


description() → str

TODO


efficientBufferSize() → int

TODO


error() → int

TODO


filters() → List[QSensorFilter]

TODO


identifier() → QByteArray

TODO


isActive() → bool

TODO


isAlwaysOn() → bool

TODO


isBusy() → bool

TODO


isConnectedToBackend() → bool

TODO


isFeatureSupported(Feature) → bool

TODO


maxBufferSize() → int

TODO


outputRange() → int

TODO


outputRanges() → List[qoutputrange]

TODO


reading() → QSensorReading

TODO


removeFilter(QSensorFilter)

TODO


@staticmethod
sensorsForType(Union[QByteArray, bytes, bytearray]) → List[QByteArray]

TODO


@staticmethod
sensorTypes() → List[QByteArray]

TODO


setActive(bool)

TODO


setAlwaysOn(bool)

TODO


setAxesOrientationMode(AxesOrientationMode)

TODO


setBufferSize(int)

TODO


setCurrentOrientation(int)

TODO


setDataRate(int)

TODO


setEfficientBufferSize(int)

TODO


setIdentifier(Union[QByteArray, bytes, bytearray])

TODO


setMaxBufferSize(int)

TODO


setOutputRange(int)

TODO


setSkipDuplicates(bool)

TODO


setUserOrientation(int)

TODO


skipDuplicates() → bool

TODO


start() → bool

TODO


stop()

TODO


type() → QByteArray

TODO


userOrientation() → int

TODO

Signals¶

activeChanged()

TODO


alwaysOnChanged()

TODO


availableSensorsChanged()

TODO


axesOrientationModeChanged(AxesOrientationMode)

TODO


bufferSizeChanged(int)

TODO


busyChanged()

TODO


currentOrientationChanged(int)

TODO


dataRateChanged()

TODO


efficientBufferSizeChanged(int)

TODO


maxBufferSizeChanged(int)

TODO


readingChanged()

TODO


sensorError(int)

TODO


skipDuplicatesChanged(bool)

TODO


userOrientationChanged(int)

TODO