If you are looking for a simple C++ QWebEngineView + QWebChannel example, the Qt example https://doc.qt.io/qt-6/qtwebengine-webenginewidgets-recipebrowser-example.html
Does exactly list.
It uses a QWebChannel to expose a QPlainTextEdit to the webpage in the QWbEngineView.
It definitely clarified some of the issues for me and showed best practices for the methodology