2015-07-16 21:09:44 +03:00
|
|
|
import QtQuick 2.0
|
2017-01-23 19:45:47 +02:00
|
|
|
import QtQuick.Controls 2.0
|
2017-10-14 18:31:54 +02:00
|
|
|
import QtQuick.Layouts 1.3
|
2015-07-16 21:09:44 +03:00
|
|
|
|
2017-01-23 19:45:47 +02:00
|
|
|
ApplicationWindow {
|
|
|
|
visible: true
|
|
|
|
width: 640
|
|
|
|
height: 480
|
2015-07-16 21:09:44 +03:00
|
|
|
|
2017-10-14 18:31:54 +02:00
|
|
|
ColumnLayout {
|
|
|
|
anchors {
|
|
|
|
fill: parent
|
|
|
|
margins: 10
|
2016-06-14 02:41:37 +03:00
|
|
|
}
|
2017-10-14 18:31:54 +02:00
|
|
|
TextField {
|
|
|
|
id: inputField
|
|
|
|
Layout.fillWidth: true
|
|
|
|
selectByMouse: true
|
|
|
|
text: "Hello world!"
|
|
|
|
}
|
|
|
|
GroupBox {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillHeight: true
|
|
|
|
title: "Result barcode image"
|
|
|
|
clip: true
|
|
|
|
Image{
|
|
|
|
id:resultImage
|
|
|
|
anchors.centerIn: parent
|
|
|
|
source: "image://QZXing/qrcode/" + inputField.text
|
|
|
|
cache: false;
|
|
|
|
}
|
2015-10-31 19:14:59 +02:00
|
|
|
}
|
2015-07-16 21:09:44 +03:00
|
|
|
}
|
|
|
|
}
|