O'Reilly logo

Qt 5 Projects by Marco Piccolino

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Making an HTTP ReceiverChannel implementation

Now that the HTTP BroadcasterChannel is in place, we will need to implement the corresponding HTTP rceiverChannel. As hinted in the preceding section, this can be achieved using an out-of-the-box Qt functionality, thanks to the Qt Network module (http://doc.qt.io/qt-5.9/qtnetwork-index.html), and, specifically, the QNetworkAccessManager class (http://doc.qt.io/qt-5.9/qnetworkaccessmanager.html) and related classes.

By instantiating QNetworkAccessManager, we can use its methods to perform get, post, and many other types of asynchronous request. Many of these methods take an object of the QNetworkRequest type (http://doc.qt.io/qt-5.9/qnetworkrequest.html) as an argument. A QNetworkRequest can be ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required