Movatterモバイル変換


[0]ホーム

URL:


We bake cookies in your browser for a better experience. Using this site means that you consent.Read More

Menu

Qt Documentation

Compatibility Members for QFileInfo

The following members of classQFileInfoare part of the Qt compatibility layer. We advise against using them in new code.

Public Types

enumPermission { ReadOwner, WriteOwner, ExeOwner, ReadUser, ..., ExeOther }

Public Functions

QStringabsFilePath() const
QStringbaseName(bool complete)
boolconvertToAbs()
QDirdir(bool absPath) const
QStringdirPath(bool absPath = false) const
QStringextension(bool complete = true) const
boolpermission(PermissionSpec permissions) const

Member Type Documentation

enum QFileInfo::Permission
flags QFileInfo::PermissionSpec

ConstantValue
QFileInfo::ReadOwnerQFile::ReadOwner
QFileInfo::WriteOwnerQFile::WriteOwner
QFileInfo::ExeOwnerQFile::ExeOwner
QFileInfo::ReadUserQFile::ReadUser
QFileInfo::WriteUserQFile::WriteUser
QFileInfo::ExeUserQFile::ExeUser
QFileInfo::ReadGroupQFile::ReadGroup
QFileInfo::WriteGroupQFile::WriteGroup
QFileInfo::ExeGroupQFile::ExeGroup
QFileInfo::ReadOtherQFile::ReadOther
QFileInfo::WriteOtherQFile::WriteOther
QFileInfo::ExeOtherQFile::ExeOther

The PermissionSpec type is a typedef forQFlags<Permission>. It stores an OR combination of Permission values.

Member Function Documentation

QString QFileInfo::absFilePath() const

UseabsoluteFilePath() instead.

QString QFileInfo::baseName(bool complete)

UsecompleteBaseName() or thebaseName() overload that takes no parameters instead.

bool QFileInfo::convertToAbs()

UsemakeAbsolute() instead.

QDir QFileInfo::dir(bool absPath) const

UseabsoluteDir() or thedir() overload that takes no parameters instead.

QString QFileInfo::dirPath(bool absPath = false) const

UseabsolutePath() if the absolute path is wanted (absPath is true) orpath() if it's not necessary (absPath is false).

QString QFileInfo::extension(bool complete = true) const

UsecompleteSuffix() orsuffix() instead.

bool QFileInfo::permission(PermissionSpec permissions) const

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.


[8]ページ先頭

©2009-2025 Movatter.jp