首页| 论坛| 消息

标题:QML Camera问题
作者:songhuirong1
日期:2019-12-06 08:13
内容:

写了一个小demo,功能是实现Camera的自动截图。程序能正常运行,但是发现Image无法显示中文路径的图片。望高手指点。
代码如下:
import QtQuick 2.9
import QtQuick.Window 2.2
import QtMultimedia 5.8
Window {
visible: true
width: 640
height: 480
title: qsTr("Camera")
property int btnHeight: 50
Camera {
id: camera
}
VideoOutput {
anchors.fill: parent
source: camera
}
Column {
anchors.top: parent.top
anchors.right: parent.right
anchors.bottom: parent.bottom
anchors.bottomMargin: listView.height
anchors.margins: 10
width: 120
spacing: 9
Rectangle {
id: takePhotoRect
width: parent.width
height: btnHeight
color: "darkgray"
border.width: 2
border.color: "white"
Text {
& ..


#1 [songhuirong1 12-09 13:11]
没有人回答吗
#2 [songhuirong1 12-11 14:04]
这个问题没人知道吗?
#3 [nes9011 12-19 17:28]
请问你的Camera 能保存视频吗
#4 回 nes9011 的帖子 [simon261 08-25 16:35]
nes9011:请问你的Camera 能保存视频吗 (2019-12-19 17:28) 
可以,有个记录的控件。
#5 回 nes9011 的帖子 [simon261 08-25 16:49]
nes9011:请问你的Camera 能保存视频吗 (2019-12-19 17:28) 
CameraRecorder

回复 发表
主题 版块