Network Configurations and networkSessions Crash
-
Hi,
i try to manage more than one QNetworkConfiguration.
for this, i have two maps :
@ QMap<QString, QNetworkConfiguration> m_intitule_networkConfig;
QMap<QString, QNetworkSession*> m_intitule_networkSession;@In the slot initiated by updateConfig, i fill both of them :
@ foreach (QNetworkConfiguration netConfig, m_netManager->allConfigurations())
{
QNetworkConfiguration copyConfig(netConfig);
QNetworkSession* session = new QNetworkSession( copyConfig );
m_intitule_networkSession.insert(intitule, session );
m_intitule_networkConfig.insert(intitule, copyConfig);
}@later i want to get the session : @m_currentNetworkSession = m_intitule_networkSession.value( intitule );@
and then @qDebug() << m_currentNetworkSession->configuration().name();@
CRASHDoes someone has some ideas?
thanks