Results 1 to 6 of 6

Thread: Problem with QTcpSocket and QThread

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem with QTcpSocket and QThread

    You use waitForReadyRead(). Do not use this.

    You have a loop to send out all the data. Do not use this.

    Instead, use signals and slots. Eg. use bytesWritten signal to determine when you can send more data.

  2. The following user says thank you to squidge for this useful post:

    ivansjg (25th May 2010)

Similar Threads

  1. QTcpSocket in QThread
    By zverj in forum Qt Programming
    Replies: 1
    Last Post: 12th October 2009, 09:27
  2. QTcpSocket in QThread
    By Alex Snet in forum Qt Programming
    Replies: 3
    Last Post: 25th April 2009, 19:02
  3. QThread and QTcpSocket
    By ^NyAw^ in forum Qt Programming
    Replies: 3
    Last Post: 12th May 2008, 13:06
  4. Problem with QTcpSocket in QThread
    By Raistlin in forum Qt Programming
    Replies: 8
    Last Post: 6th October 2007, 12:23
  5. QThread and QTcpSocket problem
    By probine in forum Qt Programming
    Replies: 1
    Last Post: 5th April 2006, 09:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.