UID:99298
UID:78397
UID:7394
引用楼主shutong于2010-06-30 09:15发表的 QT怎么创建文件夹 :请问QT怎么创建文件夹,绝对路径和相对路径都怎么创建,我是新手,不太懂,看见有人说用QDir,但是我看了看,看不明白,帮帮忙吧,谢谢了
bool QDir::mkdir ( const QString & dirName ) constCreates a sub-directory called dirName.Returns true on success; otherwise returns false.See also rmdir().bool QDir::mkpath ( const QString & dirPath ) constCreates the directory path dirPath.The function will create all parent directories necessary to create the directory.Returns true if successful; otherwise returns false.See also rmpath().