mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-23 11:17:15 +08:00
update
This commit is contained in:
parent
8eb7e1df4a
commit
a447b260e7
@ -3,7 +3,7 @@ import QtQuick.Layouts 1.15
|
|||||||
import QtQuick.Controls 2.15
|
import QtQuick.Controls 2.15
|
||||||
import FluentUI 1.0
|
import FluentUI 1.0
|
||||||
import Controller 1.0
|
import Controller 1.0
|
||||||
import Qt.labs.platform 1.1
|
import QtQuick.Dialogs 1.3
|
||||||
|
|
||||||
FluWindow {
|
FluWindow {
|
||||||
|
|
||||||
@ -259,7 +259,6 @@ FluWindow {
|
|||||||
FluMenuItem{
|
FluMenuItem{
|
||||||
text:"导出消息"
|
text:"导出消息"
|
||||||
onClicked: {
|
onClicked: {
|
||||||
file_dialog.currentFile = "file:///123.txt"
|
|
||||||
file_dialog.open()
|
file_dialog.open()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -267,10 +266,10 @@ FluWindow {
|
|||||||
|
|
||||||
FileDialog{
|
FileDialog{
|
||||||
id:file_dialog
|
id:file_dialog
|
||||||
fileMode:FileDialog.SaveFile
|
folder: shortcuts.home
|
||||||
folder: StandardPaths.writableLocation(StandardPaths.DesktopLocation)
|
selectFolder : true
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
console.log("You chose: " + file_dialog.file)
|
console.log("You chose: " + file_dialog.fileUrl)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user