このページでは

OrientationReading QML Type

OrientationReading要素には、最新のOrientationSensor の測定値が格納されます。詳細...

Import Statement: import QtSensors
Since: QtSensors 5.0
Inherits:

SensorReading

プロパティ

詳細説明

OrientationReading要素は、最新のOrientationSensor の読み取り値を保持します。

この要素は、QOrientationReading クラスをラップします。詳細については、QOrientationReading のドキュメントを参照してください。

この要素は直接作成することはできません。

プロパティのドキュメント

orientation : Orientation

このプロパティは、デバイスの向きを保持します。

このプロパティに関する詳細については、QOrientationReading::orientation を参照してください。

なお、オリエンテーション定数はOrientationReading クラスを通じて公開されています。

OrientationSensor {
    onReadingChanged: {
        if (reading.orientation == OrientationReading.TopUp)
            // do something
    }
}

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.