QHelpSearchQueryWidget Class
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 |
开始支持版本: | Qt 4.4 |
基类: | QWidget |
公有函数
QHelpSearchQueryWidget(QWidget *parent = Q_NULLPTR) | |
~QHelpSearchQueryWidget() | |
void | collapseExtendedSearch() |
void | expandExtendedSearch() |
bool | isCompactMode() const |
QString | searchInput() const |
void | setSearchInput(const QString &searchInput) |
- 216 个公有函数继承自 QWidget
信号
void | search() |
- 3 个信号继承自 QWidget
其他继承的成员
- 59 个属性继承自 QWidget
- 19 个公有槽函数继承自 QWidget
- 5 个静态公有成员继承自 QWidget
- 35 个受保护的函数继承自 QWidget
- 1 个受保护的槽函数继承自 QWidget
详细描述
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 = Q_NULLPTR)
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.
void QHelpSearchQueryWidget::expandExtendedSearch()
Expands the search query widget so that the extended search fields are shown.
bool QHelpSearchQueryWidget::isCompactMode() const
[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.
QString QHelpSearchQueryWidget::searchInput() const
Returns a search phrase to use in combination with the QHelpSearchEngine::search(const QString &searchInput) function.
This function was introduced in Qt 5.9.
参见 setSearchInput().
void QHelpSearchQueryWidget::setSearchInput(const QString &searchInput)
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.
参见 searchInput().