Results 1 to 4 of 4

Thread: help in QT network!

  1. #1
    Join Date
    Sep 2007
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default help in QT network!

    hi..im develop small program client and server.
    the client auto sending the file after executed.
    Each time i run the file i have to click connect and enter ipaddress and port to connect to a server.
    my Question: how to do after i set ip and port for server, it will save into a text file.
    and i juz need to copy the text file to the client folder and run the client.The client then will connect directly to the server through the txt file contain ipaddress and port given.

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: help in QT network!

    No need to save it to a file.
    See QSettings. It supports applciations-wide settings serialization and it is portable.

  3. #3
    Join Date
    Sep 2007
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: help in QT network!

    thx for da info..
    any sample that can i use related to this event?

  4. #4
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: help in QT network!

    See the QSettings documentation in the Assistant.

Similar Threads

  1. qmake ignores network?
    By Morea in forum Qt Programming
    Replies: 2
    Last Post: 24th June 2007, 09:29
  2. Replies: 3
    Last Post: 17th June 2007, 20:23
  3. QByteArray with network data
    By merlvingian in forum Qt Programming
    Replies: 1
    Last Post: 1st June 2007, 17:53
  4. Beginning network programming
    By Morea in forum Qt Programming
    Replies: 3
    Last Post: 29th May 2007, 19:39
  5. QSocket - signal for network wire disconnection
    By manivannan_1984 in forum Qt Programming
    Replies: 7
    Last Post: 5th September 2006, 13:52

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.