QPyTextObject Class Reference

[ QtGui module]

继承 QObject and QTextObjectInterface .

方法


详细描述

The QPyTextObject class is provided to work around the fact that it is not possible for a Python class to derive from multiple Qt classes.

In order to create new types of text object that you can add to a QTextDocument you should implement a Python class derived from QPyTextObject rather than one derived from QObject and QTextObjectInterface .


方法文档编制

QPyTextObject.__init__ ( self , QObject   parent  = None)

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