QHelpSearchQueryWidget 類提供使用戶能夠在標準化輸入掩碼中輸入搜索術語的簡單行編輯或高級 Widget。 更多...
| 頭: |
#include <QHelpSearchQueryWidget>
|
| CMake: |
find_package(Qt6 REQUIRED COMPONENTS Help)
target_link_libraries(mytarget PRIVATE Qt6::Help)
|
| qmake: |
QT += help
|
| 繼承: | QWidget |
| QHelpSearchQueryWidget (QWidget * parent = nullptr) | |
| virtual | ~QHelpSearchQueryWidget () override |
| void | collapseExtendedSearch () |
| void | expandExtendedSearch () |
| QString | searchInput () const |
| void | setSearchInput (const QString & searchInput ) |
| void | search () |
[explicit]
QHelpSearchQueryWidget::
QHelpSearchQueryWidget
(
QWidget
*
parent
= nullptr)
Constructs a new search query widget with the given parent .
[override virtual noexcept]
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.
另請參閱 setSearchInput ().
設置 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.
另請參閱 searchInput ().