Results 1 to 6 of 6

Thread: QCoreApplication, QTcpSocket and Console input question

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2007
    Posts
    121
    Thanks
    38
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QCoreApplication, QTcpSocket and Console input question

    Thank you for looking into this.
    I gave up on the attempts to do it with one event loop from CoreApplication it and did it with two threads - one for console input and another for socket comms.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QCoreApplication, QTcpSocket and Console input question

    Quote Originally Posted by MichaelB View Post
    I gave up on the attempts to do it with one event loop from CoreApplication it and did it with two threads
    Well, that's the easiest solution, but one thread should be enough. I really don't know why QSocketNotifier doesn't work, but unfortunately I don't have time to look into it now.

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.