python3 PyQt5 多线程报错,QObject: Cannot

错误信息如下:`QObject: Cannot create children for a parent that is in a different thread.
(Parent is QTextDocument(0x27e4150), parent's thread is QThread(0xc306a0), curre
nt thread is QThread(0xc0eca0)`
求解。。有没有遇到这种问题情况?

阅读 6.5k
1 个回答

GUI相关的对象不能在非GUI的线程创建和使用,是非线程安全的

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题