(self, *args, **kwargs)
| 55 | class Window(QWebEngineView): |
| 56 | |
| 57 | def __init__(self, *args, **kwargs): |
| 58 | super(Window, self).__init__(*args, **kwargs) |
| 59 | # global |
| 60 | # self.cookieStore = QWebEngineProfile.defaultProfile().cookieStore() |
| 61 | |
| 62 | # current |
| 63 | self.cookieStore = self.page().profile().cookieStore() |
| 64 | self.initCookies() |
| 65 | self.loadProgress.connect(self.onLoadProgress) |
| 66 | self.load(QUrl('https://pyqt.site')) |
| 67 | |
| 68 | def onLoadProgress(self, progress): |
| 69 | if progress == 100: |
nothing calls this directly
no test coverage detected