voidinitDir()
{
QStringuserFilePath=QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation)+"/Mysoft";
QDir*doc=newQDir;
if(!doc->exists(userFilePath))
doc->mkdir(userFilePath);
}
qt 创建程序目录,布布扣,bubuko.com
qt 创建程序目录
原文:http://www.cnblogs.com/lvdongjie/p/3706139.html