summaryrefslogtreecommitdiffstats
path: root/app/BtnPresentPosition.qml
diff options
context:
space:
mode:
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>2018-11-22 14:39:39 +0900
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>2018-11-22 14:39:39 +0900
commit94055f5398b01a58624b3dc91f2f04027ec2a4b5 (patch)
treec2b18b849e82b2ca70b9377e118c581e2fc83c42 /app/BtnPresentPosition.qml
parentae47635e56c4af4d816a76e5186e945768543679 (diff)
add testqt source
Diffstat (limited to 'app/BtnPresentPosition.qml')
-rwxr-xr-xapp/BtnPresentPosition.qml25
1 files changed, 25 insertions, 0 deletions
diff --git a/app/BtnPresentPosition.qml b/app/BtnPresentPosition.qml
new file mode 100755
index 0000000..54e3077
--- /dev/null
+++ b/app/BtnPresentPosition.qml
@@ -0,0 +1,25 @@
+import QtQuick 2.0
+import QtQuick.Controls 1.5
+
+Item {
+ Button {
+ id: btn_present_position
+ width: 100
+ height: 100
+
+ function doSomething() {
+ // ...
+ }
+
+ onClicked: { doSomething() }
+
+ Image {
+ id: image
+ width: 92
+ height: 92
+ anchors.verticalCenter: parent.verticalCenter
+ anchors.horizontalCenter: parent.horizontalCenter
+ source: "images/thum500_t002_0_ip_0175.jpg"
+ }
+ }
+}