7#include <QtCore/qvariant.h>
42 return index < entries.size();
47 if (index <= 0 || index > entries.size())
49 return entries.at(
index - 1);
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()
bool hasNext() const override
This pure virtual function returns true if there is at least one more entry in the current directory ...
QString next() override
This pure virtual function advances the iterator to the next directory entry, and returns the file pa...
QString currentFileName() const override
This pure virtual function returns the name of the current directory entry, excluding the path.
QResourceFileEngineIterator(QDir::Filters filters, const QStringList &filterNames)
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.
const QStringList filters({"Image files (*.png *.xpm *.jpg)", "Text files (*.txt)", "Any files (*)" })
[6]