[Development] [API Change] New authentication method in QNetworkAccessManager

Kurt Pattyn pattyn.kurt at gmail.com
Sun Mar 9 19:00:59 CET 2014


On 09 Mar 2014, at 17:50, Kevin Krammer <kevin.krammer at kdab.com> wrote:

> On Sunday, 2014-03-09, 15:10:02, Kurt Pattyn wrote:
>> Currently, QNAM stalls when authentication is required (also see:
>> https://bugreports.qt-project.org/browse/QTBUG-16251). Also, the connection
>> between the authenticationRequired signal and the slot must be a direct
>> connection. This is problematic when an application wants to show a login
>> dialogbox for instance.
>> 
>> I propose to change this implementation by using a delegate authenticator
>> instead.
>> 
>> class QAuthenticator
>> {
>> …
>> protected Q_SLOTS:
> 
> QAuthenticator is not a QObject, right?
Hmmm, indeed. The change I suggest would indeed imply that QAuthenticator
gets derived from QObject.
> 
> Cheers,
> Kevin
> -- 
> Qt Developer Days 2014, October 6 - 8 at BCC, Berlin. Save the dates!
> 
> Kevin Krammer | kevin.krammer at kdab.com | Senior Software Engineer
> Klarälvdalens Datakonsult AB, a KDAB Group company
> Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
> KDAB - Qt Experts - Platform-independent software solutions
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development




More information about the Development mailing list