qml: add QR code imageprovider using qrcode/PIL
adds buildozer 'pillow' recipe to requirements add initial PoC on qml receive tab
This commit is contained in:
32
electrum/gui/qml/components/Receive.qml
Normal file
32
electrum/gui/qml/components/Receive.qml
Normal file
@@ -0,0 +1,32 @@
|
||||
import QtQuick 2.6
|
||||
import QtQuick.Layouts 1.0
|
||||
import QtQuick.Controls 2.0
|
||||
import QtQuick.Controls.Material 2.0
|
||||
|
||||
import org.electrum 1.0
|
||||
|
||||
Pane {
|
||||
id: rootItem
|
||||
visible: Daemon.currentWallet !== undefined
|
||||
|
||||
ColumnLayout {
|
||||
width: parent.width
|
||||
spacing: 20
|
||||
|
||||
Image {
|
||||
id: img
|
||||
}
|
||||
|
||||
TextField {
|
||||
id: text
|
||||
}
|
||||
|
||||
Button {
|
||||
text: 'generate'
|
||||
onClicked: {
|
||||
img.source = 'image://qrgen/' + text.text
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user