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>
qmake: QT += help
Since: Qt 4.4
繼承: QWidget

公共函數

QHelpSearchQueryWidget (QWidget * parent = nullptr)
virtual ~QHelpSearchQueryWidget () override
void collapseExtendedSearch ()
void expandExtendedSearch ()
bool isCompactMode () const
QString searchInput () const
void setSearchInput (const QString & searchInput )

公共槽

void setCompactMode (bool on )

信號

void search ()

靜態公共成員

const QMetaObject staticMetaObject

額外繼承成員

詳細描述

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 = nullptr)

Constructs a new search query widget with the given parent .

[override virtual] QHelpSearchQueryWidget:: ~QHelpSearchQueryWidget ()

Destroys the search query widget.

void QHelpSearchQueryWidget:: collapseExtendedSearch ()

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

void QHelpSearchQueryWidget:: expandExtendedSearch ()

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

bool QHelpSearchQueryWidget:: isCompactMode () const

This signal is emitted when a the user has the search button invoked. After receiving the signal you can ask the QHelpSearchQueryWidget for the search input that you may pass to the QHelpSearchEngine::search () 函數。

QString QHelpSearchQueryWidget:: searchInput () const

Returns a search phrase to use in combination with the QHelpSearchEngine::search (const QString &searchInput) function.

該函數在 Qt 5.9 引入。

另請參閱 setSearchInput ().

[slot] void QHelpSearchQueryWidget:: setCompactMode ( bool on )

另請參閱 isCompactMode ().

void QHelpSearchQueryWidget:: setSearchInput (const QString & searchInput )

設置 QHelpSearchQueryWidget input field to the value specified by searchInput .

注意: The QHelpSearchEngine::search (const QString & searchInput ) function has to be called to perform the actual search.

該函數在 Qt 5.9 引入。

另請參閱 searchInput ().