search

Home  >  Q&A  >  body text

python3 PyQt5 multi-thread error, QObject: Cannot

The error message is as follows: `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)`
Solution...Have you ever encountered this problem?

習慣沉默習慣沉默2752 days ago938

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-06-12 09:28:25

    GUI related objects cannot be created and used in non-GUI threads and are not thread safe

    reply
    0
  • Cancelreply