RT.这可能是什么原因? 编译器的bug吗?
qt版本是5.14.2
import QtQuick 2.12
import QtQuick.Window 2.12
import QtQuick.Controls 2.2
import QtQuick.Dialogs 1.3
Window {
visible: true
width: 640
height: 320
title: "Fuck"
FileDialog {
id: openFileDialog
title: "Open Files"
nameFilters: ["Image Files(*.jpg)"]
onAccepted: {
// 此处可自定义文件处理功能
console.log("You chose: " + openFileDialog.fileUrls)
Qt.quit()
}
}
Button {
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
text: "open"
onClicked: openFileDialog.open()
}
}
这已经是所有的代码了 抱歉无法上传附件.