Did you go through the Qt demos ? You can find examples for Networking there.