Class: QgsExpressionHighlighter¶
- class qgis.gui.QgsExpressionHighlighter(parent: QTextDocument = None)¶
Bases:
PyQt5.QtGui.QSyntaxHighlighter
Methods
- param fieldList
- param text
- 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]) → None¶
- QgsExpressionHighlighter.setFormat(self, int, int, QFont) -> None
- timerEvent(self, QTimerEvent)¶