QHelpSearchQueryWidget Class Reference

[ QtHelp module]

The QHelpSearchQueryWidget class provides a simple line edit or an advanced widget to enable the user to input a search term in a standardized input mask. 更多...

继承 QWidget .

方法

Qt Signals


详细描述

The QHelpSearchQueryWidget class provides a simple line edit or an advanced widget to enable the user to input a search term in a standardized input mask.


方法文档编制

QHelpSearchQueryWidget.__init__ ( self , QWidget   parent  = None)

parent argument, if not None, causes self to be owned by Qt instead of PyQt.

Constructs a new search query widget with the given parent .

QHelpSearchQueryWidget.collapseExtendedSearch ( self )

Collapses the search query widget so that only the default search field is shown.

该函数在 Qt 4.8 引入。

QHelpSearchQueryWidget.expandExtendedSearch ( self )

Expands the search query widget so that the extended search fields are shown.

该函数在 Qt 4.8 引入。

list-of-QHelpSearchQuery QHelpSearchQueryWidget.query ( self )

Returns a list of queries to use in combination with the search engines search( QList < QHelpSearchQuery > &queryList) 函数。

另请参阅 setQuery ().

QHelpSearchQueryWidget.setQuery ( self , list-of-QHelpSearchQuery  queryList )

设置 QHelpSearchQueryWidget input fields to the values specified by queryList search field name. Please note that one has to call the search engine's search( QList < QHelpSearchQuery > &queryList) function to perform the actual search.

该函数在 Qt 4.8 引入。

另请参阅 query ().


Qt Signal Documentation

void search ()

This is the default overload of this signal.

This signal is emitted when a the user has the search button invoked. After reciving the signal you can ask the QHelpSearchQueryWidget 为 build list of QHelpSearchQuery 's that you may pass to the QHelpSearchEngine 's search() function.