Skip to content

Instantly share code, notes, and snippets.

/MainForm.ui.qml Secret

Created May 12, 2016 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/c8ad2f3df251282009b337a1ed5bb0ac to your computer and use it in GitHub Desktop.
Save anonymous/c8ad2f3df251282009b337a1ed5bb0ac to your computer and use it in GitHub Desktop.
import QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Layouts 1.1
Item {
id: item1
width: 640
height: 480
property alias button1: button1
property alias filterRadius: filterRadius
property alias dstImage: dstImage
ColumnLayout {
id: columnLayout1
x: 26
y: 45
width: 589
height: 391
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
spacing: 0
RowLayout {
id: rowLayout2
width: 100
height: 100
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
Image {
objectName: "srcImage"
id: srcImage
width: 256
height: 256
source: "Parrots.png"
}
Image {
id: dstImage
width: 256
height: 256
sourceSize.height: 256
sourceSize.width: 256
source: "image://filter/blur"
}
}
RowLayout {
id: rowLayout1
width: 100
height: 100
Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom
Label {
text: qsTr("半径")
}
TextField {
id: filterRadius
width: 100
objectName: "textField1"
placeholderText: qsTr("Text Field")
}
}
Button {
id: button1
width: 151
text: qsTr("フィルター実行")
Layout.fillWidth: false
Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment