You can of course still to the parsing in a helper thread if you think a single file might take too long to be acceptable as delay for the UI.

On the question of when to modify the standard item model, you can only do that in the main thread.
A custom model could potentially do part of it in the worker thread, but it would become very complicated and not really worth the effort.

Cheers,
_