Qt WebKit and Permanent Cookies
问题 I have a mainwindow, in it, I have a single QWebView. I want to make a certain website (www.kdkdkkd.com for instance) cookies permanent, so each time a user closes and repopens the browser he doesnt need to log in again. Thanks, 回答1: You need to set your own "Cookie Jar". Use QNetworkAccessManager::setCookieJar . Extend QNetworkCookieJar - as it doesn't persist cookies by default when browser is closed: Once the QNetworkCookieJar object is deleted, all cookies it held will be discarded as