<class name="QDir" doc="/**
&lt;p&gt;The &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt; class provides access to directory structures and their contents.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt; is used to manipulate path names, access information regarding paths and files, and manipulate the underlying file system. It can also be used to access Qt's &lt;a href=&quot;%2E%2E/resources.html#resource-system&quot;&gt;resource system&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Qt uses &amp;quot;/&amp;quot; as a universal directory separator in the same way that &amp;quot;/&amp;quot; is used as a path separator in URLs. If you always use &amp;quot;/&amp;quot; as a directory separator, Qt will translate your paths to conform to the underlying operating system.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt; can point to a file using either a relative or an absolute path. Absolute paths begin with the directory separator (optionally preceded by a drive specification under Windows). Relative file names begin with a directory name or a file name and specify a path relative to the current directory.&lt;/p&gt;
&lt;p&gt;Examples of absolute paths:&lt;/p&gt;
&lt;pre&gt;    QDir(&amp;quot;/home/user/Documents&amp;quot;)
    QDir(&amp;quot;C:/Documents and Settings&amp;quot;)&lt;/pre&gt;
&lt;p&gt;On Windows, the second of the examples above will be translated to &lt;tt&gt;C:\My Documents&lt;/tt&gt; when used to access files.&lt;/p&gt;
&lt;p&gt;Examples of relative paths:&lt;/p&gt;
&lt;pre&gt;    QDir(&amp;quot;images/landscape.png&amp;quot;)&lt;/pre&gt;
&lt;p&gt;You can use the &lt;a href=&quot;QDir.html#isRelative()&quot;&gt;&lt;tt&gt;isRelative&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QDir.html#isAbsolute()&quot;&gt;&lt;tt&gt;isAbsolute&lt;/tt&gt;&lt;/a&gt; functions to check if a &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt; is using a relative or an absolute file path. Call &lt;a href=&quot;QDir.html#makeAbsolute()&quot;&gt;&lt;tt&gt;makeAbsolute&lt;/tt&gt;&lt;/a&gt; to convert a relative &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt; to an absolute one.&lt;/p&gt;
&lt;a name=&quot;navigation-and-directory-operations&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Navigation and Directory Operations&lt;/h3&gt;
&lt;p&gt;A directory's path can be obtained with the &lt;a href=&quot;QDir.html#path()&quot;&gt;&lt;tt&gt;path&lt;/tt&gt;&lt;/a&gt; function, and a new path set with the &lt;a href=&quot;QDir.html#setPath(java.lang.String)&quot;&gt;&lt;tt&gt;setPath&lt;/tt&gt;&lt;/a&gt; function. The absolute path to a directory is found by calling &lt;a href=&quot;QDir.html#absolutePath()&quot;&gt;&lt;tt&gt;absolutePath&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The name of a directory is found using the &lt;a href=&quot;QDir.html#dirName()&quot;&gt;&lt;tt&gt;dirName&lt;/tt&gt;&lt;/a&gt; function. This typically returns the last element in the absolute path that specifies the location of the directory. However, it can also return &amp;quot;.&amp;quot; if the &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt; represents the current directory.&lt;/p&gt;
&lt;pre&gt;    QDir(&amp;quot;Documents/Letters/Applications&amp;quot;).dirName() &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; &amp;quot;Applications&amp;quot;
    QDir().dirName()                                 &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; &amp;quot;.&amp;quot;&lt;/pre&gt;
&lt;p&gt;The path for a directory can also be changed with the &lt;a href=&quot;QDir.html#cd(java.lang.String)&quot;&gt;&lt;tt&gt;cd&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDir.html#cdUp()&quot;&gt;&lt;tt&gt;cdUp&lt;/tt&gt;&lt;/a&gt; functions, both of which operate like familiar shell commands. When &lt;a href=&quot;QDir.html#cd(java.lang.String)&quot;&gt;&lt;tt&gt;cd&lt;/tt&gt;&lt;/a&gt; is called with the name of an existing directory, the &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt; object changes directory so that it represents that directory instead. The &lt;a href=&quot;QDir.html#cdUp()&quot;&gt;&lt;tt&gt;cdUp&lt;/tt&gt;&lt;/a&gt; function changes the directory of the &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt; object so that it refers to its parent directory; i.e&amp;#x2e; cd(&amp;quot;..&amp;quot;) is equivalent to &lt;a href=&quot;QDir.html#cdUp()&quot;&gt;&lt;tt&gt;cdUp&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Directories can be created with &lt;a href=&quot;QDir.html#mkdir(java.lang.String)&quot;&gt;&lt;tt&gt;mkdir&lt;/tt&gt;&lt;/a&gt;, renamed with &lt;a href=&quot;QDir.html#rename(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;rename&lt;/tt&gt;&lt;/a&gt;, and removed with &lt;a href=&quot;QDir.html#rmdir(java.lang.String)&quot;&gt;&lt;tt&gt;rmdir&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can test for the presence of a directory with a given name by using &lt;a href=&quot;QDir.html#exists()&quot;&gt;&lt;tt&gt;exists&lt;/tt&gt;&lt;/a&gt;, and the properties of a directory can be tested with &lt;a href=&quot;QDir.html#isReadable()&quot;&gt;&lt;tt&gt;isReadable&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDir.html#isAbsolute()&quot;&gt;&lt;tt&gt;isAbsolute&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDir.html#isRelative()&quot;&gt;&lt;tt&gt;isRelative&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QDir.html#isRoot()&quot;&gt;&lt;tt&gt;isRoot&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QDir.html#refresh()&quot;&gt;&lt;tt&gt;refresh&lt;/tt&gt;&lt;/a&gt; function re-reads the directory's data from disk.&lt;/p&gt;
&lt;a name=&quot;files-and-directory-contents&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Files and Directory Contents&lt;/h3&gt;
&lt;p&gt;Directories contain a number of entries, representing files, directories, and symbolic links. The number of entries in a directory is returned by &lt;a href=&quot;QDir.html#count()&quot;&gt;&lt;tt&gt;count&lt;/tt&gt;&lt;/a&gt;. A string list of the names of all the entries in a directory can be obtained with &lt;a href=&quot;QDir.html#entryList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryList&lt;/tt&gt;&lt;/a&gt;. If you need information about each entry, use &lt;a href=&quot;QDir.html#entryInfoList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryInfoList&lt;/tt&gt;&lt;/a&gt; to obtain a list of &lt;a href=&quot;QFileInfo.html&quot;&gt;&lt;tt&gt;QFileInfo&lt;/tt&gt;&lt;/a&gt; objects.&lt;/p&gt;
&lt;p&gt;Paths to files and directories within a directory can be constructed using &lt;a href=&quot;QDir.html#filePath(java.lang.String)&quot;&gt;&lt;tt&gt;filePath&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDir.html#absoluteFilePath(java.lang.String)&quot;&gt;&lt;tt&gt;absoluteFilePath&lt;/tt&gt;&lt;/a&gt;. The &lt;a href=&quot;QDir.html#filePath(java.lang.String)&quot;&gt;&lt;tt&gt;filePath&lt;/tt&gt;&lt;/a&gt; function returns a path to the specified file or directory relative to the path of the &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt; object; &lt;a href=&quot;QDir.html#absoluteFilePath(java.lang.String)&quot;&gt;&lt;tt&gt;absoluteFilePath&lt;/tt&gt;&lt;/a&gt; returns an absolute path to the specified file or directory. Neither of these functions checks for the existence of files or directory; they only construct paths.&lt;/p&gt;
&lt;pre&gt;    QDir directory(&amp;quot;Documents/Letters&amp;quot;);
    QString path = directory.filePath(&amp;quot;contents.txt&amp;quot;);
    QString absolutePath = directory.absoluteFilePath(&amp;quot;contents.txt&amp;quot;);&lt;/pre&gt;
&lt;p&gt;Files can be removed by using the &lt;a href=&quot;QDir.html#remove(java.lang.String)&quot;&gt;&lt;tt&gt;remove&lt;/tt&gt;&lt;/a&gt; function. Directories cannot be removed in the same way as files; use &lt;a href=&quot;QDir.html#rmdir(java.lang.String)&quot;&gt;&lt;tt&gt;rmdir&lt;/tt&gt;&lt;/a&gt; to remove them instead.&lt;/p&gt;
&lt;p&gt;It is possible to reduce the number of entries returned by &lt;a href=&quot;QDir.html#entryList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryList&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDir.html#entryInfoList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryInfoList&lt;/tt&gt;&lt;/a&gt; by applying filters to a &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt; object. You can apply a name filter to specify a pattern with wildcards that file names need to match, an attribute filter that selects properties of entries and can distinguish between files and directories, and a sort order.&lt;/p&gt;
&lt;p&gt;Name filters are lists of strings that are passed to &lt;a href=&quot;QDir.html#setNameFilters(java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;setNameFilters&lt;/tt&gt;&lt;/a&gt;. Attribute filters consist of a bitwise OR combination of Filters, and these are specified when calling &lt;a href=&quot;QDir.html#setFilter(com.trolltech.qt.core.QDir.Filters)&quot;&gt;&lt;tt&gt;setFilter&lt;/tt&gt;&lt;/a&gt;. The sort order is specified using &lt;a href=&quot;QDir.html#setSorting(com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;setSorting&lt;/tt&gt;&lt;/a&gt; with a bitwise OR combination of SortFlags.&lt;/p&gt;
&lt;p&gt;You can test to see if a filename matches a filter using the &lt;a href=&quot;QDir.html#match(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;match&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
&lt;p&gt;Filter and sort order flags may also be specified when calling &lt;a href=&quot;QDir.html#entryList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryList&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDir.html#entryInfoList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryInfoList&lt;/tt&gt;&lt;/a&gt; in order to override previously defined behavior.&lt;/p&gt;
&lt;a name=&quot;the-current-directory-and-other-special-paths&quot;&gt;&lt;/a&gt;
&lt;h3&gt;The Current Directory and Other Special Paths&lt;/h3&gt;
&lt;p&gt;Access to some common directories is provided with a number of static functions that return &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt; objects. There are also corresponding functions for these that return strings:&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;thead&gt;&lt;tr valign=&quot;top&quot; class=&quot;qt-style&quot;&gt;&lt;th&gt;&lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt;&lt;/th&gt;&lt;th&gt;&lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt;&lt;/th&gt;&lt;th&gt;Return Value&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QDir.html#current()&quot;&gt;&lt;tt&gt;current&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QDir.html#currentPath()&quot;&gt;&lt;tt&gt;currentPath&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;The application's working directory&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QDir.html#home()&quot;&gt;&lt;tt&gt;home&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QDir.html#homePath()&quot;&gt;&lt;tt&gt;homePath&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;The user's home directory&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QDir.html#root()&quot;&gt;&lt;tt&gt;root&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QDir.html#rootPath()&quot;&gt;&lt;tt&gt;rootPath&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;The root directory&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QDir.html#temp()&quot;&gt;&lt;tt&gt;temp&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QDir.html#tempPath()&quot;&gt;&lt;tt&gt;tempPath&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;The system's temporary directory&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QDir.html#setCurrent(java.lang.String)&quot;&gt;&lt;tt&gt;setCurrent&lt;/tt&gt;&lt;/a&gt; static function can also be used to set the application's working directory.&lt;/p&gt;
&lt;p&gt;If you want to find the directory containing the application's executable, see &lt;tt&gt;QCoreApplication::applicationDirPath&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QDir.html#drives()&quot;&gt;&lt;tt&gt;drives&lt;/tt&gt;&lt;/a&gt; static function provides a list of root directories for each device that contains a filing system. On Unix systems this returns a list containing a single root directory &amp;quot;/&amp;quot;; on Windows the list will usually contain &lt;tt&gt;C:/&lt;/tt&gt;, and possibly other drive letters such as &lt;tt&gt;D:/&lt;/tt&gt;, depending on the configuration of the user's system.&lt;/p&gt;
&lt;a name=&quot;path-manipulation-and-strings&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Path Manipulation and Strings&lt;/h3&gt;
&lt;p&gt;Paths containing &amp;quot;.&amp;quot; elements that reference the current directory at that point in the path, &amp;quot;..&amp;quot; elements that reference the parent directory, and symbolic links can be reduced to a canonical form using the &lt;a href=&quot;QDir.html#canonicalPath()&quot;&gt;&lt;tt&gt;canonicalPath&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
&lt;p&gt;Paths can also be simplified by using &lt;a href=&quot;QDir.html#cleanPath(java.lang.String)&quot;&gt;&lt;tt&gt;cleanPath&lt;/tt&gt;&lt;/a&gt; to remove redundant &amp;quot;/&amp;quot; and &amp;quot;..&amp;quot; elements.&lt;/p&gt;
&lt;p&gt;It is sometimes necessary to be able to show a path in the native representation for the user's platform. The static &lt;a href=&quot;QDir.html#toNativeSeparators(java.lang.String)&quot;&gt;&lt;tt&gt;toNativeSeparators&lt;/tt&gt;&lt;/a&gt; function returns a copy of the specified path in which each directory separator is replaced by the appropriate separator for the underlying operating system.&lt;/p&gt;
&lt;a name=&quot;examples&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Examples&lt;/h3&gt;
&lt;p&gt;Check if a directory exists:&lt;/p&gt;
&lt;pre&gt;        QDir dir(&amp;quot;example&amp;quot;);
        if (!dir.exists())
            qWarning(&amp;quot;Cannot find the example directory&amp;quot;);&lt;/pre&gt;
&lt;p&gt;(We could also use the static convenience function QFile::exists().)&lt;/p&gt;
&lt;p&gt;Traversing directories and reading a file:&lt;/p&gt;
&lt;pre&gt;        QDir dir = QDir::root();                 &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; &amp;quot;/&amp;quot;
        if (!dir.cd(&amp;quot;tmp&amp;quot;)) {                    &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; &amp;quot;/tmp&amp;quot;
            qWarning(&amp;quot;Cannot find the \&amp;quot;/tmp\&amp;quot; directory&amp;quot;);
        } else {
            QFile file(dir.filePath(&amp;quot;ex1.txt&amp;quot;)); &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; &amp;quot;/tmp/ex1.txt&amp;quot;
            if (!file.open(QIODevice::ReadWrite))
                qWarning(&amp;quot;Cannot create the file %s&amp;quot;, file.name());
        }&lt;/pre&gt;
&lt;p&gt;A program that lists all the files in the current directory (excluding symbolic links), sorted by size, smallest first:&lt;/p&gt;
&lt;pre&gt;    #include &amp;lt;QDir&amp;gt;
    #include &amp;lt;iostream&amp;gt;

    int main(int argc, char *argv[])
    {
        QDir dir;
        dir.setFilter(QDir::Files | QDir::Hidden | QDir::NoSymLinks);
        dir.setSorting(QDir::Size | QDir::Reversed);

        QFileInfoList list = dir.entryInfoList();
        std::cout &amp;lt;&amp;lt; &amp;quot;     Bytes Filename&amp;quot; &amp;lt;&amp;lt; std::endl;
        for (int i = 0; i &amp;lt; list.size(); ++i) {
            QFileInfo fileInfo = list.at(i);
            std::cout &amp;lt;&amp;lt; qPrintable(QString(&amp;quot;%1 %2&amp;quot;).arg(fileInfo.size(), 10)
                                                    .arg(fileInfo.fileName()));
            std::cout &amp;lt;&amp;lt; std::endl;
        }
        return 0;
    }&lt;/pre&gt;

@see &lt;a href=&quot;QFileInfo.html&quot;&gt;&lt;tt&gt;QFileInfo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFile.html&quot;&gt;&lt;tt&gt;QFile&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/gui/QFileDialog.html&quot;&gt;&lt;tt&gt;QFileDialog&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QApplication::applicationDirPath&lt;/tt&gt;
@see Find Files Example&lt;/tt&gt; */">
    <method name="public QDir(java.lang.String path)" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt; pointing to the given directory &lt;tt&gt;path&lt;/tt&gt;. If path is empty the program's working directory, (&amp;quot;.&amp;quot;), is used.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#currentPath()&quot;&gt;&lt;tt&gt;currentPath&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QDir()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt;(QString()). */"/>
    <method name="public QDir(java.lang.String path, java.lang.String nameFilter, com.trolltech.qt.core.QDir.SortFlags sort, com.trolltech.qt.core.QDir.Filters filter)" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt; with path &lt;tt&gt;path&lt;/tt&gt;, that filters its entries by name using &lt;tt&gt;nameFilter&lt;/tt&gt; and by attributes using &lt;tt&gt;filter&lt;/tt&gt;. It also sorts the names using &lt;tt&gt;sort&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default &lt;tt&gt;nameFilter&lt;/tt&gt; is an empty string, which excludes nothing; the default &lt;tt&gt;filter&lt;/tt&gt; is &lt;a href=&quot;QDir.html#Filter-enum&quot;&gt;&lt;tt&gt;AllEntries&lt;/tt&gt;&lt;/a&gt;, which also means exclude nothing. The default &lt;tt&gt;sort&lt;/tt&gt; is &lt;a href=&quot;QDir.html#SortFlag-enum&quot;&gt;Name&lt;/tt&gt;&lt;/a&gt; | &lt;a href=&quot;QDir.html#SortFlag-enum&quot;&gt;&lt;tt&gt;IgnoreCase&lt;/tt&gt;&lt;/a&gt;, i.e&amp;#x2e; sort by name case-insensitively.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;path&lt;/tt&gt; is an empty string, &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt; uses &amp;quot;.&amp;quot; (the current directory). If &lt;tt&gt;nameFilter&lt;/tt&gt; is an empty string, &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt; uses the name filter &amp;quot;*&amp;quot; (all files).&lt;/p&gt;
&lt;p&gt;Note that &lt;tt&gt;path&lt;/tt&gt; need not exist.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#exists()&quot;&gt;&lt;tt&gt;exists&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#setPath(java.lang.String)&quot;&gt;&lt;tt&gt;setPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;setNameFilter&lt;/tt&gt;
@see &lt;a href=&quot;QDir.html#setFilter(com.trolltech.qt.core.QDir.Filters)&quot;&gt;&lt;tt&gt;setFilter&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#setSorting(com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;setSorting&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QDir(java.lang.String path, java.lang.String nameFilter, com.trolltech.qt.core.QDir.SortFlags sort)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;path&lt;/tt&gt;, &lt;tt&gt;nameFilter&lt;/tt&gt;, &lt;tt&gt;sort&lt;/tt&gt;, AllEntries). */"/>
    <method name="public QDir(java.lang.String path, java.lang.String nameFilter)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;path&lt;/tt&gt;, &lt;tt&gt;nameFilter&lt;/tt&gt;, SortFlags( Name | IgnoreCase ), AllEntries). */"/>
    <method name="public QDir(com.trolltech.qt.core.QDir arg__1)" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt; object that is a copy of the &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt; object for directory &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;operator=&lt;/tt&gt; */"/>
    <method name="public final java.lang.String absoluteFilePath(java.lang.String fileName)" doc="/**
&lt;p&gt;Returns the absolute path name of a file in the directory. Does &lt;i&gt;not&lt;/i&gt; check if the file actually exists in the directory; but see &lt;a href=&quot;QDir.html#exists()&quot;&gt;&lt;tt&gt;exists&lt;/tt&gt;&lt;/a&gt;. Redundant multiple separators or &amp;quot;.&amp;quot; and &amp;quot;..&amp;quot; directories in &lt;tt&gt;fileName&lt;/tt&gt; are not removed (see &lt;a href=&quot;QDir.html#cleanPath(java.lang.String)&quot;&gt;&lt;tt&gt;cleanPath&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#relativeFilePath(java.lang.String)&quot;&gt;&lt;tt&gt;relativeFilePath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#filePath(java.lang.String)&quot;&gt;&lt;tt&gt;filePath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#canonicalPath()&quot;&gt;&lt;tt&gt;canonicalPath&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String absolutePath()" doc="/**
&lt;p&gt;Returns the absolute path (a path that starts with &amp;quot;/&amp;quot; or with a drive specification), which may contain symbolic links, but never contains redundant &amp;quot;.&amp;quot;, &amp;quot;..&amp;quot; or multiple separators.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#setPath(java.lang.String)&quot;&gt;&lt;tt&gt;setPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#canonicalPath()&quot;&gt;&lt;tt&gt;canonicalPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#exists()&quot;&gt;&lt;tt&gt;exists&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#cleanPath(java.lang.String)&quot;&gt;&lt;tt&gt;cleanPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#dirName()&quot;&gt;&lt;tt&gt;dirName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#absoluteFilePath(java.lang.String)&quot;&gt;&lt;tt&gt;absoluteFilePath&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String canonicalPath()" doc="/**
&lt;p&gt;Returns the canonical path, i.e&amp;#x2e; a path without symbolic links or redundant &amp;quot;.&amp;quot; or &amp;quot;..&amp;quot; elements.&lt;/p&gt;
&lt;p&gt;On systems that do not have symbolic links this function will always return the same string that &lt;a href=&quot;QDir.html#absolutePath()&quot;&gt;&lt;tt&gt;absolutePath&lt;/tt&gt;&lt;/a&gt; returns. If the canonical path does not exist (normally due to dangling symbolic links) &lt;a href=&quot;QDir.html#canonicalPath()&quot;&gt;&lt;tt&gt;canonicalPath&lt;/tt&gt;&lt;/a&gt; returns an empty string.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QString bin = &amp;quot;/local/bin&amp;quot;;         &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; where /local/bin is a symlink to /usr/bin
    QDir binDir(bin);
    QString canonicalBin = binDir.canonicalPath();
&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; canonicalBin now equals &amp;quot;/usr/bin&amp;quot;

    QString ls = &amp;quot;/local/bin/ls&amp;quot;;       &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; where ls is the executable &amp;quot;ls&amp;quot;
    QDir lsDir(ls);
    QString canonicalLs = lsDir.canonicalPath();
&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; canonicalLS now equals &amp;quot;/usr/bin/ls&amp;quot;.&lt;/pre&gt;

@see &lt;a href=&quot;QDir.html#path()&quot;&gt;&lt;tt&gt;path&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#absolutePath()&quot;&gt;&lt;tt&gt;absolutePath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#exists()&quot;&gt;&lt;tt&gt;exists&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#cleanPath(java.lang.String)&quot;&gt;&lt;tt&gt;cleanPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#dirName()&quot;&gt;&lt;tt&gt;dirName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#absoluteFilePath(java.lang.String)&quot;&gt;&lt;tt&gt;absoluteFilePath&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean cd(java.lang.String dirName)" doc="/**
&lt;p&gt;Changes the &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt;'s directory to &lt;tt&gt;dirName&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Returns true if the new directory exists and is readable; otherwise returns false. Note that the logical &lt;a href=&quot;QDir.html#cd(java.lang.String)&quot;&gt;&lt;tt&gt;cd&lt;/tt&gt;&lt;/a&gt; operation is not performed if the new directory does not exist.&lt;/p&gt;
&lt;p&gt;Calling cd(&amp;quot;..&amp;quot;) is equivalent to calling &lt;a href=&quot;QDir.html#cdUp()&quot;&gt;&lt;tt&gt;cdUp&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#cdUp()&quot;&gt;&lt;tt&gt;cdUp&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#isReadable()&quot;&gt;&lt;tt&gt;isReadable&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#exists()&quot;&gt;&lt;tt&gt;exists&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#path()&quot;&gt;&lt;tt&gt;path&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean cdUp()" doc="/**
&lt;p&gt;Changes directory by moving one directory up from the &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt;'s current directory.&lt;/p&gt;
&lt;p&gt;Returns true if the new directory exists and is readable; otherwise returns false. Note that the logical &lt;a href=&quot;QDir.html#cdUp()&quot;&gt;&lt;tt&gt;cdUp&lt;/tt&gt;&lt;/a&gt; operation is not performed if the new directory does not exist.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#cd(java.lang.String)&quot;&gt;&lt;tt&gt;cd&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#isReadable()&quot;&gt;&lt;tt&gt;isReadable&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#exists()&quot;&gt;&lt;tt&gt;exists&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#path()&quot;&gt;&lt;tt&gt;path&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int count()" doc="/**
&lt;p&gt;Returns the total number of directories and files in the directory.&lt;/p&gt;
&lt;p&gt;Equivalent to &lt;a href=&quot;QDir.html#entryList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryList&lt;/tt&gt;&lt;/a&gt;.&lt;a href=&quot;QDir.html#count()&quot;&gt;&lt;tt&gt;count&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;tt&gt;operator[]&lt;/tt&gt;
@see &lt;a href=&quot;QDir.html#entryList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryList&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String dirName()" doc="/**
&lt;p&gt;Returns the name of the directory; this is &lt;i&gt;not&lt;/i&gt; the same as the path, e.g&amp;#x2e; a directory with the name &amp;quot;mail&amp;quot;, might have the path &amp;quot;/var/spool/mail&amp;quot;. If the directory has no name (e.g&amp;#x2e; it is the root directory) an empty string is returned.&lt;/p&gt;
&lt;p&gt;No check is made to ensure that a directory with this name actually exists; but see &lt;a href=&quot;QDir.html#exists()&quot;&gt;&lt;tt&gt;exists&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#path()&quot;&gt;&lt;tt&gt;path&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#filePath(java.lang.String)&quot;&gt;&lt;tt&gt;filePath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#absolutePath()&quot;&gt;&lt;tt&gt;absolutePath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#absoluteFilePath(java.lang.String)&quot;&gt;&lt;tt&gt;absoluteFilePath&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.core.QFileInfo&gt; entryInfoList(java.util.List&lt;java.lang.String&gt; nameFilters, com.trolltech.qt.core.QDir.Filters filters, com.trolltech.qt.core.QDir.SortFlags sort)" doc="/**
&lt;p&gt;Returns a list of &lt;a href=&quot;QFileInfo.html&quot;&gt;&lt;tt&gt;QFileInfo&lt;/tt&gt;&lt;/a&gt; objects for all the files and directories in the directory, ordered according to the name and attribute filters previously set with &lt;a href=&quot;QDir.html#setNameFilters(java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;setNameFilters&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDir.html#setFilter(com.trolltech.qt.core.QDir.Filters)&quot;&gt;&lt;tt&gt;setFilter&lt;/tt&gt;&lt;/a&gt;, and sorted according to the flags set with &lt;a href=&quot;QDir.html#setSorting(com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;setSorting&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The name filter, file attribute filter, and sorting specification can be overridden using the &lt;tt&gt;nameFilters&lt;/tt&gt;, &lt;tt&gt;filters&lt;/tt&gt;, and &lt;tt&gt;sort&lt;/tt&gt; arguments.&lt;/p&gt;
&lt;p&gt;Returns an empty list if the directory is unreadable, does not exist, or if nothing matches the specification.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#entryList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryList&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#setNameFilters(java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;setNameFilters&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#setSorting(com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;setSorting&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#setFilter(com.trolltech.qt.core.QDir.Filters)&quot;&gt;&lt;tt&gt;setFilter&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#isReadable()&quot;&gt;&lt;tt&gt;isReadable&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#exists()&quot;&gt;&lt;tt&gt;exists&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.core.QFileInfo&gt; entryInfoList(java.util.List&lt;java.lang.String&gt; nameFilters, com.trolltech.qt.core.QDir.Filters filters)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDir.html#entryInfoList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryInfoList&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;nameFilters&lt;/tt&gt;, &lt;tt&gt;filters&lt;/tt&gt;, NoSort). */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.core.QFileInfo&gt; entryInfoList(java.util.List&lt;java.lang.String&gt; nameFilters)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDir.html#entryInfoList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryInfoList&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;nameFilters&lt;/tt&gt;, NoFilter, NoSort). */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.core.QFileInfo&gt; entryInfoList(com.trolltech.qt.core.QDir.Filters filters, com.trolltech.qt.core.QDir.SortFlags sort)" doc="/**
&lt;p&gt;Returns a list of &lt;a href=&quot;QFileInfo.html&quot;&gt;&lt;tt&gt;QFileInfo&lt;/tt&gt;&lt;/a&gt; objects for all the files and directories in the directory, ordered according to the name and attribute filters previously set with &lt;a href=&quot;QDir.html#setNameFilters(java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;setNameFilters&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDir.html#setFilter(com.trolltech.qt.core.QDir.Filters)&quot;&gt;&lt;tt&gt;setFilter&lt;/tt&gt;&lt;/a&gt;, and sorted according to the flags set with &lt;a href=&quot;QDir.html#setSorting(com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;setSorting&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The attribute filter and sorting specifications can be overridden using the &lt;tt&gt;filters&lt;/tt&gt; and &lt;tt&gt;sort&lt;/tt&gt; arguments.&lt;/p&gt;
&lt;p&gt;Returns an empty list if the directory is unreadable, does not exist, or if nothing matches the specification.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#entryList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryList&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#setNameFilters(java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;setNameFilters&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#setSorting(com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;setSorting&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#setFilter(com.trolltech.qt.core.QDir.Filters)&quot;&gt;&lt;tt&gt;setFilter&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#isReadable()&quot;&gt;&lt;tt&gt;isReadable&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#exists()&quot;&gt;&lt;tt&gt;exists&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.core.QFileInfo&gt; entryInfoList(com.trolltech.qt.core.QDir.Filters filters)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDir.html#entryInfoList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryInfoList&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;filters&lt;/tt&gt;, NoSort). */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.core.QFileInfo&gt; entryInfoList()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDir.html#entryInfoList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryInfoList&lt;/tt&gt;&lt;/a&gt;(NoFilter, NoSort). */"/>
    <method name="public final java.util.List&lt;java.lang.String&gt; entryList(java.util.List&lt;java.lang.String&gt; nameFilters, com.trolltech.qt.core.QDir.Filters filters, com.trolltech.qt.core.QDir.SortFlags sort)" doc="/**
&lt;p&gt;Returns a list of the names of all the files and directories in the directory, ordered according to the name and attribute filters previously set with &lt;a href=&quot;QDir.html#setNameFilters(java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;setNameFilters&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDir.html#setFilter(com.trolltech.qt.core.QDir.Filters)&quot;&gt;&lt;tt&gt;setFilter&lt;/tt&gt;&lt;/a&gt;, and sorted according to the flags set with &lt;a href=&quot;QDir.html#setSorting(com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;setSorting&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The name filter, file attribute filter, and sorting specification can be overridden using the &lt;tt&gt;nameFilters&lt;/tt&gt;, &lt;tt&gt;filters&lt;/tt&gt;, and &lt;tt&gt;sort&lt;/tt&gt; arguments.&lt;/p&gt;
&lt;p&gt;Returns an empty list if the directory is unreadable, does not exist, or if nothing matches the specification.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#entryInfoList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryInfoList&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#setNameFilters(java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;setNameFilters&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#setSorting(com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;setSorting&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#setFilter(com.trolltech.qt.core.QDir.Filters)&quot;&gt;&lt;tt&gt;setFilter&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;java.lang.String&gt; entryList(java.util.List&lt;java.lang.String&gt; nameFilters, com.trolltech.qt.core.QDir.Filters filters)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDir.html#entryList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryList&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;nameFilters&lt;/tt&gt;, &lt;tt&gt;filters&lt;/tt&gt;, NoSort). */"/>
    <method name="public final java.util.List&lt;java.lang.String&gt; entryList(java.util.List&lt;java.lang.String&gt; nameFilters)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDir.html#entryList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryList&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;nameFilters&lt;/tt&gt;, NoFilter, NoSort). */"/>
    <method name="public final java.util.List&lt;java.lang.String&gt; entryList(com.trolltech.qt.core.QDir.Filters filters, com.trolltech.qt.core.QDir.SortFlags sort)" doc="/**
&lt;p&gt;Returns a list of the names of all the files and directories in the directory, ordered according to the name and attribute filters previously set with &lt;a href=&quot;QDir.html#setNameFilters(java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;setNameFilters&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDir.html#setFilter(com.trolltech.qt.core.QDir.Filters)&quot;&gt;&lt;tt&gt;setFilter&lt;/tt&gt;&lt;/a&gt;, and sorted according to the flags set with &lt;a href=&quot;QDir.html#setSorting(com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;setSorting&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The attribute filter and sorting specifications can be overridden using the &lt;tt&gt;filters&lt;/tt&gt; and &lt;tt&gt;sort&lt;/tt&gt; arguments.&lt;/p&gt;
&lt;p&gt;Returns an empty list if the directory is unreadable, does not exist, or if nothing matches the specification.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#entryInfoList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryInfoList&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#setNameFilters(java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;setNameFilters&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#setSorting(com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;setSorting&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#setFilter(com.trolltech.qt.core.QDir.Filters)&quot;&gt;&lt;tt&gt;setFilter&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;java.lang.String&gt; entryList(com.trolltech.qt.core.QDir.Filters filters)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDir.html#entryList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryList&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;filters&lt;/tt&gt;, NoSort). */"/>
    <method name="public final java.util.List&lt;java.lang.String&gt; entryList()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDir.html#entryList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryList&lt;/tt&gt;&lt;/a&gt;(NoFilter, NoSort). */"/>
    <method name="public final boolean exists(java.lang.String name)" doc="/**
&lt;p&gt;Returns true if the file called &lt;tt&gt;name&lt;/tt&gt; exists; otherwise returns false. Unless &lt;tt&gt;name&lt;/tt&gt; contains an absolute file path, the file name is assumed to be relative to the current directory.&lt;/p&gt;

@see &lt;tt&gt;QFileInfo::exists&lt;/tt&gt;
@see &lt;tt&gt;QFile::exists&lt;/tt&gt; */"/>
    <method name="public final boolean exists()" doc="/**
&lt;p&gt;Returns true if the &lt;i&gt;directory&lt;/i&gt; exists; otherwise returns false. (If a file with the same name is found this function will return false).&lt;/p&gt;

@see &lt;tt&gt;QFileInfo::exists&lt;/tt&gt;
@see &lt;tt&gt;QFile::exists&lt;/tt&gt; */"/>
    <method name="public final java.lang.String filePath(java.lang.String fileName)" doc="/**
&lt;p&gt;Returns the path name of a file in the directory. Does &lt;i&gt;not&lt;/i&gt; check if the file actually exists in the directory; but see &lt;a href=&quot;QDir.html#exists()&quot;&gt;&lt;tt&gt;exists&lt;/tt&gt;&lt;/a&gt;. If the &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt; is relative the returned path name will also be relative. Redundant multiple separators or &amp;quot;.&amp;quot; and &amp;quot;..&amp;quot; directories in &lt;tt&gt;fileName&lt;/tt&gt; are not removed (see &lt;a href=&quot;QDir.html#cleanPath(java.lang.String)&quot;&gt;&lt;tt&gt;cleanPath&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#dirName()&quot;&gt;&lt;tt&gt;dirName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#absoluteFilePath(java.lang.String)&quot;&gt;&lt;tt&gt;absoluteFilePath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#isRelative()&quot;&gt;&lt;tt&gt;isRelative&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#canonicalPath()&quot;&gt;&lt;tt&gt;canonicalPath&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QDir.Filters filter()" doc="/**
&lt;p&gt;Returns the value set by &lt;a href=&quot;QDir.html#setFilter(com.trolltech.qt.core.QDir.Filters)&quot;&gt;&lt;tt&gt;setFilter&lt;/tt&gt;&lt;/a&gt;&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#setFilter(com.trolltech.qt.core.QDir.Filters)&quot;&gt;&lt;tt&gt;setFilter&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isAbsolute()" doc="/**
&lt;p&gt;Returns true if the directory's path is absolute; otherwise returns false. See &lt;a href=&quot;QDir.html#isAbsolutePath(java.lang.String)&quot;&gt;&lt;tt&gt;isAbsolutePath&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#isRelative()&quot;&gt;&lt;tt&gt;isRelative&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#makeAbsolute()&quot;&gt;&lt;tt&gt;makeAbsolute&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#cleanPath(java.lang.String)&quot;&gt;&lt;tt&gt;cleanPath&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isReadable()" doc="/**
&lt;p&gt;Returns true if the directory is readable &lt;i&gt;and&lt;/i&gt; we can open files by name; otherwise returns false.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; A false value from this function is not a guarantee that files in the directory are not accessible.&lt;/p&gt;

@see &lt;tt&gt;QFileInfo::isReadable&lt;/tt&gt; */"/>
    <method name="public final boolean isRelative()" doc="/**
&lt;p&gt;Returns true if the directory path is relative; otherwise returns false. (Under Unix a path is relative if it does not start with a &amp;quot;/&amp;quot;).&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#makeAbsolute()&quot;&gt;&lt;tt&gt;makeAbsolute&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#isAbsolute()&quot;&gt;&lt;tt&gt;isAbsolute&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#isAbsolutePath(java.lang.String)&quot;&gt;&lt;tt&gt;isAbsolutePath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#cleanPath(java.lang.String)&quot;&gt;&lt;tt&gt;cleanPath&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isRoot()" doc="/**
&lt;p&gt;Returns true if the directory is the root directory; otherwise returns false.&lt;/p&gt;
&lt;p&gt;Note: If the directory is a symbolic link to the root directory this function returns false. If you want to test for this use &lt;a href=&quot;QDir.html#canonicalPath()&quot;&gt;&lt;tt&gt;canonicalPath&lt;/tt&gt;&lt;/a&gt;, e.g&amp;#x2e;&lt;/p&gt;
&lt;pre&gt;    QDir dir(&amp;quot;/tmp/root_link&amp;quot;);
    dir = dir.canonicalPath();
    if (dir.isRoot())
        qWarning(&amp;quot;It is a root link&amp;quot;);&lt;/pre&gt;

@see &lt;a href=&quot;QDir.html#root()&quot;&gt;&lt;tt&gt;root&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#rootPath()&quot;&gt;&lt;tt&gt;rootPath&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean makeAbsolute()" doc="/**
&lt;p&gt;Converts the directory path to an absolute path. If it is already absolute nothing happens. Returns true if the conversion succeeded; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#isAbsolute()&quot;&gt;&lt;tt&gt;isAbsolute&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#isAbsolutePath(java.lang.String)&quot;&gt;&lt;tt&gt;isAbsolutePath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#isRelative()&quot;&gt;&lt;tt&gt;isRelative&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#cleanPath(java.lang.String)&quot;&gt;&lt;tt&gt;cleanPath&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean mkdir(java.lang.String dirName)" doc="/**
&lt;p&gt;Creates a sub-directory called &lt;tt&gt;dirName&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Returns true on success; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#rmdir(java.lang.String)&quot;&gt;&lt;tt&gt;rmdir&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean mkpath(java.lang.String dirPath)" doc="/**
&lt;p&gt;Creates the directory path &lt;tt&gt;dirPath&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The function will create all parent directories necessary to create the directory.&lt;/p&gt;
&lt;p&gt;Returns true if successful; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#rmpath(java.lang.String)&quot;&gt;&lt;tt&gt;rmpath&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;java.lang.String&gt; nameFilters()" doc="/**
&lt;p&gt;Returns the string list set by &lt;a href=&quot;QDir.html#setNameFilters(java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;setNameFilters&lt;/tt&gt;&lt;/a&gt;&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#setNameFilters(java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;setNameFilters&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String path()" doc="/**
&lt;p&gt;Returns the path. This may contain symbolic links, but never contains redundant &amp;quot;.&amp;quot;, &amp;quot;..&amp;quot; or multiple separators.&lt;/p&gt;
&lt;p&gt;The returned path can be either absolute or relative (see &lt;a href=&quot;QDir.html#setPath(java.lang.String)&quot;&gt;&lt;tt&gt;setPath&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#setPath(java.lang.String)&quot;&gt;&lt;tt&gt;setPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#absolutePath()&quot;&gt;&lt;tt&gt;absolutePath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#exists()&quot;&gt;&lt;tt&gt;exists&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#cleanPath(java.lang.String)&quot;&gt;&lt;tt&gt;cleanPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#dirName()&quot;&gt;&lt;tt&gt;dirName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#absoluteFilePath(java.lang.String)&quot;&gt;&lt;tt&gt;absoluteFilePath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#toNativeSeparators(java.lang.String)&quot;&gt;&lt;tt&gt;toNativeSeparators&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#makeAbsolute()&quot;&gt;&lt;tt&gt;makeAbsolute&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void refresh()" doc="/**
&lt;p&gt;Refreshes the directory information.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String relativeFilePath(java.lang.String fileName)" doc="/**
&lt;p&gt;Returns the path to &lt;tt&gt;fileName&lt;/tt&gt; relative to the directory.&lt;/p&gt;
&lt;pre&gt;    QDir dir(&amp;quot;/home/bob&amp;quot;);
    QString s;

    s = dir.relativeFilePath(&amp;quot;images/file.jpg&amp;quot;);     &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; s is &amp;quot;images/file.jpg&amp;quot;
    s = dir.relativeFilePath(&amp;quot;/home/mary/file.txt&amp;quot;); &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; s is &amp;quot;../mary/file.txt&amp;quot;&lt;/pre&gt;

@see &lt;a href=&quot;QDir.html#absoluteFilePath(java.lang.String)&quot;&gt;&lt;tt&gt;absoluteFilePath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#filePath(java.lang.String)&quot;&gt;&lt;tt&gt;filePath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#canonicalPath()&quot;&gt;&lt;tt&gt;canonicalPath&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean remove(java.lang.String fileName)" doc="/**
&lt;p&gt;Removes the file, &lt;tt&gt;fileName&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Returns true if the file is removed successfully; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean rename(java.lang.String oldName, java.lang.String newName)" doc="/**
&lt;p&gt;Renames a file or directory from &lt;tt&gt;oldName&lt;/tt&gt; to &lt;tt&gt;newName&lt;/tt&gt;, and returns true if successful; otherwise returns false.&lt;/p&gt;
&lt;p&gt;On most file systems, &lt;a href=&quot;QDir.html#rename(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;rename&lt;/tt&gt;&lt;/a&gt; fails only if &lt;tt&gt;oldName&lt;/tt&gt; does not exist, if &lt;tt&gt;newName&lt;/tt&gt; and &lt;tt&gt;oldName&lt;/tt&gt; are not on the same partition or if a file with the new name already exists. However, there are also other reasons why &lt;a href=&quot;QDir.html#rename(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;rename&lt;/tt&gt;&lt;/a&gt; can fail. For example, on at least one file system &lt;a href=&quot;QDir.html#rename(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;rename&lt;/tt&gt;&lt;/a&gt; fails if &lt;tt&gt;newName&lt;/tt&gt; points to an open file.&lt;/p&gt;
 */"/>
    <method name="public final boolean rmdir(java.lang.String dirName)" doc="/**
&lt;p&gt;Removes the directory specified by &lt;tt&gt;dirName&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The directory must be empty for &lt;a href=&quot;QDir.html#rmdir(java.lang.String)&quot;&gt;&lt;tt&gt;rmdir&lt;/tt&gt;&lt;/a&gt; to succeed.&lt;/p&gt;
&lt;p&gt;Returns true if successful; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#mkdir(java.lang.String)&quot;&gt;&lt;tt&gt;mkdir&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean rmpath(java.lang.String dirPath)" doc="/**
&lt;p&gt;Removes the directory path &lt;tt&gt;dirPath&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The function will remove all parent directories in &lt;tt&gt;dirPath&lt;/tt&gt;, provided that they are empty. This is the opposite of mkpath(dirPath).&lt;/p&gt;
&lt;p&gt;Returns true if successful; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#mkpath(java.lang.String)&quot;&gt;&lt;tt&gt;mkpath&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFilter(com.trolltech.qt.core.QDir.Filters filter)" doc="/**
&lt;p&gt;Sets the filter used by &lt;a href=&quot;QDir.html#entryList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryList&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDir.html#entryInfoList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryInfoList&lt;/tt&gt;&lt;/a&gt; to &lt;tt&gt;filter&lt;/tt&gt;. The filter is used to specify the kind of files that should be returned by &lt;a href=&quot;QDir.html#entryList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryList&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDir.html#entryInfoList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryInfoList&lt;/tt&gt;&lt;/a&gt;. See &lt;tt&gt;QDir::Filter&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#filter()&quot;&gt;&lt;tt&gt;filter&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#setNameFilters(java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;setNameFilters&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setNameFilters(java.util.List&lt;java.lang.String&gt; nameFilters)" doc="/**
&lt;p&gt;Sets the name filters used by &lt;a href=&quot;QDir.html#entryList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryList&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDir.html#entryInfoList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryInfoList&lt;/tt&gt;&lt;/a&gt; to the list of filters specified by &lt;tt&gt;nameFilters&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Each name filter is a wildcard (globbing) filter that understands &lt;tt&gt;*&lt;/tt&gt; and &lt;tt&gt;?&lt;/tt&gt; wildcards. (See &lt;a href=&quot;QRegExp.html#qregexp-wildcard-matching&quot;&gt;&lt;tt&gt;QRegExp wildcard matching&lt;/tt&gt;&lt;/a&gt;.)&lt;/p&gt;
&lt;p&gt;For example, the following code sets three name filters on a &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt; to ensure that only files with extensions typically used for C++ source files are listed:&lt;/p&gt;
&lt;pre&gt;        QStringList filters;
        filters &amp;lt;&amp;lt; &amp;quot;*.cpp&amp;quot; &amp;lt;&amp;lt; &amp;quot;*.cxx&amp;quot; &amp;lt;&amp;lt; &amp;quot;*.cc&amp;quot;;
        dir.setNameFilters(filters);&lt;/pre&gt;

@see &lt;a href=&quot;QDir.html#nameFilters()&quot;&gt;&lt;tt&gt;nameFilters&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#setFilter(com.trolltech.qt.core.QDir.Filters)&quot;&gt;&lt;tt&gt;setFilter&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setPath(java.lang.String path)" doc="/**
&lt;p&gt;Sets the path of the directory to &lt;tt&gt;path&lt;/tt&gt;. The path is cleaned of redundant &amp;quot;.&amp;quot;, &amp;quot;..&amp;quot; and of multiple separators. No check is made to see whether a directory with this path actually exists; but you can check for yourself using &lt;a href=&quot;QDir.html#exists()&quot;&gt;&lt;tt&gt;exists&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The path can be either absolute or relative. Absolute paths begin with the directory separator &amp;quot;/&amp;quot; (optionally preceded by a drive specification under Windows). Relative file names begin with a directory name or a file name and specify a path relative to the current directory. An example of an absolute path is the string &amp;quot;/tmp/quartz&amp;quot;, a relative path might look like &amp;quot;src/fatlib&amp;quot;.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#path()&quot;&gt;&lt;tt&gt;path&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#absolutePath()&quot;&gt;&lt;tt&gt;absolutePath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#exists()&quot;&gt;&lt;tt&gt;exists&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#cleanPath(java.lang.String)&quot;&gt;&lt;tt&gt;cleanPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#dirName()&quot;&gt;&lt;tt&gt;dirName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#absoluteFilePath(java.lang.String)&quot;&gt;&lt;tt&gt;absoluteFilePath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#isRelative()&quot;&gt;&lt;tt&gt;isRelative&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#makeAbsolute()&quot;&gt;&lt;tt&gt;makeAbsolute&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setSorting(com.trolltech.qt.core.QDir.SortFlags sort)" doc="/**
&lt;p&gt;Sets the sort order used by &lt;a href=&quot;QDir.html#entryList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryList&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDir.html#entryInfoList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryInfoList&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;sort&lt;/tt&gt; is specified by OR-ing values from the enum &lt;tt&gt;QDir::SortFlag&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#sorting()&quot;&gt;&lt;tt&gt;sorting&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#SortFlag-enum&quot;&gt;&lt;tt&gt;SortFlag&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QDir.SortFlags sorting()" doc="/**
&lt;p&gt;Returns the value set by &lt;a href=&quot;QDir.html#setSorting(com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;setSorting&lt;/tt&gt;&lt;/a&gt;&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#setSorting(com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;setSorting&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#SortFlag-enum&quot;&gt;&lt;tt&gt;SortFlag&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static void addSearchPath(java.lang.String prefix, java.lang.String path)" doc="/**
&lt;p&gt;Adds &lt;tt&gt;path&lt;/tt&gt; to the search path for &lt;tt&gt;prefix&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#setSearchPaths(java.lang.String, java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;setSearchPaths&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static java.lang.String cleanPath(java.lang.String path)" doc="/**
&lt;p&gt;Removes all multiple directory separators &amp;quot;/&amp;quot; and resolves any &amp;quot;.&amp;quot;s or &amp;quot;..&amp;quot;s found in the path, &lt;tt&gt;path&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Symbolic links are kept. This function does not return the canonical path, but rather the simplest version of the input. For example, &amp;quot;./local&amp;quot; becomes &amp;quot;local&amp;quot;, &amp;quot;local/../bin&amp;quot; becomes &amp;quot;bin&amp;quot; and &amp;quot;/local/usr/../bin&amp;quot; becomes &amp;quot;/local/bin&amp;quot;.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#absolutePath()&quot;&gt;&lt;tt&gt;absolutePath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#canonicalPath()&quot;&gt;&lt;tt&gt;canonicalPath&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static com.trolltech.qt.core.QDir current()" doc="/**
&lt;p&gt;Returns the application's current directory.&lt;/p&gt;
&lt;p&gt;The directory is constructed using the absolute path of the current directory, ensuring that its &lt;a href=&quot;QDir.html#path()&quot;&gt;&lt;tt&gt;path&lt;/tt&gt;&lt;/a&gt; will be the same as its &lt;a href=&quot;QDir.html#absolutePath()&quot;&gt;&lt;tt&gt;absolutePath&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#setCurrent(java.lang.String)&quot;&gt;&lt;tt&gt;setCurrent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#currentPath()&quot;&gt;&lt;tt&gt;currentPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#home()&quot;&gt;&lt;tt&gt;home&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#root()&quot;&gt;&lt;tt&gt;root&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#temp()&quot;&gt;&lt;tt&gt;temp&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static java.lang.String currentPath()" doc="/**
&lt;p&gt;Returns the absolute path of the application's current directory.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#current()&quot;&gt;&lt;tt&gt;current&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#homePath()&quot;&gt;&lt;tt&gt;homePath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#rootPath()&quot;&gt;&lt;tt&gt;rootPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#tempPath()&quot;&gt;&lt;tt&gt;tempPath&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static java.util.List&lt;com.trolltech.qt.core.QFileInfo&gt; drives()" doc="/**
&lt;p&gt;Returns a list of the root directories on this system.&lt;/p&gt;
&lt;p&gt;On Windows this returns a list of &lt;a href=&quot;QFileInfo.html&quot;&gt;&lt;tt&gt;QFileInfo&lt;/tt&gt;&lt;/a&gt; objects containing &amp;quot;C:/&amp;quot;, &amp;quot;D:/&amp;quot;, etc. On other operating systems, it returns a list containing just one root directory (i.e&amp;#x2e; &amp;quot;/&amp;quot;).&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#root()&quot;&gt;&lt;tt&gt;root&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#rootPath()&quot;&gt;&lt;tt&gt;rootPath&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static java.lang.String fromNativeSeparators(java.lang.String pathName)" doc="/**
&lt;p&gt;Returns &lt;tt&gt;pathName&lt;/tt&gt; using '/' as file separator. On Windows, for instance, &lt;a href=&quot;QDir.html#fromNativeSeparators(java.lang.String)&quot;&gt;&lt;tt&gt;fromNativeSeparators&lt;/tt&gt;&lt;/a&gt;(&amp;quot;c:\winnt\system32&amp;quot;) returns &amp;quot;c:/winnt/system32&amp;quot;.&lt;/p&gt;
&lt;p&gt;The returned string may be the same as the argument on some operating systems, for example on Unix.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#toNativeSeparators(java.lang.String)&quot;&gt;&lt;tt&gt;toNativeSeparators&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#separator()&quot;&gt;&lt;tt&gt;separator&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static com.trolltech.qt.core.QDir home()" doc="/**
&lt;p&gt;Returns the user's home directory.&lt;/p&gt;
&lt;p&gt;The directory is constructed using the absolute path of the home directory, ensuring that its &lt;a href=&quot;QDir.html#path()&quot;&gt;&lt;tt&gt;path&lt;/tt&gt;&lt;/a&gt; will be the same as its &lt;a href=&quot;QDir.html#absolutePath()&quot;&gt;&lt;tt&gt;absolutePath&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;See &lt;a href=&quot;QDir.html#homePath()&quot;&gt;&lt;tt&gt;homePath&lt;/tt&gt;&lt;/a&gt; for details.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#drives()&quot;&gt;&lt;tt&gt;drives&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#current()&quot;&gt;&lt;tt&gt;current&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#root()&quot;&gt;&lt;tt&gt;root&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#temp()&quot;&gt;&lt;tt&gt;temp&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static java.lang.String homePath()" doc="/**
&lt;p&gt;Returns the absolute path of the user's home directory.&lt;/p&gt;
&lt;p&gt;Under Windows this function will return the directory of the current user's profile. Typically, this is:&lt;/p&gt;
&lt;pre&gt;    C:/Documents and Settings/Username&lt;/pre&gt;
&lt;p&gt;Use the &lt;a href=&quot;QDir.html#toNativeSeparators(java.lang.String)&quot;&gt;&lt;tt&gt;toNativeSeparators&lt;/tt&gt;&lt;/a&gt; function to convert the separators to the ones that are appropriate for the underlying operating system.&lt;/p&gt;
&lt;p&gt;If the directory of the current user's profile does not exist or cannot be retrieved, the following alternatives will be checked (in the given order) until an existing and available path is found:&lt;/p&gt;
&lt;ol type=&quot;1&quot;&gt;
&lt;li&gt;The path specified by the &lt;tt&gt;USERPROFILE&lt;/tt&gt; environment variable.&lt;/li&gt;
&lt;li&gt;The path formed by concatenating the &lt;tt&gt;HOMEDRIVE&lt;/tt&gt; and &lt;tt&gt;HOMEPATH&lt;/tt&gt; environment variables.&lt;/li&gt;
&lt;li&gt;The path specified by the &lt;tt&gt;HOME&lt;/tt&gt; environment variable.&lt;/li&gt;
&lt;li&gt;The path returned by the &lt;a href=&quot;QDir.html#rootPath()&quot;&gt;&lt;tt&gt;rootPath&lt;/tt&gt;&lt;/a&gt; function (which uses the &lt;tt&gt;SystemDrive&lt;/tt&gt; environment variable)&lt;/li&gt;
&lt;li&gt;The &lt;tt&gt;C:/&lt;/tt&gt; directory.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Under non-Windows operating systems the &lt;tt&gt;HOME&lt;/tt&gt; environment variable is used if it exists, otherwise the path returned by the &lt;a href=&quot;QDir.html#rootPath()&quot;&gt;&lt;tt&gt;rootPath&lt;/tt&gt;&lt;/a&gt; function is used.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#home()&quot;&gt;&lt;tt&gt;home&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#currentPath()&quot;&gt;&lt;tt&gt;currentPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#rootPath()&quot;&gt;&lt;tt&gt;rootPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#tempPath()&quot;&gt;&lt;tt&gt;tempPath&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static boolean isAbsolutePath(java.lang.String path)" doc="/**
&lt;p&gt;Returns true if &lt;tt&gt;path&lt;/tt&gt; is absolute; returns false if it is relative.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#isAbsolute()&quot;&gt;&lt;tt&gt;isAbsolute&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#isRelativePath(java.lang.String)&quot;&gt;&lt;tt&gt;isRelativePath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#makeAbsolute()&quot;&gt;&lt;tt&gt;makeAbsolute&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#cleanPath(java.lang.String)&quot;&gt;&lt;tt&gt;cleanPath&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static boolean isRelativePath(java.lang.String path)" doc="/**
&lt;p&gt;Returns true if &lt;tt&gt;path&lt;/tt&gt; is relative; returns false if it is absolute.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#isRelative()&quot;&gt;&lt;tt&gt;isRelative&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#isAbsolutePath(java.lang.String)&quot;&gt;&lt;tt&gt;isAbsolutePath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#makeAbsolute()&quot;&gt;&lt;tt&gt;makeAbsolute&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static boolean match(java.util.List&lt;java.lang.String&gt; filters, java.lang.String fileName)" doc="/**
&lt;p&gt;Returns true if the &lt;tt&gt;fileName&lt;/tt&gt; matches any of the wildcard (glob) patterns in the list of &lt;tt&gt;filters&lt;/tt&gt;; otherwise returns false. The matching is case insensitive.&lt;/p&gt;

@see &lt;a href=&quot;QRegExp.html#qregexp-wildcard-matching&quot;&gt;&lt;tt&gt;QRegExp wildcard matching&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QRegExp::exactMatch&lt;/tt&gt;
@see &lt;a href=&quot;QDir.html#entryList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryList&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#entryInfoList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryInfoList&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static boolean match(java.lang.String filter, java.lang.String fileName)" doc="/**
&lt;p&gt;Returns true if the &lt;tt&gt;fileName&lt;/tt&gt; matches the wildcard (glob) pattern &lt;tt&gt;filter&lt;/tt&gt;; otherwise returns false. The &lt;tt&gt;filter&lt;/tt&gt; may contain multiple patterns separated by spaces or semicolons. The matching is case insensitive.&lt;/p&gt;

@see &lt;a href=&quot;QRegExp.html#qregexp-wildcard-matching&quot;&gt;&lt;tt&gt;QRegExp wildcard matching&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QRegExp::exactMatch&lt;/tt&gt;
@see &lt;a href=&quot;QDir.html#entryList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryList&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#entryInfoList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryInfoList&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static java.util.List&lt;java.lang.String&gt; nameFiltersFromString(java.lang.String nameFilter)" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="public native static com.trolltech.qt.core.QDir root()" doc="/**
&lt;p&gt;Returns the root directory.&lt;/p&gt;
&lt;p&gt;The directory is constructed using the absolute path of the root directory, ensuring that its &lt;a href=&quot;QDir.html#path()&quot;&gt;&lt;tt&gt;path&lt;/tt&gt;&lt;/a&gt; will be the same as its &lt;a href=&quot;QDir.html#absolutePath()&quot;&gt;&lt;tt&gt;absolutePath&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;See &lt;a href=&quot;QDir.html#rootPath()&quot;&gt;&lt;tt&gt;rootPath&lt;/tt&gt;&lt;/a&gt; for details.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#drives()&quot;&gt;&lt;tt&gt;drives&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#current()&quot;&gt;&lt;tt&gt;current&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#home()&quot;&gt;&lt;tt&gt;home&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#temp()&quot;&gt;&lt;tt&gt;temp&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static java.lang.String rootPath()" doc="/**
&lt;p&gt;Returns the absolute path of the root directory.&lt;/p&gt;
&lt;p&gt;For Unix operating systems this returns &amp;quot;/&amp;quot;. For Windows file systems this normally returns &amp;quot;c:/&amp;quot;.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#root()&quot;&gt;&lt;tt&gt;root&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#drives()&quot;&gt;&lt;tt&gt;drives&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#currentPath()&quot;&gt;&lt;tt&gt;currentPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#homePath()&quot;&gt;&lt;tt&gt;homePath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#tempPath()&quot;&gt;&lt;tt&gt;tempPath&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static java.util.List&lt;java.lang.String&gt; searchPaths(java.lang.String prefix)" doc="/**
&lt;p&gt;Returns the search paths for &lt;tt&gt;prefix&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#setSearchPaths(java.lang.String, java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;setSearchPaths&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#addSearchPath(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;addSearchPath&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static char separator()" doc="/**
&lt;p&gt;Returns the native directory separator: &amp;quot;/&amp;quot; under Unix (including Mac OS X) and &amp;quot;\&amp;quot; under Windows.&lt;/p&gt;
&lt;p&gt;You do not need to use this function to build file paths. If you always use &amp;quot;/&amp;quot;, Qt will translate your paths to conform to the underlying operating system. If you want to display paths to the user using their operating system's separator use &lt;a href=&quot;QDir.html#toNativeSeparators(java.lang.String)&quot;&gt;&lt;tt&gt;toNativeSeparators&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <method name="public native static boolean setCurrent(java.lang.String path)" doc="/**
&lt;p&gt;Sets the application's current working directory to &lt;tt&gt;path&lt;/tt&gt;. Returns true if the directory was successfully changed; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#current()&quot;&gt;&lt;tt&gt;current&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#currentPath()&quot;&gt;&lt;tt&gt;currentPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#home()&quot;&gt;&lt;tt&gt;home&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#root()&quot;&gt;&lt;tt&gt;root&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#temp()&quot;&gt;&lt;tt&gt;temp&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static void setSearchPaths(java.lang.String prefix, java.util.List&lt;java.lang.String&gt; searchPaths)" doc="/**
&lt;p&gt;Sets or replaces Qt's search paths for file names with the prefix &lt;tt&gt;prefix&lt;/tt&gt; to &lt;tt&gt;searchPaths&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;To specify a prefix for a file name, prepend the prefix followed by a single colon (e.g&amp;#x2e;, &amp;quot;images:undo.png&amp;quot;, &amp;quot;xmldocs:books.xml&amp;quot;). &lt;tt&gt;prefix&lt;/tt&gt; can only contain letters or numbers (e.g&amp;#x2e;, it cannot contain a colon, nor a slash).&lt;/p&gt;
&lt;p&gt;Qt uses this search path to locate files with a known prefix. The search path entries are tested in order, starting with the first entry.&lt;/p&gt;
&lt;pre&gt;    QDir::setSearchPaths(&amp;quot;icons&amp;quot;, QStringList(QDir::homePath() + &amp;quot;/images&amp;quot;));
    QDir::setSearchPaths(&amp;quot;docs&amp;quot;, QStringList(&amp;quot;:/embeddedDocuments&amp;quot;));
    ...
    QPixmap pixmap(&amp;quot;icons:undo.png&amp;quot;); &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; will look for undo.png in QDir::homePath() + &amp;quot;/images&amp;quot;
    QFile file(&amp;quot;docs:design.odf&amp;quot;); &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; will look in the :/embeddedDocuments resource path&lt;/pre&gt;
&lt;p&gt;File name prefix must be at least 2 characters long to avoid conflicts with Windows drive letters.&lt;/p&gt;
&lt;p&gt;Search paths may contain paths to {The Qt Resource System}.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#searchPaths(java.lang.String)&quot;&gt;&lt;tt&gt;searchPaths&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static com.trolltech.qt.core.QDir temp()" doc="/**
&lt;p&gt;Returns the system's temporary directory.&lt;/p&gt;
&lt;p&gt;The directory is constructed using the absolute path of the temporary directory, ensuring that its &lt;a href=&quot;QDir.html#path()&quot;&gt;&lt;tt&gt;path&lt;/tt&gt;&lt;/a&gt; will be the same as its &lt;a href=&quot;QDir.html#absolutePath()&quot;&gt;&lt;tt&gt;absolutePath&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;See &lt;a href=&quot;QDir.html#tempPath()&quot;&gt;&lt;tt&gt;tempPath&lt;/tt&gt;&lt;/a&gt; for details.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#drives()&quot;&gt;&lt;tt&gt;drives&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#current()&quot;&gt;&lt;tt&gt;current&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#home()&quot;&gt;&lt;tt&gt;home&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#root()&quot;&gt;&lt;tt&gt;root&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static java.lang.String tempPath()" doc="/**
&lt;p&gt;Returns the absolute path of the system's temporary directory.&lt;/p&gt;
&lt;p&gt;On Unix/Linux systems this is usually &lt;tt&gt;/tmp&lt;/tt&gt;; on Windows this is usually the path in the &lt;tt&gt;TEMP&lt;/tt&gt; or &lt;tt&gt;TMP&lt;/tt&gt; environment variable. Whether a directory separator is added to the end or not, depends on the operating system.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#temp()&quot;&gt;&lt;tt&gt;temp&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#currentPath()&quot;&gt;&lt;tt&gt;currentPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#homePath()&quot;&gt;&lt;tt&gt;homePath&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#rootPath()&quot;&gt;&lt;tt&gt;rootPath&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static java.lang.String toNativeSeparators(java.lang.String pathName)" doc="/**
&lt;p&gt;Returns &lt;tt&gt;pathName&lt;/tt&gt; with the '/' separators converted to separators that are appropriate for the underlying operating system.&lt;/p&gt;
&lt;p&gt;On Windows, &lt;a href=&quot;QDir.html#toNativeSeparators(java.lang.String)&quot;&gt;&lt;tt&gt;toNativeSeparators&lt;/tt&gt;&lt;/a&gt;(&amp;quot;c:/winnt/system32&amp;quot;) returns &amp;quot;c:\winnt\system32&amp;quot;.&lt;/p&gt;
&lt;p&gt;The returned string may be the same as the argument on some operating systems, for example on Unix.&lt;/p&gt;

@see &lt;a href=&quot;QDir.html#fromNativeSeparators(java.lang.String)&quot;&gt;&lt;tt&gt;fromNativeSeparators&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDir.html#separator()&quot;&gt;&lt;tt&gt;separator&lt;/tt&gt;&lt;/a&gt; */"/>
    <enum name="Filter" doc="/**
&lt;p&gt;This enum describes the filtering options available to &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt;; e.g&amp;#x2e; for &lt;a href=&quot;QDir.html#entryList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryList&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDir.html#entryInfoList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryInfoList&lt;/tt&gt;&lt;/a&gt;. The filter value is specified by combining values from the following list using the bitwise OR operator:&lt;/p&gt;
&lt;p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;&lt;th width=&quot;25%&quot;&gt;Constant&lt;/th&gt;&lt;th width=&quot;15%&quot;&gt;Value&lt;/th&gt;&lt;th width=&quot;60%&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Dirs&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;1&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;List directories that match the filters.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;AllDirs&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;1024&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;List all directories; i.e&amp;#x2e; don't apply the filters to directory names.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Files&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;2&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;List files only.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Drives&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;4&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;List disk drives (ignored under Unix).&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;NoSymLinks&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;8&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Do not list symbolic links (ignored by operating systems that don't support symbolic links).&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;NoDotAndDotDot&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;4096&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Do not list the special entries &amp;quot;.&amp;quot; and &amp;quot;..&amp;quot;&amp;#x2e;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;AllEntries&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;7&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;List directories, files, drives and symlinks (this does not list broken symlinks unless you specify System).&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Readable&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;16&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;List files for which the application has read access. The Readable value needs to be combined with Dirs or Files.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Writable&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;32&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;List files for which the application has write access. The Writable value needs to be combined with Dirs or Files.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Executable&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;64&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;List files for which the application has execute access. The Executable value needs to be combined with Dirs or Files.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Modified&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;128&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Only list files that have been modified (ignored under Unix).&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Hidden&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;256&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;List hidden files (on Unix, files starting with a .)&amp;#x2e;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;System&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;512&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;List system files (on Unix, FIFOs, sockets and device files)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;CaseSensitive&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;2048&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The filter should be case sensitive.&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;Functions that use Filter enum values to filter lists of files and directories will include symbolic links to files and directories unless you set the &lt;a href=&quot;QDir.html#Filter-enum&quot;&gt;&lt;tt&gt;NoSymLinks&lt;/tt&gt;&lt;/a&gt; value.&lt;/p&gt;
&lt;p&gt;A default constructed &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt; will not filter out files based on their permissions, so &lt;a href=&quot;QDir.html#entryList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryList&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDir.html#entryInfoList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryInfoList&lt;/tt&gt;&lt;/a&gt; will return all files that are readable, writable, executable, or any combination of the three. This makes the default easy to write, and at the same time useful.&lt;/p&gt;
&lt;p&gt;For example, setting the &lt;tt&gt;Readable&lt;/tt&gt;, &lt;tt&gt;Writable&lt;/tt&gt;, and &lt;tt&gt;Files&lt;/tt&gt; flags allows all files to be listed for which the application has read access, write access or both. If the &lt;tt&gt;Dirs&lt;/tt&gt; and &lt;tt&gt;Drives&lt;/tt&gt; flags are also included in this combination then all drives, directories, all files that the application can read, write, or execute, and symlinks to such files/directories can be listed.&lt;/p&gt;
&lt;p&gt;To retrieve the permissons for a directory, use the &lt;a href=&quot;QDir.html#entryInfoList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryInfoList&lt;/tt&gt;&lt;/a&gt; function to get the associated &lt;a href=&quot;QFileInfo.html&quot;&gt;&lt;tt&gt;QFileInfo&lt;/tt&gt;&lt;/a&gt; objects and then use the QFileInfo::permissons() to obtain the permissions and ownership for each file.&lt;/p&gt;
 */">
        <enum-value name="Dirs" doc="/**
&lt;p&gt;List directories that match the filters.&lt;/p&gt;
 */"/>
        <enum-value name="Files" doc="/**
&lt;p&gt;List files only.&lt;/p&gt;
 */"/>
        <enum-value name="Drives" doc="/**
&lt;p&gt;List disk drives (ignored under Unix).&lt;/p&gt;
 */"/>
        <enum-value name="NoSymLinks" doc="/**
&lt;p&gt;Do not list symbolic links (ignored by operating systems that don't support symbolic links).&lt;/p&gt;
 */"/>
        <enum-value name="AllEntries" doc="/**
&lt;p&gt;List directories, files, drives and symlinks (this does not list broken symlinks unless you specify System).&lt;/p&gt;
 */"/>
        <enum-value name="TypeMask" doc="/**
Internal. */"/>
        <enum-value name="Readable" doc="/**
&lt;p&gt;List files for which the application has read access. The Readable value needs to be combined with Dirs or Files.&lt;/p&gt;
 */"/>
        <enum-value name="Writable" doc="/**
&lt;p&gt;List files for which the application has write access. The Writable value needs to be combined with Dirs or Files.&lt;/p&gt;
 */"/>
        <enum-value name="Executable" doc="/**
&lt;p&gt;List files for which the application has execute access. The Executable value needs to be combined with Dirs or Files.&lt;/p&gt;
 */"/>
        <enum-value name="PermissionMask" doc="/**
Internal. */"/>
        <enum-value name="Modified" doc="/**
&lt;p&gt;Only list files that have been modified (ignored under Unix).&lt;/p&gt;
 */"/>
        <enum-value name="Hidden" doc="/**
&lt;p&gt;List hidden files (on Unix, files starting with a .)&amp;#x2e;&lt;/p&gt;
 */"/>
        <enum-value name="System" doc="/**
&lt;p&gt;List system files (on Unix, FIFOs, sockets and device files)&lt;/p&gt;
 */"/>
        <enum-value name="AccessMask" doc="/**
Internal. */"/>
        <enum-value name="AllDirs" doc="/**
&lt;p&gt;List all directories; i.e&amp;#x2e; don't apply the filters to directory names.&lt;/p&gt;
 */"/>
        <enum-value name="CaseSensitive" doc="/**
&lt;p&gt;The filter should be case sensitive.&lt;/p&gt;
 */"/>
        <enum-value name="NoDotAndDotDot" doc="/**
&lt;p&gt;Do not list the special entries &amp;quot;.&amp;quot; and &amp;quot;..&amp;quot;&amp;#x2e;&lt;/p&gt;
 */"/>
        <enum-value name="NoFilter" doc="/**
Internal. */"/>
</enum>
    <enum name="SortFlag" doc="/**
&lt;p&gt;This enum describes the sort options available to &lt;a href=&quot;QDir.html#QDir(com.trolltech.qt.core.QDir)&quot;&gt;&lt;tt&gt;QDir&lt;/tt&gt;&lt;/a&gt;, e.g&amp;#x2e; for &lt;a href=&quot;QDir.html#entryList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryList&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDir.html#entryInfoList(com.trolltech.qt.core.QDir.Filters, com.trolltech.qt.core.QDir.SortFlags)&quot;&gt;&lt;tt&gt;entryInfoList&lt;/tt&gt;&lt;/a&gt;. The sort value is specified by OR-ing together values from the following list:&lt;/p&gt;
&lt;p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;&lt;th width=&quot;25%&quot;&gt;Constant&lt;/th&gt;&lt;th width=&quot;15%&quot;&gt;Value&lt;/th&gt;&lt;th width=&quot;60%&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Name&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;0&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Sort by name.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Time&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;1&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Sort by time (modification time).&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Size&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;2&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Sort by file size.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Type&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;128&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Sort by file type (extension).&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Unsorted&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;3&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Do not sort.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;DirsFirst&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;4&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Put the directories first, then the files.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;DirsLast&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;32&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Put the files first, then the directories.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Reversed&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;8&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Reverse the sort order.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;IgnoreCase&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;16&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Sort case-insensitively.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;LocaleAware&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;64&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Sort items appropriately using the current locale settings.&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;You can only specify one of the first four.&lt;/p&gt;
&lt;p&gt;If you specify both &lt;a href=&quot;QDir.html#SortFlag-enum&quot;&gt;&lt;tt&gt;DirsFirst&lt;/tt&gt;&lt;/a&gt; and Reversed, directories are still put first, but in reverse order; the files will be listed after the directories, again in reverse order.&lt;/p&gt;
 */">
        <enum-value name="Name" doc="/**
&lt;p&gt;Sort by name.&lt;/p&gt;
 */"/>
        <enum-value name="Time" doc="/**
&lt;p&gt;Sort by time (modification time).&lt;/p&gt;
 */"/>
        <enum-value name="Size" doc="/**
&lt;p&gt;Sort by file size.&lt;/p&gt;
 */"/>
        <enum-value name="Unsorted" doc="/**
&lt;p&gt;Do not sort.&lt;/p&gt;
 */"/>
        <enum-value name="SortByMask" doc="/**
Internal. */"/>
        <enum-value name="DirsFirst" doc="/**
&lt;p&gt;Put the directories first, then the files.&lt;/p&gt;
 */"/>
        <enum-value name="Reversed" doc="/**
&lt;p&gt;Reverse the sort order.&lt;/p&gt;
 */"/>
        <enum-value name="IgnoreCase" doc="/**
&lt;p&gt;Sort case-insensitively.&lt;/p&gt;
 */"/>
        <enum-value name="DirsLast" doc="/**
&lt;p&gt;Put the files first, then the directories.&lt;/p&gt;
 */"/>
        <enum-value name="LocaleAware" doc="/**
&lt;p&gt;Sort items appropriately using the current locale settings.&lt;/p&gt;
 */"/>
        <enum-value name="Type" doc="/**
&lt;p&gt;Sort by file type (extension).&lt;/p&gt;
 */"/>
        <enum-value name="NoSort" doc="/**
Internal. */"/>
</enum>
</class>
