PDA

View Full Version : QWebengine quivalent to QWebelement and QWebelementCollection



Ini
27th June 2016, 00:23
Hello,

I want to switch to QWebEngine from QWebView to be able to use the newest Qt versions. Anyway I used findAllElements and so on to get the QWebElements and for example toPlainText() to get the text of it.

I cannot find something similar in QWebEngine. Do I have to use jQuery or AngularJs with runJavascript now? Or is there something in C++/Qt that I can use. I really want to avoid JS.

thanks

anda_skoa
27th June 2016, 09:29
QWebEngine doesn't have a direct DOM access API because the web part runs out of process (process separation since WebKit2).

There were reports though that a group of developers is working on an update of QWebKit.

Cheers,
_

Ini
27th June 2016, 22:58
thank you very much