微信搜索“毛凌志岗前心得”小程序
javascript - C++, Qt, QtWebKit: How to create an html rendering window so that your application would get callbacks from JS calls? - Stack Overflow
Have a look at QWebFrame::addToJavaScriptWindowObject(). It lets you expose a C++ QObject to the javascript in your page. Your html+js can then call C++ methods on that object from the web page.
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3