查看完整版本: [-- 新建一个最简单的filedialog工程也提示Invalid parameter passed to C runtime function. --]

QTCN开发网 -> Qt QML开发 -> 新建一个最简单的filedialog工程也提示Invalid parameter passed to C runtime function. [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

pjzmj2012 2022-06-28 22:02

新建一个最简单的filedialog工程也提示Invalid parameter passed to C runtime function.

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()
     }
}
这已经是所有的代码了 抱歉无法上传附件.


查看完整版本: [-- 新建一个最简单的filedialog工程也提示Invalid parameter passed to C runtime function. --] [-- top --]



Powered by phpwind v8.7 Code ©2003-2011 phpwind
Gzip disabled