PDA

View Full Version : help in QT network!



bbc58206
4th September 2007, 13:18
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.

marcel
4th September 2007, 13:21
No need to save it to a file.
See QSettings. It supports applciations-wide settings serialization and it is portable.

bbc58206
10th September 2007, 04:39
thx for da info..
any sample that can i use related to this event?

marcel
10th September 2007, 05:00
See the QSettings documentation in the Assistant.