[QtHelp module]

该QHelpIndexModel类提供了一个模型,它提供的索引关键字的看法。More…

继承QStringListModel

Methods

  • createIndex (self, QString customFilterName)
  • QModelIndex filter (self, QString filter, QString wildcard = QString())
  • bool isCreatingIndex (self)
  • dict-of-QString-QUrl linksForKeyword (self, QString keyword)

Qt Signals

  • void indexCreated ()
  • void indexCreationStarted ()

Detailed Description

该QHelpIndexModel类提供了一个模型,它提供的索引关键字的看法。


Method Documentation

  1. QHelpIndexModel.createIndex (self, QString customFilterName)

通过查询帮助系统关键字指定创建一个新的索引customFilterName

  1. QModelIndex QHelpIndexModel.filter (self, QString filter, QString wildcard = QString())

[

筛选指标,并返回最匹配的关键字的模型索引。在第一步骤中,仅包含关键字filter保持模型的索引列表中。类似地,如果wildcard不为空,只有匹配的关键字留在索引列表中。在第二个步骤中,确定最佳匹配,其指数模型返回。当指定一个通配符表达式,filter字符串用来搜索最佳匹配。

  1. bool QHelpIndexModel.isCreatingIndex (self)

如果该指数目前建立起来,否则为False ,则返回True 。

  1. dict-of-QString-QUrl QHelpIndexModel.linksForKeyword (self, QString keyword)

返回找到的所有点击keyword。一击中的包括URL和文档标题。


Qt Signal Documentation

  1. void indexCreated ()

这是该信号的默认超载。

该指数已创建时,这个信号被发射。

  1. void indexCreationStarted ()

这是该信号的默认超载。

](docs_qmodelindex.html)

当创建一个新的索引已经开始这个信号被发射。当前索引是无效的,从此刻起,直到信号indexCreated()被发射。

See also isCreatingIndex( ) 。