Results 1 to 2 of 2

Thread: How to automaticaly connect client to server

  1. #1
    Join Date
    Jun 2010
    Posts
    18
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How to automaticaly connect client to server

    I am making a server-client program in which I have a main window. when i press a client button , client dialog should open up. In client window i dont want a connect or send button to connect to server instead i want that when my client dialog opens up & it automatically connects to server. I dont know how to write a signal-slot statement for this. please help.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: How to automaticaly connect client to server

    In the constructor of your dialog, emit a signal, or directly send to some data to the client.
    If you also want to send something when showing the dialog, reimplement the relevant event and emit a signal or send the data directly.

Similar Threads

  1. tcp QT server - .Net c# client
    By soniaerm in forum Qt Programming
    Replies: 0
    Last Post: 21st April 2010, 22:15
  2. Client Server
    By electronicboy in forum General Programming
    Replies: 3
    Last Post: 29th October 2009, 10:10
  3. Qt as Client and Java as a Server. It's that possible ?
    By eroskoller in forum Qt Programming
    Replies: 6
    Last Post: 29th May 2009, 19:19
  4. client-server how?
    By nongentesimus in forum Newbie
    Replies: 6
    Last Post: 28th November 2006, 09:25
  5. The server cannot write to the client. Why?
    By probine in forum Newbie
    Replies: 12
    Last Post: 24th March 2006, 17:14

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.