Subgroup: other
Class: QgsGui¶
-
class
qgis.gui.
QgsGui
¶ Bases:
sip.wrapper
QgsGui is a singleton class containing various registry and other global members related to GUI classes.
New in version 3.0: Methods
editorWidgetRegistry
Returns the global editor widget registry, used for managing all known edit widget factories. enableAutoGeometryRestore
Register the widget to allow its position to be automatically saved and restored when open and closed. instance
Returns a pointer to the singleton instance. layerTreeEmbeddedWidgetRegistry
Returns the global layer tree embedded widget registry, used for registering widgets that may be embedded into layer tree view. layoutItemGuiRegistry
Returns the global layout item GUI registry, used for registering the GUI behavior of layout items. mapLayerActionRegistry
Returns the global map layer action registry, used for registering map layer actions. shortcutsManager
Returns the global shortcuts manager, used for managing a QAction and QShortcut sequences. sourceSelectProviderRegistry
Returns the global source select provider registry, used for managing all known source select widget factories. Attributes
-
editorWidgetRegistry
() → QgsEditorWidgetRegistry¶ Returns the global editor widget registry, used for managing all known edit widget factories.
-
enableAutoGeometryRestore
(widget: QWidget, key: str = '')¶ Register the widget to allow its position to be automatically saved and restored when open and closed. Use this to avoid needing to call saveGeometry() and restoreGeometry() on your widget.
-
instance
() → QgsGui¶ Returns a pointer to the singleton instance.
-
layerTreeEmbeddedWidgetRegistry
() → QgsLayerTreeEmbeddedWidgetRegistry¶ Returns the global layer tree embedded widget registry, used for registering widgets that may be embedded into layer tree view.
-
layoutItemGuiRegistry
() → QgsLayoutItemGuiRegistry¶ Returns the global layout item GUI registry, used for registering the GUI behavior of layout items.
-
mapLayerActionRegistry
() → QgsMapLayerActionRegistry¶ Returns the global map layer action registry, used for registering map layer actions.
-
shortcutsManager
() → QgsShortcutsManager¶ Returns the global shortcuts manager, used for managing a QAction and QShortcut sequences.
-
sourceSelectProviderRegistry
() → QgsSourceSelectProviderRegistry¶ Returns the global source select provider registry, used for managing all known source select widget factories.
-