O'Reilly logo

Application Development with Qt Creator - Second Edition by Ray Rischpater

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

Accessing HTTP resources using Qt

A common thing to do in today's networked world is use the HyperText Transfer Protocol (HTTP) to access a remote resource or service on the Web. To do this, your application should first use Qt's support to select a bearer network to make the HTTP request, and then, it should use its support for HTTP to make one or more HTTP requests across the network connection that the bearer network service opened.

To begin with, you need to be sure that you include the network module in your Qt declaration by editing your project file to include the following:

QT += network

Today's computing devices support multiple ways to access the network. For example, an Android tablet can have a built-in 4G wireless wide area network adapter ...

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