mirror of https://github.com/status-im/qzxing.git
fix camera activation for Android with @deletexl suggestion #199
This commit is contained in:
parent
1e4369fce7
commit
c48a7a9006
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue