Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to handle a QLocalSocket on its own thread?
philk last edited by
I am using QLocalServer for IPC. The amount of data transfered seems to be so big sometimes that handling it in the main UI thread is not a good idea.
So I want to handle the data from a QLocalSocket on a separate thread. But I do not seem to get it to work. The QLocalSocket returned from QLocalServer::nextPendingConnection is parented to the server and cannot be moved to a thread.
I want to connect the QLocalSocket::readyRead to a slot in a way that it does not run on the main UI thread.