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. More...
Header: | #include <QHelpSearchQueryWidget> |
qmake: | QT += help |
Since: | Qt 4.4 |
Inherits: | QWidget |
QHelpSearchQueryWidget(QWidget *parent = nullptr) | |
virtual | ~QHelpSearchQueryWidget() |
void | collapseExtendedSearch() |
void | expandExtendedSearch() |
bool | isCompactMode() const |
QString | searchInput() const |
void | setSearchInput(const QString &searchInput) |
void | setCompactMode(bool on) |
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.
Constructs a new search query widget with the given parent.
[virtual]
QHelpSearchQueryWidget::~QHelpSearchQueryWidget()Destroys the search query widget.
Collapses the search query widget so that only the default search field is shown.
Expands the search query widget so that the extended search fields are shown.
[signal]
void QHelpSearchQueryWidget::search()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() function.
Returns a search phrase to use in combination with the QHelpSearchEngine::search(const QString &searchInput) function.
This function was introduced in Qt 5.9.
See also setSearchInput().
[slot]
void QHelpSearchQueryWidget::setCompactMode(bool on)See also isCompactMode().
Sets the QHelpSearchQueryWidget input field to the value specified by searchInput.
Note: The QHelpSearchEngine::search(const QString &searchInput) function has to be called to perform the actual search.
This function was introduced in Qt 5.9.
See also searchInput().