[Qtwebengine] QWebChannel question
milian.wolff at kdab.com
Sun Mar 12 14:28:14 CET 2017
On Freitag, 10. März 2017 06:31:47 CET Greg Hellings wrote:
> I'm working with an embedded QWebEngineView widget through which I'm
> connecting by means of QWebChannel. The documentation for
> QWebChannel::registerObject includes the following text "*Note: *A current
> limitation is that objects must be registered before any client is
> Does anyone happen to know if there are efforts to remove that limitation?
As the QWebChannel maintainer, I'm not aware of any effort to remove this
> Is there significant difficulty in removing that limitation, or has there
> simply been no demand for it, so no effort has been put into removing it?
Exactly this, no demand and it simplified things. But note that the webchannel
nowadays can cope with dynamic registration to some degree internally already
- namely when it encounters a new QObject as a return value, or signal
argument, or property value.
> Is it something that would be open and accessible to a newcomer to
> contribute if there is a market for it?
See above: The basis should be there already, patches welcome to use that for
supporting registration of new clients later on. Note that you'll also have to
deal with deregistration, which you can probably handle like a "destroyed"
Milian Wolff | milian.wolff at kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
KDAB - The Qt Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5903 bytes
Desc: not available
More information about the QtWebEngine