1
0

implement QR code scanning

This commit is contained in:
Sander van Grieken
2022-03-29 16:36:20 +02:00
parent 62009c647e
commit 758a30462e
6 changed files with 221 additions and 44 deletions

View File

@@ -80,7 +80,13 @@ Pane {
Button {
text: qsTr('Scan QR Code')
onClicked: app.stack.push(Qt.resolvedUrl('Scan.qml'))
onClicked: {
var page = app.stack.push(Qt.resolvedUrl('Scan.qml'))
page.onFound.connect(function() {
console.log('got ' + page.scanData)
address.text = page.scanData
})
}
}
}
}