Hey Scott,

On 26.09.2025 01:31, Scott Bloom wrote:

I have found the webchannel examples.  However, my need isn’t covered and I cant for the life extend any of the examples.

The goal is to have a dialog window with a QWebEngineView widget instantiated, the application is all C++.

The main page loaded will be in qrc, but loads other scripts that are also in the qrc.

Is there any example out there that shows a simple WebChannel based communication between Widgets a WebEngineView?

Yes, the RecipeBrowser example does just this: https://doc.qt.io/qt-6/qtwebengine-webenginewidgets-recipebrowser-example.html

Note that QtWebChannel is agnostic to the concrete transport that's used. That's why none of the examples in the QtWebChannel repo interact with a webview and the actual webview-using examples are in QtWebEngine.

QtWebEngine provides a specialized transport based on Chromium IPC. It's used automatically when you call QWebEnginePage::setChannel() [https://doc.qt.io/qt-6/qwebenginepage.html#setWebChannel].

Cheers,
Arno

--
Arno Rehn
Principal Software Engineer
Tel +49 89 189 166 0
Fax +49 89 189 166 111
[email protected]
www.menlosystems.com

Menlo Systems GmbH
Bunsenstrasse 5, D-82152 Martinsried, Germany
Amtsgericht München HRB 138145
Geschäftsführung: Dr. Michael Mei, Dr. Ronald Holzwarth
USt.-IdNr. DE217772017, St.-Nr. 14316170324
-- 
Development mailing list
[email protected]
https://lists.qt-project.org/listinfo/development

Reply via email to