このページでは

QtVideo Namespace

カメラおよび動画機能の列挙。詳細...

ヘッダー: #include <qtvideo.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS Multimedia)
target_link_libraries(mytarget PRIVATE Qt6::Multimedia)
qmake: QT += multimedia
以下のように: Qt 6.7

タイプ

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

詳細な説明

型のドキュメント

[since 6.7] enum class QtVideo::Rotation

表示前にビデオフレームに適用すべき、時計回りの回転角度です。回転はビデオ座標系で行われ、この座標系ではY軸がディスプレイ上で下向きになっています。つまり、回転方向はQTransform::rotate に準拠しています。

定数値説明
QtVideo::Rotation::None0回転は不要。フレームの向きは正しい。
QtVideo::Rotation::Clockwise9090フレームを時計回りに90度回転させる必要があります
QtVideo::Rotation::Clockwise180180フレームを時計回りに180度回転させる必要があります
QtVideo::Rotation::Clockwise270270フレームを時計回りに270度回転させる必要があります

この列挙型は Qt 6.7 で導入されました。

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