If you want fast then either do the reading in the main thread and live with the fact that your app will be unresponsive for that time or create the text document in a worker thread and push it to the main thread when it is ready and then set it on the text edit. Also use QPlainTextEdit instead of QTextEdit if you're not operating on rich-text. Any other interleaving between the main and the worker thread will make your application slower.






Reply With Quote
Bookmarks