Subgroup: Text

Class: QgsTextFormatPanelWidget

class qgis.gui.QgsTextFormatPanelWidget(format: QgsTextFormat, mapCanvas: QgsMapCanvas = None, parent: QWidget = 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

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()
setDockMode(self, dockMode: bool)
sharedPainter()
showEvent()
tabletEvent()
timerEvent()
updateMicroFocus()
wheelEvent()