Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
How do I check in Qt that slot is in main GUI thread or not
If you always use auto connection you can use Q_ASSERT(this->thread() == qApp->thread());
Q_ASSERT(this->thread() == qApp->thread());
You can also use Q_ASSERT(QThread::currentThread() == qApp->thread());
Q_ASSERT(QThread::currentThread() == qApp->thread());