In PyQt, what is the best way to share data between the main window and a thread
Widgets are not thread safe, see Threads and QObjects: Although QObject is reentrant, the GUI classes, notably QWidget and all its subclasses, are not reentrant. They can only be used from the main thread. And see more definitions here: Reentrancy and Thread-Safety You should only use widgets in the main thread, and use signal and … Read more