diff --git a/example/qml-Qt6/window/MainWindow.qml b/example/qml-Qt6/window/MainWindow.qml index 8adb398b..40f5c819 100644 --- a/example/qml-Qt6/window/MainWindow.qml +++ b/example/qml-Qt6/window/MainWindow.qml @@ -51,7 +51,7 @@ FluWindow { MenuItem { text: "退出" onTriggered: { - FluApp.exit() + window.close() } } } diff --git a/example/qml/window/MainWindow.qml b/example/qml/window/MainWindow.qml index 11bd55fc..56a19abe 100644 --- a/example/qml/window/MainWindow.qml +++ b/example/qml/window/MainWindow.qml @@ -81,7 +81,7 @@ FluWindow { positiveText:"退出" neutralText:"取消" onPositiveClicked:{ - FluApp.exit() + window.close() } }