Class: QgsExpressionHighlighter

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

Bases: PyQt5.QtGui.QSyntaxHighlighter

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

fieldList (Iterable[Optional[str]])

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

text (Optional[str])

isSignalConnected(self, signal: QMetaMethod) bool
previousBlockState(self) int
receivers(self, signal: PYQT_SIGNAL) int
sender(self) QObject | None
senderSignalIndex(self) int
setCurrentBlockState(self, newState: int)
setCurrentBlockUserData(self, data: QTextBlockUserData | None)
setFormat(self, start: int, count: int, format: QTextCharFormat)
setFormat(self, start: int, count: int, color: QColor | Qt.GlobalColor) None
setFormat(self, start: int, count: int, font: QFont) None
timerEvent(self, a0: QTimerEvent | None)