QTextItem¶

PyQt5.QtGui.QTextItem

Description¶

The QTextItem class provides all the information required to draw text in a custom paint engine.

When you reimplement your own paint engine, you must reimplement drawTextItem(), a function that takes a QTextItem as one of its arguments.

Classes¶

RenderFlags

Enums¶

RenderFlag

Member

Value

Description

Overline

0x10

Paint a line above the text.

RightToLeft

0x1

Render the text from right to left.

StrikeOut

0x40

Paint a line through the text.

Underline

0x20

Paint a line under the text.

Methods¶

__init__()

TODO


__init__(QTextItem)

TODO


ascent() → float

TODO


descent() → float

TODO


font() → QFont

TODO


renderFlags() → RenderFlags

TODO


text() → str

TODO


width() → float

TODO