laaw.blogg.se

Qdir software
Qdir software












On Windows, the second example above will be translated to C:\Documents and Settings when used to access files.Įxamples of relative paths: QDir( "images/landscape.png") Relative file names begin with a directory name or a file name and specify a path relative to the current directory.Įxamples of absolute paths: QDir( "/home/user/Documents") Absolute paths begin with the directory separator (optionally preceded by a drive specification under Windows). If you always use "/" as a directory separator, Qt will translate your paths to conform to the underlying operating system.Ī QDir can point to a file using either a relative or an absolute path. Qt uses "/" as a universal directory separator in the same way that "/" is used as a path separator in URLs.

qdir software

It can also be used to access Qt's resource system. The QDir class provides access to directory structures and their contents.Ī QDir is used to manipulate path names, access information regarding paths and files, and manipulate the underlying file system. ToNativeSeparators ( const QString & pathName ) SetSearchPaths ( const QString & prefix, const QStringList & searchPaths ) Match ( const QStringList & filters, const QString & fileName ) Match ( const QString & filter, const QString & fileName ) SetNameFilters ( const QStringList & nameFilters )ĪddSearchPath ( const QString & prefix, const QString & path )įromNativeSeparators ( const QString & pathName ) Rename ( const QString & oldName, const QString & newName ) RelativeFilePath ( const QString & fileName ) const

qdir software

QDir ( const QString & path, const QString & nameFilter, SortFlags sort = SortFlags( Name | IgnoreCase ), Filters filters = AllEntries )ĪbsoluteFilePath ( const QString & fileName ) constĮntryInfoList ( const QStringList & nameFilters, Filters filters = NoFilter, SortFlags sort = NoSort ) constĮntryInfoList ( Filters filters = NoFilter, SortFlags sort = NoSort ) constĮntryList ( const QStringList & nameFilters, Filters filters = NoFilter, SortFlags sort = NoSort ) constĮntryList ( Filters filters = NoFilter, SortFlags sort = NoSort ) constįilePath ( const QString & fileName ) const QDir ( const QString & path = QString() ) List of all members, including inherited membersįilter.Note: All functions in this class are reentrant. The QDir class provides access to directory structures and their contents.














Qdir software