PDA

View Full Version : Cookies....Again....



TJSonic
18th March 2010, 19:43
Hello, how to save cookies in file, and then load it from there...
I creater cookiejar and set it in QNetworkAccesManager:


acmngr= new QNetworkAccessManager(this);
cookie= new QNetworkCookieJar(this);
tab_page->page()->setNetworkAccessManager(acmngr);
tab_page->page()->acmngr()->setCookieJar( cookie );


Whats next?How to write them in file???
And how to load them from file???

wysota
18th March 2010, 21:00
You need to subclass the cookie jar class and use the two interesting protected virtual methods.

TJSonic
21st March 2010, 17:29
Thanks for answer. :)
Do anyone knows how to accelerate Flash Plugin in QWebView????
Videos from youtube lags a lot....

wysota
21st March 2010, 21:09
Do anyone knows how to accelerate Flash Plugin in QWebView????
Videos from youtube lags a lot....

Buy a faster computer or start a new thread on the forum related to the problem. I think it is safe to assume the problem is not related to cookies.

TJSonic
22nd March 2010, 10:13
Ok..but i think that the case not in my computer becase for examle in opera videos runs normally..

Svenny
6th October 2010, 22:25
You need to subclass the cookie jar class and use the two interesting protected virtual methods.

Excuse me, I have similar problem and I don't get which two did You mean...
http://doc.qt.nokia.com/4.7/qnetworkcookiejar.html

wysota
6th October 2010, 22:57
QNetworkCookieJar has only two protected methods so it's not hard to choose which two I was referring to in my post.

avipachar
22nd November 2011, 09:00
but how to use them. can you tell brief about that. thanks