You can use QQmlEngine::setNetworkAccessManagerFactory to make the Image
element use your own QNetworkAccessManager instances, which in turn you can
set a cookie store on that contains your session cookie.
http://doc.qt.io/qt-5/qqmlengine.html#setNetworkAccessManagerFactory
Note that setNetworkAc
y, August 11, 2015 at 1:41 PM
>> *From:* "Jason H"
>> *To:* "Jason H"
>> *Cc:* "Neil Williams" , "interest@qt-project.org" <
>> interest@qt-project.org>
>>
>> *Subject:* Re: [Interest] Using cookies with Image.so
as a whole host of other programs (Photoshop, OSX Preview, etc).
Thanks!
Sent: Tuesday, August 11, 2015 at 1:41 PM
From: "Jason H"
To: "Jason H"
Cc: "Neil Williams" , "interest@qt-project.org"
Subject: Re: [Interest] Using cookies with Image.source
uot;Neil Williams"
Cc: "interest@qt-project.org"
Subject: Re: [Interest] Using cookies with Image.source
Ok. Glad to hear we agree...
But how is this not a "bug" I'd figure the XHR and any element with a source property should already be using the same factory (that
uot;Jason H"
Cc: "interest@qt-project.org"
Subject: Re: [Interest] Using cookies with Image.source
You can use QQmlEngine::setNetworkAccessManagerFactory to make the Image element use your own QNetworkAccessManager instances, which in turn you can set a cookie store on that contains y
> Sent: Tuesday, August 11, 2015 at 11:20 AM
> From: "Jason H"
> To: "interest@qt-project.org"
> Subject: [Interest] Using cookies with Image.source
>
> I have an application that needs a user to login and maintain a cookie. The
> AJAX features work j
I have an application that needs a user to login and maintain a cookie. The
AJAX features work just fine. But when I set the Image.source property to a URL
that is protected and requires a session cookie, it gets a 401.
How can I tell Image elements to use a cookie, the same cookie the AJAX logi