[Bug] QNetworkConfigurationManager does not update configurations while application is running
QNetworkConfigurationManager seems to read the current network type only on application startup. Running
QNetworkConfigurationManager ncm;
ncm.getDefaultConfiguration().bearerType()
on a 3G network gives the correct network type if it is the same as was when application was started. If network type is manually set to 2G from mobile network settings, the code above continues to return BearerWCDMA. Calling
ncm.updateConfigurations();
and requesting bearer type on the updateCompleted()
callback does not fix the issue. Even after updateConfigurations()
method
ncm.allConfigurations();
continues to return only the wrong configuration. However if the application is restarted, the configuration seems to update to 2G. This problem goes also the otherway around when changing from 2G to 3G while the application is running.
Furthermore I have never observed BearerHSPA even though downlink throughput using mobile network has been 20 Mbps, which is well above the theoretical maximum of WCDMA.