From 6945a197490e7aa0113bca1f9a13019a27b5d8eb Mon Sep 17 00:00:00 2001 From: Joker <joker2387089590@gmail.com> Date: 周三, 18 6月 2025 23:10:25 +0800 Subject: [PATCH] change submodule url --- examples/qml/main.qml | 40 +++++++++------------------------------- 1 files changed, 9 insertions(+), 31 deletions(-) diff --git a/examples/qml/main.qml b/examples/qml/main.qml index 4ed90f1..7f203c4 100644 --- a/examples/qml/main.qml +++ b/examples/qml/main.qml @@ -1,41 +1,19 @@ import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick.Controls 2.15 -import QWindowKit 1.0 -Window { - id: window - width: 800 - height: 600 - color: "#f0f0f0" - title: qsTr("Hello, world!") - Component.onCompleted: { - windowAgent.setup(window) - window.visible = true +FramelessWindow { + property FramelessWindow childWindow: FramelessWindow { + showWhenReady: false } - WindowAgent { - id: windowAgent - } - - Rectangle { - id: titleBar + Button { anchors { - top: parent.top - left: parent.left - right: parent.right + horizontalCenter: parent.horizontalCenter + bottom: parent.bottom + bottomMargin: 20 } - height: 32 - color: "white" - Component.onCompleted: windowAgent.setTitleBar(titleBar) - - Text { - anchors.centerIn: parent - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - text: window.title - font.pixelSize: 14 - color: window.active ? "black" : "gray" - } + text: qsTr("Open Child Window") + onClicked: childWindow.visible = true } } \ No newline at end of file -- Gitblit v1.9.1