fix camera activation for Android with @deletexl suggestion #199

This commit is contained in:
Nikolaos Ftylitakis 2021-12-02 19:19:25 +02:00
parent 1e4369fce7
commit c48a7a9006
1 changed files with 3 additions and 1 deletions

View File

@ -63,7 +63,7 @@ ApplicationWindow
anchors.bottom: text2.top
anchors.left: parent.left
anchors.right: parent.right
fillMode: VideoOutput.Stretch
// fillMode: VideoOutput.Stretch
property double captureRectStartFactorX: 0.25
property double captureRectStartFactorY: 0.25
@ -87,6 +87,8 @@ ApplicationWindow
x: parent.width * parent.captureRectStartFactorX
y: parent.height * parent.captureRectStartFactorY
}
Component.onCompleted: { camera.active = false; camera.active = true; }
}
QZXingFilter