Class: QgsHistoryWidgetContext¶
Contains settings which reflect the context in which a history widget is shown, e.g., an associated message bar.
Added in version 3.32.
Methods
Returns the message bar associated with the widget. |
|
Sets the message bar associated with the widget. |
- class qgis.gui.QgsHistoryWidgetContext[source]¶
Bases:
object
- messageBar(self) QgsMessageBar | None [source]¶
Returns the message bar associated with the widget.
See also
- Return type:
Optional[QgsMessageBar]
- setMessageBar(self, bar: QgsMessageBar | None)[source]¶
Sets the message
bar
associated with the widget. This allows the widget to push feedback messages to the appropriate message bar.See also
- Parameters:
bar (Optional[QgsMessageBar])