打开一个文件夹
cpp
m_dirXML = QFileDialog::getExistingDirectory(this, tr("打开XML所在文件夹"), "D:/", QFileDialog::ShowDirsOnly|QFileDialog::DontResolveSymlinks);
ui.xmlDri->setText(m_dirXML);
选择一个文件:
scriptPath = QFileDialog::getOpenFileName(this, "打开脚本文件", "D:/"); // 弹出对话框
ui.scriptPathlabel->setText(scriptPath); // 讲路径放到label中展示
待补充...