QTextItem Class ReferenceThe QTextItem class provides all the information required to draw text in a custom paint engine. More... #include <QTextItem>
Public Types
Public Functions
Detailed DescriptionThe 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 QPaintEngine::drawTextItem(), a function that takes a QTextItem as one of its arguments. Member Type Documentation
flags QTextItem::RenderFlags |
Constant | Value | Description |
---|---|---|
QTextItem::RightToLeft | 0x1 | Render the text from right to left. |
QTextItem::Overline | 0x10 | Paint a line above the text. |
QTextItem::Underline | 0x20 | Paint a line under the text. |
QTextItem::StrikeOut | 0x40 | Paint a line through the text. |
The RenderFlags type is a typedef for QFlags<RenderFlag>. It stores an OR combination of RenderFlag values.
Corresponds to the ascent of the piece of text that is drawn.
Corresponds to the descent of the piece of text that is drawn.
Returns the font that should be used to draw the text.
Returns the render flags used.
Returns the text that should be drawn.
Specifies the total width of the text to be drawn.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.