Chapter 7, Networking

Pop quiz – testing your knowledge

Q1

QNetworkAccessManager, QNetworkRequest, and QNetworkReply.

Q2

One has to use QNetworkRequest::setRawHeader() with the appropriate HTTP header field "Range".

Q3

QUrlQuery

Q4

One has to use deleteLater() not delete.

Q5

Both inherit QAbstractSocket which inherits QIODevice. QIODevice is itself also the base class of QFile. So the handling-files and sockets have much in common. Thus one does not have to learn a second (complex) API only to communicate with sockets.

Q6

QUdpSocket

Get Game Programming Using Qt now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.