Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Qt WebKit Enabling Cookies
QtWS25 Last Chance

Qt WebKit Enabling Cookies

Scheduled Pinned Locked Moved Unsolved Qt WebKit
1 Posts 1 Posters 632 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    anshah
    wrote on last edited by anshah
    #1

    By default are cookies enabled or disabled on Qt WebKit's QWebView?

    I've seen on multiple forums to create a cookie jar and add it to the NetworkAccessManager like so:

    QNetworkAccessManager *myNam = new QNetworkAccessManager();
    myNam->setCookieJar(new QNetworkCookieJar());
    webView->setNetworkAccessManager(myNam);
    

    Does the QNetworkAccessManager take care of adding to and removing from the cookie jar or do I need to manage that? Is this all there is to it if we just want to enable cookies and not do anything fancy?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved