From a447b260e7cd75bfb7522eccbdeb87479d77e82f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Sat, 18 Mar 2023 20:41:21 +0800 Subject: [PATCH] update --- example/page/ChatPage.qml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/example/page/ChatPage.qml b/example/page/ChatPage.qml index f306de6e..bab04f8f 100644 --- a/example/page/ChatPage.qml +++ b/example/page/ChatPage.qml @@ -3,7 +3,7 @@ import QtQuick.Layouts 1.15 import QtQuick.Controls 2.15 import FluentUI 1.0 import Controller 1.0 -import Qt.labs.platform 1.1 +import QtQuick.Dialogs 1.3 FluWindow { @@ -259,7 +259,6 @@ FluWindow { FluMenuItem{ text:"导出消息" onClicked: { - file_dialog.currentFile = "file:///123.txt" file_dialog.open() } } @@ -267,10 +266,10 @@ FluWindow { FileDialog{ id:file_dialog - fileMode:FileDialog.SaveFile - folder: StandardPaths.writableLocation(StandardPaths.DesktopLocation) + folder: shortcuts.home + selectFolder : true onAccepted: { - console.log("You chose: " + file_dialog.file) + console.log("You chose: " + file_dialog.fileUrl) } }