小编mat*_*fis的帖子

QT QWebEnginePage :: setWebChannel()传输对象

I'm using the QT WebEngine framework to display web pages. I'm injecting javascript into a page when it loads, and want to allow the javascript to be able to access a QT object. Apparently, to do this a QWebChannel must exist that establishes some IPC between chromium (the javascript) and the rest of my C++/QT project. I came across the QWebEnginePage::setWebChannel (QWebChannel*channel) function, however I can't find any examples of its use. The documentation (http://doc.qt.io/qt-5/qwebenginepage.html#setWebChannel) mentions that qt.webChannelTransport …

c++ qt qtwebengine qt5.5

12
推荐指数
1
解决办法
7464
查看次数

标签 统计

c++ ×1

qt ×1

qt5.5 ×1

qtwebengine ×1