Results 1 to 14 of 14

Thread: QT4.2.2 and QTcpSocket

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2007
    Posts
    158
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    25

    Default Re: QT4.2.2 and QTcpSocket

    Thanks, the error was that my "qpake -project" doesn't add "QT += network" to my .pro file.

    I don't know how to solve that problem, but now I know that I can use the Sockets

  2. #2
    Join Date
    Jan 2006
    Posts
    128
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 28 Times in 27 Posts

    Default Re: QT4.2.2 and QTcpSocket

    Quote Originally Posted by Nyphel View Post
    Thanks, the error was that my "qpake -project" doesn't add "QT += network" to my .pro file.

    I don't know how to solve that problem, but now I know that I can use the Sockets
    Well, you only use qmake -project once (at least that is what it is intendet for from what I gather), and from then on you simply modify the ".pro" file by hand.

    The project file that qmake return is just a very rudimentary thing, and the .pro syntax is not too hard :-)

  3. #3
    Join Date
    Jun 2006
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows
    Thanked 1 Time in 1 Post

    Default Re: QT4.2.2 and QTcpSocket

    From command-line:
    Qt Code:
    1. qmake -project "QT = core gui network"
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. problem with QTcpSocket
    By SuperSonik in forum Qt Programming
    Replies: 8
    Last Post: 31st January 2007, 17:00
  2. Problems with QThread and QTcpSocket
    By cookiem in forum Qt Programming
    Replies: 6
    Last Post: 2nd November 2006, 09:25
  3. Problem with QTcpSocket and QDataStream
    By Valheru in forum Qt Programming
    Replies: 4
    Last Post: 16th September 2006, 14:08
  4. QTcpSocket - How do I know when it is disconnected ?
    By probine in forum Qt Programming
    Replies: 2
    Last Post: 3rd April 2006, 22:05
  5. QTcpSocket disconnection problem
    By erdi in forum Qt Programming
    Replies: 4
    Last Post: 19th February 2006, 22:50

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.