Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to let javascript get cookies in QWebView ?
Forum Updated to NodeBB v4.3 + New Features

How to let javascript get cookies in QWebView ?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.3k Views 1 Watching
  • 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.
  • L Offline
    L Offline
    lvshuchengyin
    wrote on last edited by
    #1

    I use QWebView to load a html page which use javascript to get the cookies to do something.
    But It seems javascript can't get the cookies in QWebView.
    What can I do to let it have that function?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sandy.martel
      wrote on last edited by
      #2

      Look at cookiejar.cpp in Qt browser demo:
      qt-4.8.x/demos/browser
      qt-5.x/qtwebkit-examples/examples/webkitwidgets/browser

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lvshuchengyin
        wrote on last edited by
        #3

        Hi, I use this example to visit that website, the javascript can't get the cookies too.

        [quote author="sandy.martel" date="1389584998"]Look at cookiejar.cpp in Qt browser demo:
        qt-4.8.x/demos/browser
        qt-5.x/qtwebkit-examples/examples/webkitwidgets/browser
        [/quote]

        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