阅读背景:

[Qt5编程]QFileInfo各属性值总结

来源:互联网 
QFileInfo file("C:/Users/ema/Desktop/filename.tar.bz2");

qDebug()<<"filePath="<<file.filePath();
qDebug()<<"absoluteFilePath="<<file.absoluteFilePath();
qDebug()<<"canonicalFilePath="<<file.canonicalFilePath();

qDebug()<<"fileName="<<file.fileName();
qDebug()<<"baseName="<<file.baseName();
qDebug()<<"completeBaseName="<<file.completeBaseName();

qDebug()<<"suffix="<<file.suffix();
qDebug()<<"bundleName="<<file.bundleName();
qDebug()<<"completeSuffix="<<file.completeSuffix();

qDebug()<<"path="<<file.path();
qDebug()<<"absolutePath="<<file.absolutePath();
qDebug()<<"canonicalPath="<<file.canonicalPath();

qDebug()<<"readLink="<<file.readLink();
qDebug()<<"owner="<<file.owner();
qDebug()<<"group="<<file.group();QFileInfo file("C:/Users/ema/Desktop/file



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: