QHolsterReadingclass holds readings from the holster sensor. 更多 …
def
holstered
()
def
setHolstered
(holstered)
The holster sensor can detect if a device is holstered or not. A holster is a pocket, similar to a gun holster, specifically made for the device. If the device is inside of this pocket, it is holstered. The holster supports the device in detecting whether the device is holstered or not.
QHolsterReading
(
parent
)
¶
parent
–
QObject
PySide2.QtSensors.QHolsterReading.
holstered
(
)
¶
bool
另请参阅
PySide2.QtSensors.QHolsterReading.
setHolstered
(
holstered
)
¶
holstered
–
bool
Sets the holstered value to
holstered
.
另请参阅