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

actionEvent

changeEvent

childEvent

closeEvent

connectNotify

context

Returns the context in which the widget is shown, e.g., the associated map canvas and expression contexts.

contextMenuEvent

create

customEvent

destroy

disconnectNotify

dragEnterEvent

dragLeaveEvent

dragMoveEvent

dropEvent

enterEvent

event

focusInEvent

focusNextChild

focusNextPrevChild

focusOutEvent

focusPreviousChild

hideEvent

initPainter

inputMethodEvent

isSignalConnected

keyPressEvent

keyReleaseEvent

leaveEvent

metric

mouseDoubleClickEvent

mouseMoveEvent

mousePressEvent

mouseReleaseEvent

moveEvent

nativeEvent

paintEvent

receivers

resizeEvent

sender

senderSignalIndex

setContext

Sets the context in which the widget is shown, e.g., the associated map canvas and expression contexts.

setItem

Sets the item whose properties should be shown in the widget.

sharedPainter

showEvent

tabletEvent

timerEvent

updateItem

Updates an item, setting the properties defined in the widget.

updateMicroFocus

wheelEvent

Signals

itemChanged

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

setContext()

Return type

QgsSymbolWidgetContext

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

context()

Parameters

context (QgsSymbolWidgetContext) –

setItem(self, item: QgsAnnotationItem)

Sets the item whose properties should be shown in the widget.

Parameters

item (QgsAnnotationItem) –

sharedPainter(self) QPainter
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)