QHelpSearchQueryWidget 类

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] 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.

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.

另请参阅 setSearchInput ().

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.

另请参阅 searchInput ().