QWebFrame and QWebElementCollection equivalences?
I'm currently porting a dictionary app (GoldenDict to be precise) from QtWebKit to QtWebEngine. That app used QWebFrame and QWebElementCollection for which I couldn't find equivalences.
I read from QtWebEngine docs:
Yet, I found this snippet from Qt 5.9.2's example demobrowser:
#if defined(QWEBENGINEPAGE_UNSUPPORTEDCONTENT) // ... QList<QWebEngineFrame*> frames; frames.append(mainFrame()); // ... #endif
QWebEngineFrameis actually not implemented in QtWebEngine, and
QWEBENGINEPAGE_UNSUPPORTEDCONTENTis not defined in that example project either. Does it means QWebEngineFrame is planned to be added into QtWebEngine in future releases?
QWebElementCollectionlooks very like that it's a DOM model with C++ API, you use it to iterate through the DOM tree and get what you want, so sweat!
But I couldn't do that in QtWebEngine, am I right?
And that made me come up with a third question:
I'd apologize if I didn't compose those questions well, since I've just started to use QtWebEngine or QtWebkit very recently. Hope you would forgive me. And thank you for any help.
You need to inject a qwebchannel.js into the web-page though.
See this for automatic injection into every QtWebEngine page.
@SGaist Yes I have tried the new QtWebKit module. It all works very well. I'm looking forward to see QtWebKit 2.0 revive in future Qt releases.