QTextFormat Class Reference
[QtGui module]
Inherited by QTextBlockFormat, QTextCharFormat, QTextFrameFormat and QTextListFormat.
Types
- enum FormatType { InvalidFormat, BlockFormat, CharFormat, ListFormat, ..., UserFormat }
- enum ObjectTypes { NoObject, ImageObject, TableObject, TableCellObject, UserObject }
- enum PageBreakFlag { PageBreak_Auto, PageBreak_AlwaysBefore, PageBreak_AlwaysAfter }
- class PageBreakFlags
- enum Property { ObjectIndex, CssFloat, LayoutDirection, OutlinePen, ..., UserProperty }
Methods
- __init__ (self)
- __init__ (self, int)
- __init__ (self, QTextFormat)
- __init__ (self, QVariant variant)
- QBrush background (self)
- bool boolProperty (self, int)
- QBrush brushProperty (self, int)
- clearBackground (self)
- clearForeground (self)
- clearProperty (self, int)
- QColor colorProperty (self, int)
- float doubleProperty (self, int)
- QBrush foreground (self)
- bool hasProperty (self, int)
- int intProperty (self, int)
- bool isBlockFormat (self)
- bool isCharFormat (self)
- bool isFrameFormat (self)
- bool isImageFormat (self)
- bool isListFormat (self)
- bool isTableCellFormat (self)
- bool isTableFormat (self)
- bool isValid (self)
- Qt.LayoutDirection layoutDirection (self)
- QTextLength lengthProperty (self, int)
- list-of-QTextLength lengthVectorProperty (self, int)
- merge (self, QTextFormat)
- int objectIndex (self)
- int objectType (self)
- QPen penProperty (self, int)
- dict-of-int-QVariant properties (self)
- QVariant property (self, int)
- int propertyCount (self)
- setBackground (self, QBrush)
- setForeground (self, QBrush)
- setLayoutDirection (self, Qt.LayoutDirection)
- setObjectIndex (self, int)
- setObjectType (self, int)
- setProperty (self, int, QVariant)
- setProperty (self, int, list-of-QTextLength)
- QString stringProperty (self, int)
- QTextBlockFormat toBlockFormat (self)
- QTextCharFormat toCharFormat (self)
- QTextFrameFormat toFrameFormat (self)
- QTextImageFormat toImageFormat (self)
- QTextListFormat toListFormat (self)
- QTextTableCellFormat toTableCellFormat (self)
- QTextTableFormat toTableFormat (self)
- int type (self)
Special Methods
- bool __eq__ (self, QTextFormat)
- bool __ne__ (self, QTextFormat)
Detailed Description
Type Documentation
QTextFormat.FormatType
QTextFormat.ObjectTypes
QTextFormat.PageBreakFlag
QTextFormat.Property
Method Documentation
QTextFormat.__init__ (self)
QTextFormat.__init__ (self, int)
QTextFormat.__init__ (self, QTextFormat)
QTextFormat.__init__ (self, QVariant variant)
QBrush QTextFormat.background (self)
bool QTextFormat.boolProperty (self, int)
QBrush QTextFormat.brushProperty (self, int)
QTextFormat.clearBackground (self)
QTextFormat.clearForeground (self)
QTextFormat.clearProperty (self, int)
QColor QTextFormat.colorProperty (self, int)
float QTextFormat.doubleProperty (self, int)
QBrush QTextFormat.foreground (self)
bool QTextFormat.hasProperty (self, int)
int QTextFormat.intProperty (self, int)
bool QTextFormat.isBlockFormat (self)
bool QTextFormat.isCharFormat (self)
bool QTextFormat.isFrameFormat (self)
bool QTextFormat.isImageFormat (self)
bool QTextFormat.isListFormat (self)
bool QTextFormat.isTableCellFormat (self)
bool QTextFormat.isTableFormat (self)
bool QTextFormat.isValid (self)
QTextLength QTextFormat.lengthProperty (self, int)
list-of-QTextLength QTextFormat.lengthVectorProperty (self, int)
QTextFormat.merge (self, QTextFormat)
int QTextFormat.objectIndex (self)
int QTextFormat.objectType (self)
QPen QTextFormat.penProperty (self, int)
dict-of-int-QVariant QTextFormat.properties (self)
QVariant QTextFormat.property (self, int)
int QTextFormat.propertyCount (self)
QTextFormat.setBackground (self, QBrush)
QTextFormat.setForeground (self, QBrush)
QTextFormat.setLayoutDirection (self, Qt.LayoutDirection)
QTextFormat.setObjectIndex (self, int)
QTextFormat.setObjectType (self, int)
QTextFormat.setProperty (self, int, QVariant)
QTextFormat.setProperty (self, int, list-of-QTextLength)
QString QTextFormat.stringProperty (self, int)
QTextBlockFormat QTextFormat.toBlockFormat (self)
QTextCharFormat QTextFormat.toCharFormat (self)
QTextFrameFormat QTextFormat.toFrameFormat (self)
QTextImageFormat QTextFormat.toImageFormat (self)
QTextListFormat QTextFormat.toListFormat (self)
QTextTableFormat QTextFormat.toTableFormat (self)
int QTextFormat.type (self)
bool QTextFormat.__eq__ (self, QTextFormat)
bool QTextFormat.__ne__ (self, QTextFormat)