内容表

上一话题

QHelpSearchQueryWidget

下一话题

QHelpSearchResultWidget

QHelpSearchResult

QHelpSearchResult class provides the data associated with the search result. 更多

Inheritance diagram of PySide2.QtHelp.QHelpSearchResult

概要

函数

详细描述

QHelpSearchResult object is a data object that describes a single search result. The vector of search result objects is returned by searchResults() . The description of the search result contains the document title and URL that the search input matched. It also contains the snippet from the document content containing the best match of the search input.

另请参阅

QHelpSearchEngine

class QHelpSearchResult

QHelpSearchResult(other)

QHelpSearchResult(url, title, snippet)

param url

QUrl

param title

unicode

param snippet

unicode

param other

QHelpSearchResult

Constructs a new empty QHelpSearchResult .

构造副本为 other .

Constructs the search result containing url , title and snippet as the description of the result.

PySide2.QtHelp.QHelpSearchResult. snippet ( )
返回类型

unicode

Returns the document snippet containing the search phrase of the search result.

PySide2.QtHelp.QHelpSearchResult. title ( )
返回类型

unicode

Returns the document title of the search result.

PySide2.QtHelp.QHelpSearchResult. url ( )
返回类型

QUrl

Returns the document URL of the search result.