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: {
qzxing.encodeData(inputField.text)
inputField.text = '';
resultImage.source = "";
resultImage.source = "image://QZXing/latestEncoded";
}
}
@ -34,10 +35,12 @@ Rectangle {
anchors.right: parent.right
anchors.margins: 10
title: "Result barcode image"
clip: true
Image{
id:resultImage
anchors.centerIn: parent
cache: false;
}
}