Class: QgsSvgSelectorFilterModel¶
A model for displaying SVG files with a preview icon which can be filtered by file name. Population of the model is performed in a background thread to ensure that initial creation of the model is responsive and does not block the GUI.
Added in version 3.20.
Class Hierarchy¶
Base classes¶
- class qgis.gui.QgsSvgSelectorFilterModel[source]¶
Bases:
QSortFilterProxyModel
- __init__(parent: QObject | None, path: str | None = '', iconSize: int = 30)
Constructor for creating a model for SVG files in a specific path.
- Parameters:
parent (Optional[QObject]) – parent object
path (Optional[str] = '') – initial path, which is recursively searched
iconSize (int = 30) – desired size of SVG icons to create