Hi,

In Python one can write the expression: glob.glob("/usr/bin/*") and get a list of such files. I am looking for something similar in Qt (in C++).

I have look at QDir::entryList() and entryInfoList(), but it seems I would have to extract the path first and provide it to QDir. I can't use QDir('/').entryList({ "/usr/bin/*" }), as it returns nothing.


Does anyone have a recipe?



Thanks

Hamish


_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to