Home · All Classes · Main Classes · Grouped Classes · Modules · Functions

Qt 3 Support Members for QFileInfo

The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code.

Public Types

Public Functions


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 for QFlags<Permission>. It stores an OR combination of Permission values.


Member Function Documentation

QString QFileInfo::absFilePath () const

Use absoluteFilePath() instead.

QString QFileInfo::baseName ( bool complete )

This is an overloaded member function, provided for convenience.

Use completeBaseName() or the baseName() overload that takes no parameters instead.

bool QFileInfo::convertToAbs ()

Use makeAbsolute() instead.

QDir QFileInfo::dir ( bool absPath ) const

This is an overloaded member function, provided for convenience.

Use absoluteDir() or the dir() overload that takes no parameters instead.

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

Returns the path (which may be relative). If absPath is true, returns the absolute path, i.e., from the root.

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

Use completeSuffix() or suffix() instead.

bool QFileInfo::permission ( PermissionSpec permissions ) const

This is an overloaded member function, provided for convenience.

Use permission() instead.


Copyright © 2007 Trolltech Trademarks
Qt 4.2.3