[Qtwebengine] How to tell qtwebengine a result string from javascript timer?

Nemo 377307289 at qq.com
Tue Dec 15 10:46:43 CET 2015


Hello everyone.


I used runJavaScript(const QString& scriptSource, const QWebEngineCallback<const QVariant &> &resultCallback), the javascript start a timer and do something until operation is really done. But the "resultCallback" will be called immediately, how can I return the result in javascript timer?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qtwebengine/attachments/20151215/8f9cb483/attachment.html>


More information about the QtWebEngine mailing list