QgsSvgSelectorListModel class

A model for displaying SVG files with a preview icon.

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.

Constructors, destructors, conversion operators

QgsSvgSelectorListModel(QObject* parent, int iconSize = 30)
Constructor for QgsSvgSelectorListModel.
QgsSvgSelectorListModel(QObject* parent, const QString& path, int iconSize = 30)
Constructor for creating a model for SVG files in a specific path.

Function documentation

QgsSvgSelectorListModel::QgsSvgSelectorListModel(QObject* parent, int iconSize = 30)

Constructor for QgsSvgSelectorListModel.

Parameters
parent parent object
iconSize desired size of SVG icons to create

All SVGs in folders from the application SVG search paths will be shown.

QgsSvgSelectorListModel::QgsSvgSelectorListModel(QObject* parent, const QString& path, int iconSize = 30)

Constructor for creating a model for SVG files in a specific path.

Parameters
parent parent object
path initial path, which is recursively searched
iconSize desired size of SVG icons to create