From f8e1574b6ce90a56ddf3e9536f1f80749d5afc9e Mon Sep 17 00:00:00 2001 From: favoritas37 Date: Sat, 2 Jul 2016 01:06:55 +0300 Subject: [PATCH] fixed the refresh of the generated image from Encode procedure (disabled image caching) --- examples/BarcodeEncoder/qml/BarcodeEncoder/main.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/BarcodeEncoder/qml/BarcodeEncoder/main.qml b/examples/BarcodeEncoder/qml/BarcodeEncoder/main.qml index 78d763a..641d46f 100644 --- a/examples/BarcodeEncoder/qml/BarcodeEncoder/main.qml +++ b/examples/BarcodeEncoder/qml/BarcodeEncoder/main.qml @@ -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; } }