O'Reilly logo

Game Programming using Qt 5 Beginner's Guide - Second Edition by Lorenz Haas, Witold Wysota, Pavel Strakhov

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

QNetworkConfigurationManager

QNetworkConfigurationManager manages all network configurations that are available on a system. You can access these configurations by calling allConfigurations(). Of course, you have to create an instance of the manager first:

QNetworkConfigurationManager manager;
QList<QNetworkConfiguration> cfgs = manager.allConfigurations(); 

The configurations are returned as a list. The default behavior of allConfigurations() is to return all possible configurations. However, you can also retrieve a filtered list. If you pass QNetworkConfiguration::Active as an argument, the list only contains configurations that have at least one active session. If you create a new session based on such a configuration, it will be active ...

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