Qt/QML编程学习之心得:使用camera摄像头(35)

汽车应用中,camera起到了越来越多的作用,数字化的作用,这点无可争议,而作为GUI设计工具,如何让Camera类的应用能更好的发挥作用呢?

You can use Camera to capture images and movies from a camera, and manipulate the capture and processing settings that get applied to the images. To display the viewfinder you can use VideoOutput with the Camera set as the source.

Qt就提供了这么一种类型,专门处理camera。

Qt/QML编程学习之心得:使用camera摄像头(35)_第1张图片Qt/QML编程学习之心得:使用camera摄像头(35)_第2张图片

Qt/QML编程学习之心得:使用camera摄像头(35)_第3张图片

以下是这一个示例的代码:

test.pro文件修改下面一句:

QT += quick multimedia multimediawidgets

main.qml文件如下:

import QtQuick 2.12
import QtQuick.Window 2.12
i

你可能感兴趣的:(qt,qml)