fix: 关于窗口无法拖动

drag.target 对 Window 无效,改用 startSystemMove() 系统级窗口拖动,
与 SettingsWindow/TrafficChartWindow 一致
This commit is contained in:
2026-08-08 23:24:45 +08:00
parent d18314bdec
commit ee885e0dbb
+4 -1
View File
@@ -74,9 +74,12 @@ Window {
color: "transparent" color: "transparent"
// 拖动层:声明在关闭按钮之前(位于其下方),避免遮挡按钮点击与 hover // 拖动层:声明在关闭按钮之前(位于其下方),避免遮挡按钮点击与 hover
// 用 startSystemMove() 系统级窗口拖动(drag.target 对 Window 无效,
// 与 SettingsWindow/TrafficChartWindow 一致)
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
drag.target: root cursorShape: Qt.OpenHandCursor
onPressed: root.startSystemMove()
} }
Text { Text {