how can I find a text from qwebview?
I convert the document to plain text and use QString::comapare
to find.
ui->webView->page()->mainFrame()->toPlainText();
but the method is unable to find text inside something like iframe
.
how can I search all visible text?
Qt represents a web page as an hierarchy structure of frames. So you need to use a recursive search.
Use: