QFileSystemModel can return zero for rowCount until the node is populated, as it uses a seperate thread for populating the tree. It'll send a signal when the count has changed.
I'm not really sure how to get it to what you want, and it's not really meant for that.
Maybe QDir would be better for you, as that isn't threaded, and you can call entryInfoList to get a list of all files and directories in the directory.




Reply With Quote
Bookmarks