Skip to content

Commit 072f5f6

Browse files
committed
更新url
1 parent 066d15c commit 072f5f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

QWebEngineView/ScreenShotPage.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
windowWidth: el.outerWidth(true),
3636
}).then(function(canvas) {
3737
window._self.saveImage(canvas.toDataURL());
38+
canvas = null;
3839
});
3940
"""
4041

@@ -96,7 +97,7 @@ def __init__(self, *args, **kwargs):
9697
settings.setAttribute(QWebEngineSettings.ScreenCaptureEnabled, True)
9798
self.webView.loadStarted.connect(self.onLoadStarted)
9899
self.webView.loadFinished.connect(self.onLoadFinished)
99-
self.webView.load(QUrl("https://pyqt5.com"))
100+
self.webView.load(QUrl("https://pyqt.site"))
100101

101102
def onLoadStarted(self):
102103
print('load started')

0 commit comments

Comments
 (0)