Add
```c++
Q_ASSERT(QThread::currentThread() != qApp->thread());
```