I am using QTextBrowser to display some large html pages.

Before I show the data, I spawn a little QMovie loading indicator, and then I call

Qt Code:
  1. class ResultBrowser : public QTextBrowser
  2. {
  3.  
  4. void showcontent(const QString& s);
  5. QTextDocument mTextDocument;
  6.  
  7. };
  8.  
  9. void ResultBrowser::showcontent(const QString& s)
  10. {
  11. //I use a QTextDocument for my stylesheet
  12. mTextDocument->setHtml(s);
  13. setDocument(mTextDocument);
  14. }
To copy to clipboard, switch view to plain text mode 

Sadly this causes some blocking which causes the loading indicator to pause. I attempted to call my showcontent function through QtConcurrent::run, but it crashes due to events being triggered from the wrong thread.

Suggestions?