Class: QgsProxyStyle

A QProxyStyle subclass which correctly sets the base style to match the QGIS application style, and handles object lifetime by correctly parenting to a parent widget.

Added in version 3.2.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsProxyStyle

Base classes

QProxyStyle

QCommonStyle

QStyle

QObject

class qgis.gui.QgsProxyStyle[source]

Bases: QProxyStyle

__init__(parent: QWidget | None)

Constructor for QgsProxyStyle. Ownership is transferred to the parent widget.

The base style for the QProxyStyle will be set to match the current QGIS application style.

Parameters:

parent (Optional[QWidget])