[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Bug report: Storage from QtWebEngine is not saved
From: JakobDev <jakobdev () gmx ! de>
Date: 2022-08-31 11:40:54
Message-ID: trinity-17de3fb0-dc91-4ad0-b415-7ffc49ce97cd-1661946054498 () 3c-app-gmx-bap44
[Download RAW message or body]
[Attachment #2 (text/html)]
<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>I \
currently try to save the storage e.g. cookies from QWebEngine. I have found a thread \
(https://forum.qt.io/topic/135327/save-cookies-in-qt6-2-4) on the Qt Forum which has \
a solution. I have rewritten it into Python, but it did not work. After that, I tried \
it with PySide6 and this time it did work. So this is a Bug in PyQt6. YOu can vistit \
some sites which use the storage for e.g. login. After you close the PyQt6 exmaple \
code, all things are resetted. But with with the PySide6 exmaple. You stay logged \
in.</div></div></body></html>
[Attachment #3 (text/x-python)]
from PyQt6.QtWebEngineCore import QWebEngineProfile, QWebEnginePage
from PyQt6.QtWebEngineWidgets import QWebEngineView
from PyQt6.QtWidgets import QApplication
from PyQt6.QtCore import QUrl
import sys
if __name__ == "__main__":
app = QApplication(sys.argv)
profile = QWebEngineProfile("Test")
page = QWebEnginePage(profile)
view = QWebEngineView()
view.setPage(page)
view.setUrl(QUrl("https://google.com"))
view.show()
sys.exit(app.exec())
[Attachment #4 (text/x-python)]
from PySide6.QtWebEngineCore import QWebEngineProfile, QWebEnginePage
from PySide6.QtWebEngineWidgets import QWebEngineView
from PySide6.QtWidgets import QApplication
from PySide6.QtCore import QUrl
import sys
if __name__ == "__main__":
app = QApplication(sys.argv)
profile = QWebEngineProfile("Test")
page = QWebEnginePage(profile)
view = QWebEngineView()
view.setPage(page)
view.setUrl(QUrl("https://google.com"))
view.show()
sys.exit(app.exec())
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic