使用PyQt5的时候,在使用多线程的时候,会报错: QObject: Cannot create children for a parent that is in a different thread. (Parent is QLabel(0x2c1964c0ba0), parent’s thread is QThread(0x2c18e6db8e0), current thread is QT
就是按照书上的源码来的, 但是这个因为qt4到qt5的一个变化 在Qt官网wiki找到了答案:http://qt-project.org/wiki/Transition_from_Qt_4.x_to_Qt5 解决: Change all instances of #include <QtGui> to #include <QtWidgets>