[Interest] equivalent of python glob
Hamish Moffatt
hamish at risingsoftware.com
Tue Aug 27 01:59:00 CEST 2019
On 27/8/19 12:33 am, Jérôme Godbout wrote:
> This is what I did for pathJoin
>
> const QString SEPARATOR("/");
> QString FileSystemUtil::pathJoin(const QStringList& paths)
Thanks. You could do that simpler with QDir::cleanPath() and
QDir::toNativeSeparators() I think (and not have to hardcode the separator).
I got my glob working with a mix of QDir, QFileInfo and QDirIterator. I
think it's a shame there isn't something simpler built in to C++ or Qt
though.
Hamish
More information about the Interest
mailing list