summaryrefslogtreecommitdiff
path: root/ModelImage.ui.qml
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-02-05 18:09:51 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-02-05 18:09:51 +0800
commitcce8eebd3f2860f1ef738b421f286278c734aa33 (patch)
tree2805604f24d8ec3490fb17291ffaa60c6594f925 /ModelImage.ui.qml
Model image draft
Diffstat (limited to 'ModelImage.ui.qml')
-rw-r--r--ModelImage.ui.qml64
1 files changed, 64 insertions, 0 deletions
diff --git a/ModelImage.ui.qml b/ModelImage.ui.qml
new file mode 100644
index 0000000..c4f7c11
--- /dev/null
+++ b/ModelImage.ui.qml
@@ -0,0 +1,64 @@
+import QtQuick 2.15
+import QtQuick.Controls 2.15
+
+Image {
+ property alias modelMouseArea: mouseArea
+ property alias modelDialog: dialog
+
+ source: "http://webdesign-finder.com/ubella/wp-content/uploads/2018/10/"
+ + "model_img_13-500x625.jpg"
+ width: 500
+ height: 625
+
+ MouseArea {
+ id: mouseArea
+ anchors.fill: parent
+ }
+
+ FontLoader {
+ id: vidaloka
+ name: "Vidaloka"
+ source: "Vidaloka/Vidaloka-Regular.ttf"
+ }
+
+ Dialog {
+ id: dialog
+ width: parent.width
+ height: 187
+ y: parent.height - height
+ padding: 0
+ background: Rectangle {
+ color: "transparent"
+ }
+
+ header: DialogButtonBox {
+ alignment: Qt.AlignVCenter
+ background: Rectangle {
+ color: "transparent"
+ }
+ Button {
+ id: button
+ text: "Helen"
+ font {
+ family: vidaloka
+ pixelSize: 40
+ }
+ contentItem: Text {
+ text: button.text
+ font: button.font
+ color: "white"
+ horizontalAlignment: Text.AlignHCenter
+ }
+ background: Rectangle {
+ color: "transparent"
+ }
+ DialogButtonBox.buttonRole
+ : DialogButtonBox.AcceptRole
+ }
+ }
+
+ Rectangle {
+ anchors.fill: parent
+ }
+ }
+}