pythonguis-examples icon indicating copy to clipboard operation
pythonguis-examples copied to clipboard

The browser sample can't open the target="_blank" link. Is there any way to solve it?thanks

Open manyoubaby123 opened this issue 6 years ago • 1 comments

manyoubaby123 avatar Jul 21 '18 13:07 manyoubaby123

I also found this issue.

I found another PyQt5 tabbed browser that can handle target="_blank" links. It'll open a link in a new tab if the link has target="_blank". https://github.com/qutebrowser/qutebrowser

You need to handle QWebEnginePage.acceptNavigationRequest to solve it.

yinkaisheng avatar Jun 11 '19 09:06 yinkaisheng