Auf dieser Seite

QTiltReading Class

Die Klasse „QTiltReading“ enthält Messwerte des Neigungssensors. Mehr...

Header: #include <QTiltReading>
CMake: find_package(Qt6 REQUIRED COMPONENTS Sensors)
target_link_libraries(mytarget PRIVATE Qt6::Sensors)
qmake: QT += sensors
Erbt von: QSensorReading

Eigenschaften

Öffentliche Funktionen

void setXRotation(qreal x)
void setYRotation(qreal y)
qreal xRotation() const
qreal yRotation() const

Ausführliche Beschreibung

Der Neigungssensor meldet den Neigungswinkel des Geräts in Grad entlang der X- und Y-Ebene.

Eigenschaftsdokumentation

[read-only] xRotation : qreal

Diese Eigenschaft gibt den Neigungswinkel auf der X-Achse in Grad an.

Zugriffsfunktionen:

qreal xRotation() const

[read-only] yRotation : qreal

Diese Eigenschaft gibt den Neigungswinkel auf der Y-Achse an, gemessen in Grad.

Zugriffsfunktionen:

qreal yRotation() const

Dokumentation der Member-Funktionen

void QTiltReading::setXRotation(qreal x)

Setzt „ xRotation “ auf „ x “ Grad.

Siehe auch xRotation().

void QTiltReading::setYRotation(qreal y)

Setzt „ yRotation “ auf „ y “ Grad.

Siehe auch ` yRotation()`.

© 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.