[Interest] equivalent of python glob

Hamish Moffatt hamish at risingsoftware.com
Fri Aug 23 08:46:21 CEST 2019


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





More information about the Interest mailing list