Quote Originally Posted by totem View Post
Indeed a loop on processEvents() does not seem clean
Well, I did warn you...

Quote Originally Posted by totem View Post
If you have a treeview, you must have an associated model (or you meant treewidget?)
I do indeed have an associated model (a QFileSystemModel object).

Quote Originally Posted by totem View Post
Try to catch a signal from this model, indicating it finished to load its data; if you don't find such signal, try to implement something equivalent. Then you read treeview settings, after its data has been updated
I am not aware of any such signal. I did, however, try to 'play' with the expanded() signal, but again to no avail.

Anyway, I am nearly done with what I needed to do, so I should soon be able to resume that aspect of my work.