Results 1 to 6 of 6

Thread: How to enable cookie in QWebView

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to enable cookie in QWebView

    As far as I remember You have to set a cookie jar for the view (or for the QNetworkAccessManager that runs it).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    May 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to enable cookie in QWebView

    Quote Originally Posted by wysota View Post
    As far as I remember You have to set a cookie jar for the view (or for the QNetworkAccessManager that runs it).
    Is it like this -
    view->page->networkAccessManager()->setCookieJar( new QNetworkCookieJar() );

    BTW, what is cookie jar? I have very little knowledge about qwebkit.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to enable cookie in QWebView

    Quote Originally Posted by KoalaSydney View Post
    Is it like this -
    view->page->networkAccessManager()->setCookieJar( new QNetworkCookieJar() );
    Maybe. But I'm not sure - maybe you have to fill the jar yourself when the data arrives. You can take a look at arora (google for it) code or the Qt demo browser.

    BTW, what is cookie jar? I have very little knowledge about qwebkit.
    It's not about webkit. It's about web browsers at all. This is a place (usually a file or directory) where a browser keeps its cookies.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Problem With QWebView
    By ivi2501 in forum Qt Programming
    Replies: 8
    Last Post: 2nd August 2009, 19:37
  2. Problems of embedded QWebView in QGraphicsView
    By naruto_9w in forum Qt Programming
    Replies: 2
    Last Post: 20th February 2009, 15:22
  3. QWebView transparent problem
    By embedyy in forum Qt Programming
    Replies: 4
    Last Post: 16th January 2009, 06:20
  4. QWebView - retrieving information?
    By lamera in forum Qt Programming
    Replies: 1
    Last Post: 25th September 2008, 17:53
  5. printing QWebView before showing in Dialog
    By Grisu in forum Qt Programming
    Replies: 1
    Last Post: 17th July 2008, 12:20

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.