QHelpIndexWidget Class Reference

[ QtHelp module]

QHelpIndexWidget 类提供列表视图显示 QHelpIndexModel . 更多...

继承 QListView .

方法

Qt Signals


详细描述

QHelpIndexWidget 类提供列表视图显示 QHelpIndexModel .


方法文档编制

QHelpIndexWidget.activateCurrentItem ( self )

This method is also a Qt slot with the C++ signature void activateCurrentItem() .

Activates the current item which will result eventually in the emitting of a linkActivated () 或 linksActivated () 信号。

QHelpIndexWidget.filterIndices ( self , QString  filter , QString  wildcard  = QString())

This method is also a Qt slot with the C++ signature void filterIndices(const QString&,const QString& = QString()) .

Filters the indices according to filter or wildcard . The item with the best match is set as current 项。

另请参阅 QHelpIndexModel.filter ().


Qt Signal Documentation

void linkActivated (const QUrl&,const QString&)

This is the default overload of this signal.

This signal is emitted when an item is activated and its associated link should be shown. To know where the link belongs to, the keyword is given as a second paremeter.

void linksActivated (const QMap<QString,QUrl>&,const QString&)

This is the default overload of this signal.

This signal is emitted when the item representing the keyword is activated and the item has more than one link associated. The links consist of the document title and their URL.