QFileInfo獲取文件名以文件夾路徑

QFileInfo info("c:/ww/a/test/../a.jpg"); qDebug()<<info.absoluteDir(); qDebug()<<info.absoluteFilePath(); qDebug()<<info.absolutePath(); qDebug()<<info.fileName(); 以上程序的運行結結果是:code QDi
相關文章
相關標籤/搜索