Class: QgsExpressionHighlighter

class qgis.gui.QgsExpressionHighlighter(parent: QTextDocument = None)

Bases: PyQt5.QtGui.QSyntaxHighlighter

addFields(self, fieldList: Iterable[str])
Parameters

fieldList (Iterable[str]) –

childEvent(self, QChildEvent)
connectNotify(self, QMetaMethod)
currentBlock(self)QTextBlock
currentBlockState(self)int
currentBlockUserData(self)QTextBlockUserData
customEvent(self, QEvent)
disconnectNotify(self, QMetaMethod)
format(self, int)QTextCharFormat
highlightBlock(self, text: str)
Parameters

text (str) –

isSignalConnected(self, QMetaMethod)bool
previousBlockState(self)int
receivers(self, PYQT_SIGNAL)int
sender(self)QObject
senderSignalIndex(self)int
setCurrentBlockState(self, int)
setCurrentBlockUserData(self, QTextBlockUserData)
QgsExpressionHighlighter.setFormat(self, int, int, QTextCharFormat)

setFormat(self, int, int, Union[QColor, Qt.GlobalColor, QGradient]) setFormat(self, int, int, QFont)

timerEvent(self, QTimerEvent)