Thanks for your link.
A quick look to QNetworkAccessManager.createRequest() shows that
if (!d->networkSession && (d->initializeSession || !d->networkConfiguration.isEmpty())) {
966
QNetworkConfigurationManager manager;
967
if (!d->networkConfiguration.isEmpty()) {
968
d->createSession(manager.configurationFromIdentifier(d->networkConfiguration));
969
} else {
970
if (manager.capabilities() & QNetworkConfigurationManager::NetworkSessionRequired)
971
d->createSession(manager.defaultConfiguration());
972
else
973
d->initializeSession = false;
974
}
975
}
if (!d->networkSession && (d->initializeSession || !d->networkConfiguration.isEmpty())) {
966
QNetworkConfigurationManager manager;
967
if (!d->networkConfiguration.isEmpty()) {
968
d->createSession(manager.configurationFromIdentifier(d->networkConfiguration));
969
} else {
970
if (manager.capabilities() & QNetworkConfigurationManager::NetworkSessionRequired)
971
d->createSession(manager.defaultConfiguration());
972
else
973
d->initializeSession = false;
974
}
975
}
To copy to clipboard, switch view to plain text mode
Thus, QNetworkAccessManager use NetworkConfigurationManager.defaultConfiguration() .
Bookmarks