QHelpFilterEngine Class
The QHelpFilterEngine class provides a filtered view of the help contents. More...
| Header: | #include <QHelpFilterEngine> |
| qmake: | QT += help |
| Since: | Qt 5.13 |
| Inherits: | QObject |
This class was introduced in Qt 5.13.
Detailed Description
The filter engine allows the management of filters associated with a QHelpEngineCore instance. The help engine internally creates an instance of the filter engine, which can be accessed by calling QHelpEngineCore::filterEngine(). Therefore, the public constructor of this class is disabled.
The filters are identified by a filter name string. Filter details are described by the QHelpFilterData class.
The filter engine allows for adding new filters and changing the existing filters' data through the setFilterData() method. An existing filter can be removed through the removeFilter() method.
Out of the registered filters one can be marked as the active one. The active filter will be used by the associated help engine for returning filtered results of many different functions, such as content, index, or search results. If no filter is marked active, the help engine returns the full results list available.
The active filter is returned by activeFilter() and it can be changed by setActiveFilter().
See also QHelpEngineCore.