Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
Description
https://codereview.qt-project.org/c/qt/qtdeclarative/+/510512/9..11/src/qml/doc/src/qmlsingletons.qdoc recommends adding a thread affinity assertion:
// The engine has to have the same thread affinity as the singleton.
Q_ASSERT(engine->thread() == s_singletonInstance->thread());
It would be ideal if we could move this check into Qt itself to save users from having to do it.