I am using QWebEngineView to display the .html page.
I try to use findText to find where the search text is found on the loaded page.
bool textFound;
findText(QStringLiteral("Experience"), QWebEnginePage::FindFlags(), [this](bool found) { textFound = found;});
if(textFound)
{
// do my processing
}
bool textFound;
findText(QStringLiteral("Experience"), QWebEnginePage::FindFlags(), [this](bool found) { textFound = found;});
if(textFound)
{
// do my processing
}
To copy to clipboard, switch view to plain text mode
When I execute this code, getting error as below
error: expected expression
findText(QStringLiteral("Experience"), QWebEnginePage::FindFlags(), [this](bool found) { qDebug()<<"inside";});
^
Kindly help me resolve this issue.
Bookmarks