Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to handle a QLocalSocket on its own thread?

How to handle a QLocalSocket on its own thread?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    philk
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    1

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved