Connect for "proxyAuthenticationRequired" requires for registration of the QNetworkProxy
-
I need handle the signal proxyAuthenticationRequired of QNetworkAccessManager and show dialog. I wrote
@ QObject::connect(nam, SIGNAL(proxyAuthenticationRequired(QNetworkProxy,QAuthenticator*)),
mainWin, SLOT(onProxyAuthenticationRequired(QNetworkProxy, QAuthenticator*)));@where mainWin is a class for main window. But in console i see follow messages
@QObject::connect: Cannot queue arguments of type 'QNetworkProxy'
(Make sure 'QNetworkProxy' is registered using qRegisterMetaType().)@I knew about typedef and qRegisterMetaType, but I thought that QNetworkProxy should already be registered.