Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Connect for "proxyAuthenticationRequired" requires for registration of the QNetworkProxy
TonyR last edited by
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.
dangelog last edited by
And instead it's not. :-)
What's the problem in doing that?
goetz last edited by
I would bet a penny that
in the source file that establishes the connection will cure the error.