How to let javascript get cookies in QWebView ?
-
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? -
Look at cookiejar.cpp in Qt browser demo:
qt-4.8.x/demos/browser
qt-5.x/qtwebkit-examples/examples/webkitwidgets/browser -
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]