Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt persistent QNetworkCookieJar

Tags:

webkit

qt

In my Qt app, I need to save cookies between different runs of the program.

I read that QNetworkCookieJar doesn't, for some reason, support permanent cookie storage; the manual tells me that I should basically do this myself.

I realize that writing a simple class like that isn't very hard, but this seems like a reinvention of the wheel of the worst degree, as surely somebody must've needed this before.

So my question basically is why doesn't Qt add permanent storage support to the default implementation? And is there a QNetworkCookieJar class somewhere on the internet that has permanent cookie support?

like image 639
houbysoft Avatar asked Mar 08 '26 11:03

houbysoft


1 Answers

The browser in Qt Demos implements persistent storage with other fancy options (preference dialog, white list, black list, timer to save the cookies, ...).

like image 188
alexisdm Avatar answered Mar 10 '26 05:03

alexisdm