hunk
V2EX  ›  问与答

PyQT5 中如何处理 js 弹出窗口?

  •  
  •   hunk · Nov 10, 2017 · 2089 views
    This topic created in 3110 days ago, the information mentioned may be changed or developed.

    想实现类似多标签浏览器,页面中用 js 脚本写了 window.open 弹出窗口,在 QT 中使用 tab 管理窗口,但无法获取鼠标点击事件。

    WebEnginePage 少了 PyQT4 中 linkClicked 的 single,该怎么获取鼠标点击的链接 URL,并在新窗口中打开?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2977 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 10:05 · PVG 18:05 · LAX 03:05 · JFK 06:05
    ♥ Do have faith in what you're doing.