我有一个应用程序,其中每个线程(主线程除外)需要创建自己的窗口.我尝试创建一个线程,然后调用this->exec()该run函数.但是,在我接到电话之前,我收到了一个错误:ASSERT failure in QWidget: "Widgets must be created in the GUI thread."
this->exec()
run
ASSERT failure in QWidget: "Widgets must be created in the GUI thread."
我想弹出一个消息窗口.问题是源有多个线程,每个线程可能需要弹出自己的消息.
c++ user-interface qt multithreading
c++ ×1
multithreading ×1
qt ×1
user-interface ×1