qt下判断目录是否存在,不存在则创建

#include <QDir>
QDir dir;
if(!dir.exists(path)) {
    dir.mkpath(path);
}

 

posted @ 2023-07-17 11:59  时间在哪  阅读(243)  评论(0)    收藏  举报