QCefView icon indicating copy to clipboard operation
QCefView copied to clipboard

alert窗口无法弹出?

Open w136111526 opened this issue 3 years ago • 3 comments

你好,我在windows编译了102得cef版本,试了下在网页上点击onCallBridgeQueryClicked按钮,客户端能接收到query消息,但是网页弹不出alert窗口,tutorial.html里面得query按钮也没法弹出alert窗口,请问是什么原因啊?

w136111526 avatar Dec 16 '22 13:12 w136111526

有其他改动么?可以在 onSuccess onFailure 回调里加些日志,看有没有触发回调,或者通过 chrome://inspect/#devices 打开 web 的开发者工具,看有没有 js 报错。

le0zh avatar Jan 03 '23 05:01 le0zh

能不能把OnJSDialog这个信号放出来,这样方便去实现alert的处理。否则要实现alert就必须去修改底层代码。

zouye avatar Jun 28 '23 08:06 zouye

能不能把OnJSDialog这个信号放出来,这样方便去实现alert的处理。否则要实现alert就必须去修改底层代码。

这个应该非常简单,你可以对照代码添加一下,然后顺便发个PR么

tishion avatar Jul 02 '23 15:07 tishion

https://github.com/CefView/QCefView/commit/80183951f30d74587a4d133a8cc8f78195d7caf9

tishion avatar May 31 '25 09:05 tishion