Hi anda_skoa, I tried with:
m_ftpManagerPtr = new QNetworkAccessManager(this);
connect ( m_ftpManagerPtr, SIGNAL(authenticationRequired(QNetworkReply*,QAuthenticator*)), this, SLOT(onAuthenticationRequestSlot(QNetworkReply*,QAuthenticator*)) );
void Test::onAuthenticationRequestSlot(QNetworkReply *aReply, QAuthenticator *aAuthenticator)
{
aAuthenticator->setUser(m_ftpUser);
aAuthenticator->setPassword(m_ftpPasswd);
}
m_ftpManagerPtr = new QNetworkAccessManager(this);
connect ( m_ftpManagerPtr, SIGNAL(authenticationRequired(QNetworkReply*,QAuthenticator*)), this, SLOT(onAuthenticationRequestSlot(QNetworkReply*,QAuthenticator*)) );
void Test::onAuthenticationRequestSlot(QNetworkReply *aReply, QAuthenticator *aAuthenticator)
{
aAuthenticator->setUser(m_ftpUser);
aAuthenticator->setPassword(m_ftpPasswd);
}
To copy to clipboard, switch view to plain text mode
But it don't gets into the slot, do you know why? do I have to initialize something before?
Bookmarks