From cce8eebd3f2860f1ef738b421f286278c734aa33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Sun, 5 Feb 2023 18:09:51 +0800 Subject: Model image draft --- ModelImage.ui.qml | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 ModelImage.ui.qml (limited to 'ModelImage.ui.qml') 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 + } + } +} -- cgit v1.2.3