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