QRegularExpressionMatchIterator globalMatch(const QString &subject, qsizetype offset=0, MatchType matchType=NormalMatch, MatchOptions matchOptions=NoMatchOption) const
Attempts to perform a global match of the regular expression against the given subject string,...
\reentrant \inmodule QtGui
The QTextEdit class provides a widget that is used to edit and display both plain and rich text.
QTextDocument * document
the underlying document of the text editor.
MyHighlighter * highlighter
QList< ParenthesisInfo > parentheses
void highlightBlock(const QString &text)
[0]
MyHighlighter(QTextDocument *document)