Home · All Classes · Main Classes · Grouped Classes · Modules · Functions |
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.
Use absoluteFilePath(fileName) instead.
The acceptAbsPath parameter is ignored.
Use absolutePath() instead.
Use cleanPath() instead.
Use makeAbsolute() instead.
Use currentPath() instead.
Returns the current working directory or "/" if the current directory cannot be determined.
See also homePath() and rootPath().
This is an overloaded member function, provided for convenience.
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 member function, provided for convenience.
Use the overload that takes a name filter string list as first argument instead of a combination of attribute filter flags.
Use homePath() instead.
Returns the user's home directory or an empty string if it cannot be determined.
See also currentPath() and rootPath().
Use filter() & AllDirs instead.
See also setMatchAllDirs().
This is an overloaded member function, provided for convenience.
Use mkdir(dirName) instead.
The acceptAbsPath parameter is ignored.
Use nameFilters() instead.
See also setNameFilter().
This is an overloaded member function, provided for convenience.
Use rmdir(dirName) instead.
The acceptAbsPath parameter is ignored.
Use rootPath() instead.
Returns "/".
See also homePath() and currentPath().
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().
Copyright © 2007 Trolltech | Trademarks | Qt 4.2.3 |