fixed the refresh of the generated image from Encode procedure (disabled image caching)

This commit is contained in:
favoritas37 2016-07-02 01:06:55 +03:00
parent cc0cd49996
commit f8e1574b6c
1 changed files with 3 additions and 0 deletions

View File

@ -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;
} }
} }