QFileInfo获取文件名以文件夹路径

QFileInfo info("c:/ww/a/test/../a.jpg"); qDebug()<<info.absoluteDir(); qDebug()<<info.absoluteFilePath(); qDebug()<<info.absolutePath(); qDebug()<<info.fileName(); 以上程序的运行结结果是:code QDi
相关文章
相关标签/搜索