Class: QgsTextFormatPanelWidget

class qgis.gui.QgsTextFormatPanelWidget(format: QgsTextFormat, mapCanvas: QgsMapCanvas = None, parent: QWidget = None, layer: QgsVectorLayer = None)

Bases: qgis._gui.QgsPanelWidgetWrapper

Constructor for QgsTextFormatPanelWidget.

Parameters
  • format – initial format settings to show in dialog

  • mapCanvas – optional associated map canvas

  • parent – parent widget

  • layer – associated layer

A panel widget for customizing text formatting settings.

QgsTextFormatPanelWidget provides a panel widget for controlling the appearance of text rendered using QgsTextRenderer. The dialog includes all settings contained within a QgsTextFormat, including shadow, background and buffer.

actionEvent()
changeEvent()
childEvent()
closeEvent()
connectNotify()
contextMenuEvent()
create()
customEvent()
destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
enterEvent()
event()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
format(self) → QgsTextFormat

Returns the current formatting settings defined by the widget.

hideEvent()
initPainter()
inputMethodEvent()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
leaveEvent()
metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
receivers()
resizeEvent()
sender()
senderSignalIndex()
setContext(self, context: QgsSymbolWidgetContext)

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

New in version 3.10.

setDockMode(self, dockMode: bool)
sharedPainter()
showEvent()
tabletEvent()
timerEvent()
updateMicroFocus()
wheelEvent()