Home · All Classes · Modules

QSyntaxHighlighter Class Reference
[QtGui module]

Inherits QObject.

Methods


Detailed Description


Method Documentation

QSyntaxHighlighter.__init__ (self, QTextEdit)

The QTextEdit argument, if not None, causes self to be owned by Qt instead of PyQt.

QSyntaxHighlighter.__init__ (self, QTextDocument)

The QTextDocument argument, if not None, causes self to be owned by Qt instead of PyQt.

QSyntaxHighlighter.__init__ (self, QObject)

The QObject argument, if not None, causes self to be owned by Qt instead of PyQt.

QTextBlock QSyntaxHighlighter.currentBlock (self)

int QSyntaxHighlighter.currentBlockState (self)

QTextBlockUserData QSyntaxHighlighter.currentBlockUserData (self)

QTextDocument QSyntaxHighlighter.document (self)

QTextCharFormat QSyntaxHighlighter.format (self, int)

QSyntaxHighlighter.highlightBlock (self, QString)

This method is abstract and should be reimplemented in any sub-class.

int QSyntaxHighlighter.previousBlockState (self)

QSyntaxHighlighter.rehighlight (self)

This method is also a Qt slot with the C++ signature void rehighlight().

QSyntaxHighlighter.rehighlightBlock (self, QTextBlock)

This method is also a Qt slot with the C++ signature void rehighlightBlock(const QTextBlock&).

QSyntaxHighlighter.setCurrentBlockState (self, int)

QSyntaxHighlighter.setCurrentBlockUserData (self, QTextBlockUserData)

The QTextBlockUserData argument has it's ownership transferred to Qt.

QSyntaxHighlighter.setDocument (self, QTextDocument)

QSyntaxHighlighter.setFormat (self, int, int, QTextCharFormat)

QSyntaxHighlighter.setFormat (self, int, int, QColor)

QSyntaxHighlighter.setFormat (self, int, int, QFont)


PyQt 4.8 for X11Copyright © Riverbank Computing Ltd and Nokia 2010Qt 4.7.0