Solved Scraping all of WebEngineView to a QString
-
Hi All I have loaded a URL into a WebEngineView as follows:
QUrl site("http://192.168.100.41"); ui->screen->load(site);
And have selected all the text on screen as follows:
ui->screen->page()->triggerAction(QWebEnginePage::SelectAll);
Can anyone help me to copy this selected text to a QString or some other variable? I need to do some searching on this data...
Thanks
J
-
@James-Sprinks What about http://doc.qt.io/qt-5/qwebenginepage.html#selectedText-prop
And you can search directly using http://doc.qt.io/qt-5/qwebenginepage.html#findText