Auf dieser Seite

QtVideo Namespace

Aufzählungen zu Kamera- und Videofunktionen. Mehr...

Kopfzeile: #include <qtvideo.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS Multimedia)
target_link_libraries(mytarget PRIVATE Qt6::Multimedia)
qmake: QT += multimedia
Seit: Qt 6.7

Typen

(since 6.7) enum class Rotation { None, Clockwise90, Clockwise180, Clockwise270 }

Ausführliche Beschreibung

Typdokumentation

[since 6.7] enum class QtVideo::Rotation

Der Winkel der Drehung im Uhrzeigersinn, um den ein Videobild vor der Anzeige gedreht werden soll. Die Drehung erfolgt in Videokoordinaten, wobei die Y-Achse auf dem Bildschirm nach unten zeigt. Das bedeutet, dass die Drehrichtung der folgenden Abbildung entspricht: QTransform::rotate.

KonstanteWertBeschreibung
QtVideo::Rotation::None0Keine Drehung erforderlich, das Bild hat die richtige Ausrichtung
QtVideo::Rotation::Clockwise9090Das Bild sollte um 90 Grad im Uhrzeigersinn gedreht werden
QtVideo::Rotation::Clockwise180180Der Rahmen sollte um 180 Grad im Uhrzeigersinn gedreht werden
QtVideo::Rotation::Clockwise270270Der Frame sollte um 270 Grad im Uhrzeigersinn gedreht werden

Diese Enumeration wurde in Qt 6.7 eingeführt.

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