QLidReading Class

The QLidReading class holds readings from the Lid sensor. 更多...

頭: #include <QLidReading>
qmake: QT += sensors
Since: Qt 5.9
繼承: QSensorReading

特性

公共函數

QLidReading (QObject * parent = DECLARE_READING(QLidReading))
virtual ~QLidReading ()
bool backLidClosed () const
bool frontLidClosed () const
void setBackLidClosed (bool closed )
void setFrontLidClosed (bool closed )

重實現公共函數

virtual void copyValuesFrom (QSensorReading * other ) override

信號

void backLidChanged (bool closed )
void frontLidChanged (bool closed )

靜態公共成員

const QMetaObject staticMetaObject

額外繼承成員

詳細描述

The QLidReading class holds readings from the Lid sensor.

A normal laptop has what we call a front lid.

If the laptop can be converted to a tablet by rotating or closing the lid where the display is out, this is known as a back lid.

QLidReading Units

The Lid sensor can detect if a device's lid is closed or not. A lid can be a laptop, a laptop that converts to a tablet, or even a cover for a tablet or phone.

特性文檔編製

backLidClosed : const bool

This property holds a value indicating whether the back lid is closed. A back lid can be when a convertable laptop is closed into to tablet mode without keyboard.

訪問函數:

bool backLidClosed () const

另請參閱 QLidReading Units .

frontLidClosed : const bool

This property holds a value indicating whether the front lid is closed. A front lid would be a normal laptop lid.

訪問函數:

bool frontLidClosed () const

另請參閱 QLidReading Units .

成員函數文檔編製

QLidReading:: QLidReading ( QObject * parent = DECLARE_READING(QLidReading))

Default constructs an instance of QLidReading.

[虛擬] QLidReading:: ~QLidReading ()

Destroys the instance of QLidReading. The destructor is virtual.

[signal] void QLidReading:: backLidChanged ( bool closed )

[override virtual] void QLidReading:: copyValuesFrom ( QSensorReading * other )

[signal] void QLidReading:: frontLidChanged ( bool closed )

void QLidReading:: setBackLidClosed ( bool closed )

設置 backLidClosed value to closed .

另請參閱 backLidClosed ().

void QLidReading:: setFrontLidClosed ( bool closed )

設置 frontLidClosed value to closed .

另請參閱 frontLidClosed ().