0
Qt : 경로가 필요한 디렉토리가있는 파일을 만드는 방법은 무엇입니까? 존재하지 않으면 "./gg/ggg./fff/ff/file.dd"라고 말하십시오.Qt : 파일을 만드는 방법 (경로가 필요한 디렉토리로)?
Qt : 경로가 필요한 디렉토리가있는 파일을 만드는 방법은 무엇입니까? 존재하지 않으면 "./gg/ggg./fff/ff/file.dd"라고 말하십시오.Qt : 파일을 만드는 방법 (경로가 필요한 디렉토리로)?
당신이 다음
QDir().mkdir("MyFolder");
bool QDir::mkdir (const QString & dirName) const
Creates a sub-directory called dirName.
Returns true on success; otherwise returns false.
See also rmdir().
같은 폴더를 만들 수 있습니다
QDir directory("gg/ggg./fff/ff/file");
같은 경로를 설정할 수는 http://doc.qt.io/qt-5/qdir.html#mkdir
bool QDir::mkpath (const QString & dirPath) const
Creates the directory path dirPath.
The function will create all parent directories necessary to create the directory.
Returns true if successful; otherwise returns false.
이
를 참조 참조 의
가능한 중복 [재귀 적으로 Qt를에서 디렉토리를 만드는 방법?] (http://stackoverflow.com/questions/6232631/how-to-recursively-create-a-directory-in- qt) – karlphillip