PySide6.QtHelp.QHelpFilterSettingsWidget¶
- class QHelpFilterSettingsWidget¶
- The - QHelpFilterSettingsWidgetclass provides a widget that allows for creating, editing and removing filters. More…- Synopsis¶- Methods¶- def - __init__()
- def - applySettings()
- def - readSettings()
 - 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¶- The instance of - QHelpFilterSettingsWidgetmay be a part of a preferences dialog. Before showing the dialog,- setAvailableComponents()and- setAvailableVersions()should be called, otherwise the filter settings widget will only offer a creation of empty filters, which wouldn’t be useful. In addition,- readSettingsshould also be called to fill up the filter settings widget with the list of filters already stored in the filter engine. The creation of new filters, modifications to existing filters and removal of unneeded filters are handled by the widget automatically. If you want to store the current state of the widget and apply it to the filter engine e.g. after the user clicked the apply button - call- applySettings().- Constructs a filter settings widget with - parentas parent widget.- applySettings(filterEngine)¶
- Parameters:
- filterEngine – - QHelpFilterEngine
- Return type:
- bool 
 
 - Writes the filter settings, currently presented in this filter settings widget, to the - filterEngine. The old settings stored in the filter engine will be overwritten. Returns- trueon success.- readSettings(filterEngine)¶
- Parameters:
- filterEngine – - QHelpFilterEngine
 
 - Reads the filter settings stored inside - filterEngineand sets up this filter settings widget accordingly.- setAvailableComponents(components)¶
- Parameters:
- components – list of strings 
 
 - Sets the list of all available components to - components.- See also - setAvailableVersions(versions)¶
- Parameters:
- versions – .list of QVersionNumber 
 
 - Sets the list of all available version numbers to - versions.- See also