Logo Search packages:      
Sourcecode: qt4-x11 version File versions

QStringList QDir::entryList ( Filters  filters = NoFilter,
SortFlags  sort = NoSort 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. 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 setNameFilters() and setFilter(), and sorted according to the flags set with setSorting().

The attribute filter and sorting specifications can be overridden using the filters and sort arguments.

Returns an empty list if the directory is unreadable, does not exist, or if nothing matches the specification.

See also:
entryInfoList(), setNameFilters(), setSorting(), setFilter()

Definition at line 1291 of file qdir.cpp.

Referenced by FSDirectory::fileList(), Window::find(), MainWindow::loadPlugins(), and QFormBuilder::updateCustomWidgets().

{
    Q_D(const QDir);

    return entryList(d->data->nameFilters, filters, sort);
}


Generated by  Doxygen 1.6.0   Back to index