PySide6.QtHelp.QHelpSearchQueryWidget¶
- class QHelpSearchQueryWidget¶
The
QHelpSearchQueryWidgetclass provides a simple line edit or an advanced widget to enable the user to input a search term in a standardized input mask. More…Synopsis¶
Methods¶
def
__init__()def
isCompactMode()def
query()def
searchInput()def
setQuery()def
setSearchInput()
Slots¶
def
setCompactMode()
Signals¶
def
search()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
Constructs a new search query widget with the given
parent.- collapseExtendedSearch()¶
Collapses the search query widget so that only the default search field is shown.
- expandExtendedSearch()¶
Expands the search query widget so that the extended search fields are shown.
- isCompactMode()¶
- Return type:
bool
- query()¶
- Return type:
.list of QHelpSearchQuery
Note
This function is deprecated.
Use
searchInput()instead.See also
- search()¶
This signal is emitted when a the user has the search button invoked. After receiving the signal you can ask the
QHelpSearchQueryWidgetfor the search input that you may pass to the QHelpSearchEngine::search() function.- searchInput()¶
- Return type:
str
Returns a search phrase to use in combination with the QHelpSearchEngine::search(const QString &searchInput) function.
See also
- setCompactMode(on)¶
- Parameters:
on – bool
- setQuery(queryList)¶
- Parameters:
queryList – .list of QHelpSearchQuery
Note
This function is deprecated.
Use
setSearchInput()instead.See also
- setSearchInput(searchInput)¶
- Parameters:
searchInput – str
Sets the
QHelpSearchQueryWidgetinput field to the value specified bysearchInput.Note
The QHelpSearchEngine::search(const QString &
searchInput) function has to be called to perform the actual search.See also