diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2019-08-29 16:53:23 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2019-08-29 16:53:23 +0900 |
commit | b7056db04ee2e6655849ecc3f8ec4b2d019118e9 (patch) | |
tree | efff2896f9ba640fe07faa53fd6c4ccc5cb01dc5 | |
parent | 31d21fe68392975cedba9e51072e9fbe73d17c0e (diff) |
change widthsandbox/zheng_wenlong/camera
-rw-r--r-- | app/main.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/main.qml b/app/main.qml index f0b089f..66b0039 100644 --- a/app/main.qml +++ b/app/main.qml @@ -29,8 +29,8 @@ ApplicationWindow { Camera {
id: camdev_device
anchors.horizontalCenter: parent.horizontalCenter
- width: height * cameracontrol.ratio
- height: root.height
+ width: root.width
+ height: width / cameracontrol.ratio
anchors.top: parent.top
onIsrunningChanged: {
camerabg.visible = !isrunning
|