QHelpSearchQueryWidget 類

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. 更多...

頭: #include <QHelpSearchQueryWidget>
Since: Qt 4.4
繼承: QWidget

公共函數

QHelpSearchQueryWidget (QWidget * parent = 0)
~QHelpSearchQueryWidget ()
void collapseExtendedSearch ()
void expandExtendedSearch ()
QList<QHelpSearchQuery> query () const
void setQuery (const QList<QHelpSearchQuery> & queryList )

信號

void search ()

額外繼承成員

詳細描述

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:: QHelpSearchQueryWidget ( QWidget * parent = 0)

Constructs a new search query widget with the given parent .

QHelpSearchQueryWidget:: ~QHelpSearchQueryWidget ()

Destroys the search query widget.

void QHelpSearchQueryWidget:: collapseExtendedSearch ()

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

該函數在 Qt 4.8 引入。

void QHelpSearchQueryWidget:: expandExtendedSearch ()

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

該函數在 Qt 4.8 引入。

QList < QHelpSearchQuery > QHelpSearchQueryWidget:: query () const

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

另請參閱 setQuery ().

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

void QHelpSearchQueryWidget:: setQuery (const QList < 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 ().