QT QWebEnginePage::setWebChannel() transport object

Short answer: add <script type=”text/javascript” src=”https://stackoverflow.com/questions/31928444/qrc:///qtwebchannel/qwebchannel.js”></script> to your html page (before you call new QWebChannel of course), and remove the line view->page()->runJavaScript(qwebjs); //this is qwebchannel.js from your C++ code. Long answer: I too had a ton of trouble figuring out how to use QWebChannel without WebSockets correctly — managed to get it working after digging … Read more