Well,
No suggestions from the guru's here yet and QFileSystemModel would seem to me to be something that everyone that knows QT would have experience with........In any case, I'm still fighting with the unresponsive UI problem I mentioned above however I (quite by accident) ran into a partial solution for the issue:
After expanding a large directory/node then collapsing this node as noted above, expanding other nodes (even nodes with only a few directories) becomes sluggish with a 2-3 second delay before the UI becomes responsive again.
By replacing:
dirModel->setRootPath("");
dirModel->setRootPath("");
To copy to clipboard, switch view to plain text mode
with:
dirModel->setRootPath("/");
dirModel->setRootPath("/");
To copy to clipboard, switch view to plain text mode
I have no clue why, but that minor change seems to have resolved the performance problem. But now the items in the model for my treeView are unsorted.......perhaps the implementation of the sorting code in QFileSystemModel needs some work.
Anyway, I'll add to this post if I find additional solutions as I'm still struggling with keeping my UI responsive. Hopefully those learning QT, as I am, will find this helpful.
Thanks,
Zep
Bookmarks