本页内容

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.