Qt 3 Support Members for QDirThe 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 Functions
Static Public Members
Member Function DocumentationQString QDir::absFilePath ( const QString & fileName, bool acceptAbsPath = true ) constUse absoluteFilePath(fileName) instead. The acceptAbsPath parameter is ignored. QString QDir::absPath () constUse absolutePath() instead. QString QDir::cleanDirPath ( const QString & name ) [static]Use cleanPath() instead. QString QDir::convertSeparators ( const QString & pathName ) [static]Use QDir::toNativeSeparators() instead. void QDir::convertToAbs ()Use makeAbsolute() instead. QString QDir::currentDirPath () [static]Returns the absolute path of the application's current directory. Use currentPath() instead. See also currentPath(). QFileInfoList QDir::entryInfoList ( const QString & nameFilter, Filters filters = NoFilter, SortFlags sort = NoSort ) constThis 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. QStringList QDir::entryList ( const QString & nameFilter, Filters filters = NoFilter, SortFlags sort = NoSort ) constThis 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. QString QDir::homeDirPath () [static]Returns the absolute path of the user's home directory. Use homePath() instead. See also homePath(). bool QDir::matchAllDirs () constUse filter() & AllDirs instead. See also setMatchAllDirs(). bool QDir::mkdir ( const QString & dirName, bool acceptAbsPath ) constUse mkdir(dirName) instead. The acceptAbsPath parameter is ignored. QString QDir::nameFilter () constUse nameFilters() instead. See also setNameFilter(). bool QDir::rmdir ( const QString & dirName, bool acceptAbsPath ) constUse rmdir(dirName) instead. The acceptAbsPath parameter is ignored. QString QDir::rootDirPath () [static]Returns the absolute path of the root directory. Use rootPath() instead. See also rootPath(). void QDir::setMatchAllDirs ( bool on )Use setFilter() instead. See also matchAllDirs(). void QDir::setNameFilter ( const QString & nameFilter )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().
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |