Obsolete Members for QNetworkAccessManager

The following members of class QNetworkAccessManager are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Properties

Property Documentation

networkAccessible : const NetworkAccessibility

This property holds whether the network is currently accessible via this network access manager.

If the network is not accessible the network access manager will not process any new network requests, all such requests will fail with an error. Requests with URLs with the file:// scheme will still be processed.

By default the value of this property reflects the physical state of the device. Applications may override it to disable all network requests via this network access manager by calling

 networkAccessManager->setNetworkAccessible(QNetworkAccessManager::NotAccessible);

Network requests can be re-enabled again, and this property will resume to reflect the actual device state by calling

 networkAccessManager->setNetworkAccessible(QNetworkAccessManager::Accessible);

Note: Calling setNetworkAccessible() does not change the network state.

This property was introduced in Qt 4.7.