The preview build runs the full DocumentBuilder on the GUI thread with a processEvents() per document, leaving the rest of the UI live mid-build. Run tokenization per document in a worker; assemble the ToQTextDocument on the main thread in timer-driven chunks instead of pumping.
Part of #2923.
The preview build runs the full
DocumentBuilderon the GUI thread with aprocessEvents()per document, leaving the rest of the UI live mid-build. Run tokenization per document in a worker; assemble theToQTextDocumenton the main thread in timer-driven chunks instead of pumping.Part of #2923.