[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] QWebEngineProfile does not save or restore cookies in PyQt, but works with Qt
From: xiangxw5689 <xiangxw5689 () 126 ! com>
Date: 2017-03-20 6:12:27
Message-ID: 65a8a994.6e91.15aea586917.Coremail.xiangxw5689 () 126 ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
[Attachment #4 (text/plain)]
Hi, it does work with Qt. But not work with PyQt. Both with version 5.8. Here is the test code.
#include <QtWebEngineWidgets>
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
auto profile = QWebEngineProfile::defaultProfile();
profile->setCachePath("chromium_cache");
profile->setPersistentStoragePath("chromium_storage");
profile->setPersistentCookiesPolicy(QWebEngineProfile::ForcePersistentCookies);
QWebEngineView view;
view.load(QUrl("https://github.com/"));
view.show();
return a.exec();
}
At 2017-03-11 00:28:18, "Florian Bruhin" <me@the-compiler.org> wrote:
>* xiangxw5689 <xiangxw5689@126.com> [2017-03-11 00:25:50 +0800]:
>> Tested with Python 3.5 + PyQt 5.8.1
>> The pyqt test script is attached.
>> Sign in a website, close it, restart, the cookie(username and password) should be remembed.
>> Work with Qt but not with PyQt. Thanks.
>
>It works with both if you wait 30s and works with neither if you
>don't. See https://bugreports.qt.io/browse/QTBUG-58675
>
>Florian
>
>--
>http://www.the-compiler.org | me@the-compiler.org (Mail/XMPP)
> GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
> I love long mails! | http://email.is-not-s.ms/
[Attachment #5 (text/html)]
<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><pre>Hi, \
it does work with Qt. But not work with PyQt. Both with version 5.8. Here is the test \
code.
#include <QtWebEngineWidgets>
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
auto profile = QWebEngineProfile::defaultProfile();
profile->setCachePath("chromium_cache");
profile->setPersistentStoragePath("chromium_storage");
profile->setPersistentCookiesPolicy(QWebEngineProfile::ForcePersistentCookies);
QWebEngineView view;
view.load(QUrl("https://github.com/"));
view.show();
return a.exec();
}</pre><br><br><br><br><br><div style="position:relative;zoom:1"></div><div \
id="divNeteaseMailCard"></div><br><pre><br>At 2017-03-11 00:28:18, "Florian Bruhin" \
<me@the-compiler.org> wrote: >* xiangxw5689 <xiangxw5689@126.com> \
[2017-03-11 00:25:50 +0800]: >> Tested with Python 3.5 + PyQt 5.8.1
>> The pyqt test script is attached.
>> Sign in a website, close it, restart, the cookie(username and password) \
should be remembed. >> Work with Qt but not with PyQt. Thanks.
>
>It works with both if you wait 30s and works with neither if you
>don't. See https://bugreports.qt.io/browse/QTBUG-58675
>
>Florian
>
>--
>http://www.the-compiler.org | me@the-compiler.org (Mail/XMPP)
> GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
> I love long mails! | http://email.is-not-s.ms/
</pre></div>
[Attachment #6 (text/plain)]
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic