![]() |
Home · All Classes · Main Classes · Annotated · Grouped Classes · Functions | ![]() |
The QTextOption class provides a description of general rich text properties. More...
#include <QTextOption>
Part of the QtGui module.
The QTextOption class provides a description of general rich text properties.
QTextOption is used to encapsulate common rich text properties in a single object. It contains information about text alignment, layout direction, word wrapping, and other standard properties associated with text rendering and layout.
See also QTextEdit, QTextDocument, and QTextCursor.
The Flags type stores an OR combination of Flag values.
This enum describes how text is wrapped in a document.
Constant | Value | Description |
---|---|---|
QTextOption::NoWrap | 0 | Text is not wrapped at all. |
QTextOption::WordWrap | 1 | Text is wrapped at word boundaries. |
QTextOption::ManualWrap | 2 | Wrapping occurs at a manually specified length from the start of the line. |
QTextOption::WrapAnywhere | 3 | Text can be wrapped at any point on a line, even if it occurs in the middle of a word. |
QTextOption::WrapAtWordBoundaryOrAnywhere | 4 | If possible, wrapping occurs at a word boundary; otherwise it will occur at the appropriate point on the line, even in the middle of a word. |
Copyright © 2005 Trolltech | Trademarks | Qt 4.0.0-b2 |