Class: QgsAnnotationItemCommonPropertiesWidget¶
- class qgis.gui.QgsAnnotationItemCommonPropertiesWidget¶
Bases:
PyQt5.QtWidgets.QWidget
A widget for configuring common properties for
QgsAnnotationItems
New in version 3.22.
QgsAnnotationItemCommonPropertiesWidget(parent: QWidget) Constructor for QgsAnnotationItemCommonPropertiesWidget.
Methods
Returns the context in which the widget is shown, e.g., the associated map canvas and expression contexts.
Sets the
context
in which the widget is shown, e.g., the associated map canvas and expression contexts.Sets the
item
whose properties should be shown in the widget.Updates an
item
, setting the properties defined in the widget.Signals
Emitted when the annotation item definition in the widget is changed by the user.
- actionEvent(self, QActionEvent)¶
- changeEvent(self, QEvent)¶
- childEvent(self, QChildEvent)¶
- closeEvent(self, QCloseEvent)¶
- connectNotify(self, QMetaMethod)¶
- context(self) QgsSymbolWidgetContext ¶
Returns the context in which the widget is shown, e.g., the associated map canvas and expression contexts.
See also
- Return type
- contextMenuEvent(self, QContextMenuEvent)¶
- create(self, window: sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)¶
- customEvent(self, QEvent)¶
- destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)¶
- disconnectNotify(self, QMetaMethod)¶
- dragEnterEvent(self, QDragEnterEvent)¶
- dragLeaveEvent(self, QDragLeaveEvent)¶
- dragMoveEvent(self, QDragMoveEvent)¶
- dropEvent(self, QDropEvent)¶
- enterEvent(self, QEvent)¶
- event(self, QEvent) bool ¶
- focusInEvent(self, QFocusEvent)¶
- focusNextChild(self) bool ¶
- focusNextPrevChild(self, bool) bool ¶
- focusOutEvent(self, QFocusEvent)¶
- focusPreviousChild(self) bool ¶
- hideEvent(self, QHideEvent)¶
- initPainter(self, QPainter)¶
- inputMethodEvent(self, QInputMethodEvent)¶
- isSignalConnected(self, QMetaMethod) bool ¶
- itemChanged¶
Emitted when the annotation item definition in the widget is changed by the user. [signal]
- keyPressEvent(self, QKeyEvent)¶
- keyReleaseEvent(self, QKeyEvent)¶
- leaveEvent(self, QEvent)¶
- metric(self, QPaintDevice.PaintDeviceMetric) int ¶
- mouseDoubleClickEvent(self, QMouseEvent)¶
- mouseMoveEvent(self, QMouseEvent)¶
- mousePressEvent(self, QMouseEvent)¶
- mouseReleaseEvent(self, QMouseEvent)¶
- moveEvent(self, QMoveEvent)¶
- nativeEvent(self, Union[QByteArray, bytes, bytearray], sip.voidptr) Tuple[bool, int] ¶
- paintEvent(self, QPaintEvent)¶
- receivers(self, PYQT_SIGNAL) int ¶
- resizeEvent(self, QResizeEvent)¶
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setContext(self, context: QgsSymbolWidgetContext)¶
Sets the
context
in which the widget is shown, e.g., the associated map canvas and expression contexts.See also
- Parameters
context (QgsSymbolWidgetContext) –
- setItem(self, item: QgsAnnotationItem)¶
Sets the
item
whose properties should be shown in the widget.- Parameters
item (QgsAnnotationItem) –
- showEvent(self, QShowEvent)¶
- tabletEvent(self, QTabletEvent)¶
- timerEvent(self, QTimerEvent)¶
- updateItem(self, item: QgsAnnotationItem)¶
Updates an
item
, setting the properties defined in the widget.- Parameters
item (QgsAnnotationItem) –
- updateMicroFocus(self)¶
- wheelEvent(self, QWheelEvent)¶