SyntaxHighlighterImpl QML Type
QSyntaxHighlighter bridge for QML. More...
| Import Statement: | import FluentUI.impl 1.0 |
Properties
- textDocument : TextDocument
Signals
- void highlightBlockChanged(string text)
- void textDocumentChanged()
Methods
- void setFormat(int start, int count, TextCharFormat format)
Detailed Description
The SyntaxHighlighterImpl type bridges Qt's C++ QSyntaxHighlighter to QML. It allows QML code to define syntax highlighting rules and formatting for a text document.
Property Documentation
textDocument : TextDocument
The text document to which the syntax highlighting is applied. Changing this property reassigns the highlighter to a new document.
Signal Documentation
void highlightBlockChanged(string text)
Emitted when a new block of text is about to be highlighted. Connect to this signal to apply custom highlighting rules.
Note: The corresponding handler is onHighlightBlockChanged.
void textDocumentChanged()
Emitted when the textDocument property changes.
Note: The corresponding handler is onTextDocumentChanged.
Method Documentation
void setFormat(int start, int count, TextCharFormat format)
Applies the given format to a range of text starting at start with a length of count characters.