分享经验,丰富中文技术文档,从我做起。
QString fileString =QFileDialog::getsaveFileName(this,tr("test")," "," ",0);
OFileInfo file(fileString);//
QString fileName=file.fileName();
if(!fileName.isNull()){
treeView.init(fileName);
}
Note:
可以返回 name;path,baseName;