Re: [Interest] Using cookies with Image.source

2015-08-12 Thread Neil Williams
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

Re: [Interest] Using cookies with Image.source

2015-08-11 Thread Alexey Godko
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

Re: [Interest] Using cookies with Image.source

2015-08-11 Thread Jason H
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

Re: [Interest] Using cookies with Image.source

2015-08-11 Thread Jason H
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

Re: [Interest] Using cookies with Image.source

2015-08-11 Thread Jason H
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

Re: [Interest] Using cookies with Image.source

2015-08-11 Thread Jason H
> 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

[Interest] Using cookies with Image.source

2015-08-11 Thread Jason H
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