好记性果然不如烂笔头,以后还是多整理吧!
1、获取一个文件的完整路径
QString temp = QFileDialog::getOpenFileName(this, "open", "c:/desktop/", "files(*.*)");
2、获取一个存在的目录
dir = QFileDialog::getExistingDirectory(this, "choose dir");
好记性果然不如烂笔头,以后还是多整理吧!
1、获取一个文件的完整路径
QString temp = QFileDialog::getOpenFileName(this, "open", "c:/desktop/", "files(*.*)");
2、获取一个存在的目录
dir = QFileDialog::getExistingDirectory(this, "choose dir");