Results 1 to 3 of 3

Thread: Client/Server doesn't work

Threaded View

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

    Default Re: Client/Server doesn't work

    Quote Originally Posted by mattia View Post
    class server : public QTcpServer, public QMainWindow
    This isn't a good idea. Better use two classes --- one for the GUI and one for the communication.

    Quote Originally Posted by mattia View Post
    int main(int argc, char *argv[])
    {
    QApplication a(argc, argv);
    server s;
    ...
    server w;
    ...
    }
    Why do you create two servers and where's the client?

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

    mattia (1st November 2007)

Similar Threads

  1. QActions don't work with menubar hidden
    By Pepe in forum Qt Programming
    Replies: 1
    Last Post: 16th August 2007, 01:04
  2. Change work area OS
    By pakulo in forum Qt Programming
    Replies: 15
    Last Post: 15th May 2007, 07:20
  3. Replies: 3
    Last Post: 26th September 2006, 12:16
  4. QTextEdit Justify align making work
    By dec0ding in forum Qt Programming
    Replies: 2
    Last Post: 13th January 2006, 12:02

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.