Class: QgsDataItemGuiContext¶
- class qgis.gui.QgsDataItemGuiContext¶
Bases:
sip.wrapper
Encapsulates the context in which a
QgsDataItem
is shown within the application GUI.New in version 3.6.
QgsDataItemGuiContext() Constructor for QgsDataItemGuiContext.
QgsDataItemGuiContext(
QgsDataItemGuiContext
)Methods
Returns the associated message bar.
Sets the associated message
bar
.Sets the associated
view
.Returns the associated view.
- messageBar(self) QgsMessageBar ¶
Returns the associated message bar.
This bar can be used to provide non-blocking feedback to users.
See also
- Return type:
- setMessageBar(self, bar: QgsMessageBar)¶
Sets the associated message
bar
.This bar can be used to provide non-blocking feedback to users.
See also
- Parameters:
bar (QgsMessageBar) –
- setView(self, view: QgsBrowserTreeView)¶
Sets the associated
view
.See also
New in version 3.28.
- Parameters:
view (QgsBrowserTreeView) –
- view(self) QgsBrowserTreeView ¶
Returns the associated view.
See also
New in version 3.28.
- Return type: