22 qDebug() <<
f.fileName() <<
f.readAll().trimmed().toDouble() / 1000 <<
"MHz";
The QDirIterator class provides an iterator for directory entrylists.
bool hasNext() const
Returns true if there is at least one more entry in the directory; otherwise, false is returned.
QString next()
Advances the iterator to the next entry, and returns the file path of this new entry.
\macro QT_RESTRICTED_CAST_FROM_ASCII
QDirIterator audioFileIt(audioPath, {"*.mp3", "*.wav"}, QDir::Files)
[1]
QDirIterator it("/etc", QDirIterator::Subdirectories)
[0]