mirror of https://github.com/status-im/qzxing.git
fixed the refresh of the generated image from Encode procedure (disabled image caching)
This commit is contained in:
parent
cc0cd49996
commit
f8e1574b6c
|
@ -23,6 +23,7 @@ Rectangle {
|
||||||
onClicked: {
|
onClicked: {
|
||||||
qzxing.encodeData(inputField.text)
|
qzxing.encodeData(inputField.text)
|
||||||
inputField.text = '';
|
inputField.text = '';
|
||||||
|
resultImage.source = "";
|
||||||
resultImage.source = "image://QZXing/latestEncoded";
|
resultImage.source = "image://QZXing/latestEncoded";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -34,10 +35,12 @@ Rectangle {
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.margins: 10
|
anchors.margins: 10
|
||||||
title: "Result barcode image"
|
title: "Result barcode image"
|
||||||
|
clip: true
|
||||||
|
|
||||||
Image{
|
Image{
|
||||||
id:resultImage
|
id:resultImage
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
cache: false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue