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 setNetworkAccessManagerFactory
set QQmlNetworkAccessManagerFactory is not used by the QML Webview
component.

On Tue, Aug 11, 2015 at 4:20 PM, Jason H <jh...@gmx.com> wrote:

> 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
> login result got?
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to