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 ...

Get Game Programming using Qt 5 Beginner's Guide - Second Edition 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.