How to use Qt WebEngine and QWebChannel?

In Qt5.6, if you want to make C++ part and JavaScript to communicate, the only way to do it is using QWebChannel on a QWebEngineView, as you stated. You do it this way in the .cpp file: m_pView = new QWebEngineView(this); QWebChannel * channel = new QWebChannel(page); m_pView->page()->setWebChannel(channel); channel->registerObject(QString(“TheNameOfTheObjectUsed”), this); Here, you just say that … Read more