QtVideo Namespace

Aufzählungen für Kamera- und Videofunktionalität. Mehr...

Kopfzeile: #include <QtVideo>
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 }

Detaillierte Beschreibung

Typ-Dokumentation

[since 6.7] enum class QtVideo::Rotation

Der Winkel der Drehung im Uhrzeigersinn, der auf ein Videobild vor der Anzeige angewendet werden soll. Die Drehung wird in Videokoordinaten durchgeführt, wobei die Y-Achse auf dem Bildschirm nach unten zeigt. Dies bedeutet, dass die Drehrichtung mit QTransform::rotate übereinstimmt.

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

Dieses Enum wurde in Qt 6.7 eingeführt.

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