QWebEngineFindTextResult#
The QWebEngineFindTextResult
class encapsulates the result of a string search on a page. More…
Synopsis#
Functions#
def
activeMatch
()def
numberOfMatches
()
Detailed Description#
The string search can be initiated by the findText()
or findText()
method. The results of the search are highlighted in the view. The details of this result are passed as a QWebEngineFindTextResult
object that can be used to show a status message, such as “2 of 2 matches”. For example:
QObject::connect(view.page(), &QWebEnginePage::findTextFinished, [](const QWebEngineFindTextResult &result) { qInfo() << result.activeMatch() << "of" << result.numberOfMatches() << "matches"; });
Results are passed to the user in the findTextFinished()
and findTextFinished()
signals.
- class PySide6.QtWebEngineCore.QWebEngineFindTextResult#
PySide6.QtWebEngineCore.QWebEngineFindTextResult(other)
- Parameters
- PySide6.QtWebEngineCore.QWebEngineFindTextResult.activeMatch()#
- Return type
int
This property holds The index of the currently highlighted match..
- PySide6.QtWebEngineCore.QWebEngineFindTextResult.numberOfMatches()#
- Return type
int
This property holds The number of matches found..