[webkit-qt] how to auto closing javascript alert box in webkit

周鹏 zhoupeng19 at 126.com
Thu Apr 28 02:23:25 PDT 2011

Hi all!How to auto closing a alert dialog in qt webkit,such as this page:<html>    <head><title>test</title></head>    <body>        <script>alert("alert")</script>        <p>test<p>    </body></html>
http://lists.trolltech.com/qt-interest/2003-01/msg00706.html   said "Maybe you can set a timer in the dialogs class, that after 5 seconds emits a signal which is connected to a slot that closes the dialog. Example :connect(timer, SLOT(timeout(), this, SLOT(accept()));
timer->start(5000, TRUE); "but how to reimplementation qdialog calss in qtwebkit program?Is it possible to forbid display dialog?Sincerely yours, zhou peng zhoupeng19 at 126.com 2011-04-28 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20110428/7bc26f76/attachment.html>

More information about the webkit-qt mailing list