Lv.的博客

qt 创建程序目录

voidinitDir()
{
QStringuserFilePath=QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation)+"/Mysoft";
QDir*doc=newQDir;
if(!doc->exists(userFilePath))
doc->mkdir(userFilePath);
}
posted @ 2014-05-04 09:57  Avatarx  阅读(1121)  评论(0)    收藏  举报