Results 1 to 2 of 2

Thread: how to send data using QTcpSocket and QTcpServer

  1. #1
    Join Date
    Mar 2011
    Location
    delhi
    Posts
    45
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Exclamation how to send data using QTcpSocket and QTcpServer

    hi all please tell me i have main thread which is responsible for gui (ie main mainwindow and dialog). i want to entering data in dialog should be send to another thread that read data from a socket and display that data in main window in QList . I am confuse which thread i have to make QTcpSocket and which QTcpserver .i want to use Socket programming to send and receive data and display on main window.



    thanks with regards:
    gauravg

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: how to send data using QTcpSocket and QTcpServer

    Why are you using a separate thread for handling the socket?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. how to use qtcpsocket send qimage data
    By tsuibin in forum Qt Programming
    Replies: 2
    Last Post: 18th April 2012, 14:51
  2. QTcpSocket does not send data immediately
    By igorosberg in forum Qt Programming
    Replies: 11
    Last Post: 15th July 2011, 15:51
  3. Replies: 4
    Last Post: 30th November 2010, 21:09
  4. Replies: 1
    Last Post: 24th March 2010, 08:15
  5. Replies: 4
    Last Post: 22nd March 2010, 18:32

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.