Class: QgsFontMarkerSymbolLayerWidget¶
- class qgis.gui.QgsFontMarkerSymbolLayerWidget(vl: QgsVectorLayer | None, parent: QWidget | None = None)¶
Bases:
QgsSymbolLayerWidget
Constructor for QgsFontMarkerSymbolLayerWidget.
- Parameters:
vl – associated vector layer
parent –
parent widget
Methods
Creates a new QgsFontMarkerSymbolLayerWidget.
Registers a data defined override button.
- param angle:
Set the font marker character from char.
Set the font marker character from a text string.
- param color:
Set stroke color.
- param font:
- param size:
- param layer:
- rtype:
Optional[QgsSymbolLayer]
- actionEvent(self, a0: QActionEvent | None)¶
- changeEvent(self, a0: QEvent | None)¶
- childEvent(self, a0: QChildEvent | None)¶
- closeEvent(self, a0: QCloseEvent | None)¶
- connectNotify(self, signal: QMetaMethod)¶
- contextMenuEvent(self, a0: QContextMenuEvent | None)¶
- create(vl: QgsVectorLayer | None) QgsSymbolLayerWidget | None ¶
Creates a new QgsFontMarkerSymbolLayerWidget.
- Parameters:
vl (Optional[QgsVectorLayer]) – associated vector layer
- Return type:
Optional[QgsSymbolLayerWidget]
- createExpressionContext(self) QgsExpressionContext ¶
- customEvent(self, a0: QEvent | None)¶
- destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)¶
- disconnectNotify(self, signal: QMetaMethod)¶
- dragEnterEvent(self, a0: QDragEnterEvent | None)¶
- dragLeaveEvent(self, a0: QDragLeaveEvent | None)¶
- dragMoveEvent(self, a0: QDragMoveEvent | None)¶
- dropEvent(self, a0: QDropEvent | None)¶
- enterEvent(self, a0: QEvent | None)¶
- event(self, a0: QEvent | None) bool ¶
- focusInEvent(self, a0: QFocusEvent | None)¶
- focusNextChild(self) bool ¶
- focusNextPrevChild(self, next: bool) bool ¶
- focusOutEvent(self, a0: QFocusEvent | None)¶
- focusPreviousChild(self) bool ¶
- hideEvent(self, a0: QHideEvent | None)¶
- initPainter(self, painter: QPainter | None)¶
- inputMethodEvent(self, a0: QInputMethodEvent | None)¶
- isSignalConnected(self, signal: QMetaMethod) bool ¶
- keyPressEvent(self, a0: QKeyEvent | None)¶
- keyReleaseEvent(self, a0: QKeyEvent | None)¶
- leaveEvent(self, a0: QEvent | None)¶
- metric(self, a0: QPaintDevice.PaintDeviceMetric) int ¶
- mouseDoubleClickEvent(self, a0: QMouseEvent | None)¶
- mouseMoveEvent(self, a0: QMouseEvent | None)¶
- mousePressEvent(self, a0: QMouseEvent | None)¶
- mouseReleaseEvent(self, a0: QMouseEvent | None)¶
- moveEvent(self, a0: QMoveEvent | None)¶
- nativeEvent(self, eventType: QByteArray | bytes | bytearray, message: PyQt5.sip.voidptr | None)¶
- paintEvent(self, a0: QPaintEvent | None)¶
- receivers(self, signal: PYQT_SIGNAL) int ¶
- registerDataDefinedButton(self, button: QgsPropertyOverrideButton | None, key: QgsSymbolLayer.Property)¶
Registers a data defined override button. Handles setting up connections for the button and initializing the button to show the correct descriptions and help text for the associated property.
Added in version 3.0.
- resizeEvent(self, a0: QResizeEvent | None)¶
- sender(self) QObject | None ¶
- senderSignalIndex(self) int ¶
- setAngle(self, angle: float)¶
- Parameters:
angle (float)
- setCharacter(self, chr: str)¶
Set the font marker character from char.
- Parameters:
chr (str) – the char
- setCharacterFromText(self, text: str | None)¶
Set the font marker character from a text string.
- Parameters:
text (Optional[str]) – the text string
Added in version 3.8.
- setColor(self, color: QColor | Qt.GlobalColor)¶
- Parameters:
color (Union[QColor)
- setColorStroke(self, color: QColor | Qt.GlobalColor)¶
Set stroke color.
Added in version 2.16.
- Parameters:
color (Union[QColor)
- setFontFamily(self, font: QFont)¶
- Parameters:
font (QFont)
- setSize(self, size: float)¶
- Parameters:
size (float)
- setSymbolLayer(self, layer: QgsSymbolLayer | None)¶
- Parameters:
layer (Optional[QgsSymbolLayer])
- showEvent(self, a0: QShowEvent | None)¶
- symbolLayer(self) QgsSymbolLayer | None ¶
- Return type:
Optional[QgsSymbolLayer]
- tabletEvent(self, a0: QTabletEvent | None)¶
- timerEvent(self, a0: QTimerEvent | None)¶
- updateDataDefinedProperty(self)¶
- updateMicroFocus(self)¶
- wheelEvent(self, a0: QWheelEvent | None)¶