QCoreApplication::processEvents();
void <className>::setText(const QString &text){ QMutexLocker locker(&mutex); textEdit->setHtmlText(text);}