7#include <QtCore/qvariant.h>
32 if (entries.isEmpty())
39 if (
index < entries.size() - 1) {
49 if (index < 0 || index > entries.size())
51 return entries.at(
index);
The QAbstractFileEngineIterator class provides an iterator interface for custom file engines.
QString path() const
Returns the path for this iterator.
virtual QString currentFilePath() const
Returns the path to the current directory entry.
~QResourceFileEngineIterator()
QResourceFileEngineIterator(const QString &path, QDir::Filters filters, const QStringList &filterNames)
bool advance() override
This pure virtual function advances the iterator to the next directory entry; if the operation was su...
QString currentFileName() const override
This pure virtual function returns the name of the current directory entry, excluding the path.
QFileInfo currentFileInfo() const override
The virtual function returns a QFileInfo for the current directory entry.
QStringList children() const
Returns a list of all resources in this directory, if the resource represents a file the list will be...
bool isValid() const
Returns true if the resource really exists in the resource hierarchy, false otherwise.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
GLsizei const GLchar *const * path
const QStringList filters({"Image files (*.png *.xpm *.jpg)", "Text files (*.txt)", "Any files (*)" })
[6]