main
朱子楚\zhuzi 2023-03-18 20:41:21 +08:00
parent 8eb7e1df4a
commit a447b260e7
1 changed files with 4 additions and 5 deletions

View File

@ -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)
}
}