Class: QgsPanelWidgetWrapper

Wrapper widget for existing widgets which can’t have the inheritance tree changed, e.g dialogs.

Note

Generally you should use the QgsPanelWidget class if you can and only use this wrapper if you can’t update your code.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsPanelWidgetWrapper

Base classes

QgsPanelWidget

Base class for any widget that can be shown as an inline panel.

QWidget

QObject

QPaintDevice

Subclasses

QgsTextFormatPanelWidget

A panel widget for customizing text formatting settings.

Methods

widget

Returns the internal widget that is wrapped in this panel.

class qgis.gui.QgsPanelWidgetWrapper[source]

Bases: QgsPanelWidget

__init__(widget: QWidget | None, parent: QWidget | None = None)

Wrapper widget for existing widgets which can’t have the inheritance tree changed, e.g dialogs.

Parameters:
  • widget (Optional[QWidget]) – The widget to wrap.

  • parent (Optional[QWidget] = None) – The parent widget.

widget(self) QWidget | None[source]

Returns the internal widget that is wrapped in this panel.

Return type:

Optional[QWidget]

Returns:

The internal widget. Can be None.