multiple main windows
Unsolved
Qt for Python
-
I'm trying to write a program using QT windows and an API which uses PubNub notifications. The program should run in the background until a notification, then either open a new QT window or modify an existing QT window. I've tried this a couple different ways but I keep getting errors like the one below
QObject: Cannot create children for a parent that is in a different thread.
Any advise would be appreciated
-
@andocromn
For Qt you must only do UI operations in the main thread. You must not so something like "create a window in another thread". [EDIT To be fair there isQObject::moveToThread(QThread *targetThread)
. So I shouldn't quite say what I did. But your error is for this reason.]