• Using QFtp
  • Using QHttp
  • TCP Networking with QSocket
  • UDP Networking with QSocketDevice

Qt provides the QFtp and QHttp classes for working with FTP and HTTP. These protocols are easy to use for downloading and uploading files and, in the case of HTTP, for sending requests to web servers and retrieving the results.

Qt's QFtp and QHttp classes are built on the lower-level QSocket class, which provides a TCP socket. TCP operates in terms of data streams transmitted between network nodes. QSocket is in turn implemented on top of QSocketDevice, a thin wrapper around the platform-specific network APIs. The QSocketDevice class supports both TCP and UDP.

In this chapter, we will learn how to use the four classes mentioned above and other closely related classes, like QServerSocket and QSocketNotifier. We will also cover uploading and downloading files and how to use a web form programmatically. We will use TCP in a server application and in a corresponding client application. Similarly, we will use UDP in a sender application and in a corresponding receiver application. The coverage of QFtp and QHttp should be accessible to anyone, but the coverage of QSocket and especially QSocketDevice does assume some networking experience.

Part I: Basic Qt

Getting Started

Creating Dialogs

Creating Main Windows

Implementing Application Functionality

Creating Custom Widgets

Part II: Intermediate Qt

Layout Management

Event Processing

2D and 3D Graphics

Drag and Drop


Container Classes





Providing Online Help


Platform-Specific Features

C++ GUI Programming with Qt 3
C++ GUI Programming with Qt 3
ISBN: 0131240722
EAN: 2147483647
Year: 2006
Pages: 140 © 2008-2020.
If you may any questions please contact us: