I'm making a PySide6 program with a GUI, backend, and a QTcpServer (which only handles a single connection), and I want all three in separate threads as to never freeze up the GUI.
I read about implementing the run() function in QThread, but the backend and the server are entirely event-driven, so this seems like a bad solution. Is there a way to just place the whole QTcpServer and backend instances in separate threads?
Solution