Qt WebKit and Permanent Cookies

前端 未结 3 1203
独厮守ぢ
独厮守ぢ 2021-02-05 11:39

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

3条回答
  •  余生分开走
    2021-02-05 11:56

    Once cookie(s) registered in the NAM (NetworkAccessManager), set the webview to use it :

    myWebView->page()->setNetworkAccessManager(myNAM);

提交回复
热议问题