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.
QString | absFilePath ( const QString & fileName, bool acceptAbsPath = true ) const |
QString | absPath () const |
void | convertToAbs () |
QFileInfoList | entryInfoList ( const QString & nameFilter, Filters filters = NoFilter, SortFlags sort = NoSort ) const |
QStringList | entryList ( const QString & nameFilter, Filters filters = NoFilter, SortFlags sort = NoSort ) const |
bool | matchAllDirs () const |
bool | mkdir ( const QString & dirName, bool acceptAbsPath ) const |
QString | nameFilter () const |
bool | rmdir ( const QString & dirName, bool acceptAbsPath ) const |
void | setMatchAllDirs ( bool on ) |
void | setNameFilter ( const QString & nameFilter ) |
QString | cleanDirPath ( const QString & name ) |
QString | convertSeparators ( const QString & pathName ) |
QString | currentDirPath () |
QString | homeDirPath () |
QString | rootDirPath () |
Use absoluteFilePath(fileName) instead.
The acceptAbsPath parameter is ignored.
Use absolutePath() instead.
Use cleanPath() instead.
Use QDir::toNativeSeparators() instead.
Use makeAbsolute() instead.
Returns the absolute path of the application's current directory.
Use currentPath() instead.
See also currentPath() and setCurrent().
This is an overloaded function.
Use the overload that takes a name filter string list as first argument instead of a combination of attribute filter flags.
This is an overloaded function.
Use the overload that takes a name filter string list as first argument instead of a combination of attribute filter flags.
Returns the absolute path of the user's home directory.
Use homePath() instead.
See also homePath().
Use filter() & AllDirs instead.
See also setMatchAllDirs().
Use mkdir(dirName) instead.
The acceptAbsPath parameter is ignored.
Use nameFilters() instead.
See also setNameFilter().
Use rmdir(dirName) instead.
The acceptAbsPath parameter is ignored.
Returns the absolute path of the root directory.
Use rootPath() instead.
See also rootPath().
Use setFilter() instead.
See also matchAllDirs().
Use setNameFilters() instead.
The nameFilter is a wildcard (globbing) filter that understands "*" and "?" wildcards. (See QRegExp wildcard matching.) You may specify several filter entries, each separated by spaces or by semicolons.
For example, if you want entryList() and entryInfoList() to list all files ending with either ".cpp" or ".h", you would use either dir.setNameFilters("*.cpp *.h") or dir.setNameFilters("*.cpp;*.h").
For example, if you have code like
QString filter = "*.cpp *.cxx *.cc"; dir.setNameFilter(filter);
you can rewrite it as
QString filter = "*.cpp *.cxx *.cc"; dir.setNameFilters(filter.split(' '));
See also nameFilter().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.