
We bake cookies in your browser for a better experience. Using this site means that you consent.Read More
The following members of classQFileInfoare part of the Qt compatibility layer. We advise against using them in new code.
| enum | Permission { ReadOwner, WriteOwner, ExeOwner, ReadUser, ..., ExeOther } |
| QString | absFilePath() const |
| QString | baseName(bool complete) |
| bool | convertToAbs() |
| QDir | dir(bool absPath) const |
| QString | dirPath(bool absPath = false) const |
| QString | extension(bool complete = true) const |
| bool | permission(PermissionSpec permissions) const |
| Constant | Value |
|---|---|
QFileInfo::ReadOwner | QFile::ReadOwner |
QFileInfo::WriteOwner | QFile::WriteOwner |
QFileInfo::ExeOwner | QFile::ExeOwner |
QFileInfo::ReadUser | QFile::ReadUser |
QFileInfo::WriteUser | QFile::WriteUser |
QFileInfo::ExeUser | QFile::ExeUser |
QFileInfo::ReadGroup | QFile::ReadGroup |
QFileInfo::WriteGroup | QFile::WriteGroup |
QFileInfo::ExeGroup | QFile::ExeGroup |
QFileInfo::ReadOther | QFile::ReadOther |
QFileInfo::WriteOther | QFile::WriteOther |
QFileInfo::ExeOther | QFile::ExeOther |
The PermissionSpec type is a typedef forQFlags<Permission>. It stores an OR combination of Permission values.
UseabsoluteFilePath() instead.
UsecompleteBaseName() or thebaseName() overload that takes no parameters instead.
UsemakeAbsolute() instead.
UseabsoluteDir() or thedir() overload that takes no parameters instead.
UseabsolutePath() if the absolute path is wanted (absPath is true) orpath() if it's not necessary (absPath is false).
UsecompleteSuffix() orsuffix() instead.
Usepermission() instead.
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.