QHelpIndexModelclass provides a model that supplies index keywords to views. 更多 …
def
createIndex
(customFilterName)
def
filter
(filter[, wildcard=””])
def
helpEngine
()
def
isCreatingIndex
()
def
linksForKeyword
(keyword)
def
indexCreated
()
def
indexCreationStarted
()
PySide2.QtHelp.QHelpIndexModel.
createIndex
(
customFilterName
)
¶
customFilterName – unicode
Creates a new index by querying the help system for keywords for the specified
customFilterName
.
PySide2.QtHelp.QHelpIndexModel.
filter
(
filter
[
,
wildcard=""
]
)
¶
filter – unicode
wildcard – unicode
QModelIndex
Filters the indices and returns the model index of the best matching keyword. In a first step, only the keywords containing
filter
are kept in the model’s index list. Analogously, if
wildcard
is not empty, only the keywords matched are left in the index list. In a second step, the best match is determined and its index model returned. When specifying a wildcard expression, the
filter
string is used to search for the best match.
PySide2.QtHelp.QHelpIndexModel.
helpEngine
(
)
¶
Returns the associated help engine that manages this model.
PySide2.QtHelp.QHelpIndexModel.
indexCreated
(
)
¶
PySide2.QtHelp.QHelpIndexModel.
indexCreationStarted
(
)
¶
PySide2.QtHelp.QHelpIndexModel.
isCreatingIndex
(
)
¶
bool
Returns true if the index is currently built up, otherwise false.
PySide2.QtHelp.QHelpIndexModel.
linksForKeyword
(
keyword
)
¶
keyword – unicode
注意
此函数被弃用。
使用
documentsForKeyword()
代替。