Home · All Classes · Main Classes · Annotated · Grouped Classes · Functions

QTextOption Class Reference

The QTextOption class provides a description of general rich text properties. More...

#include <QTextOption>

Part of the QtGui module.

Public Types

Public Functions


Detailed Description

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.


Member Type Documentation

enum QTextOption::Flag
flags QTextOption::Flags

The Flags type stores an OR combination of Flag values.

enum QTextOption::WrapMode

This enum describes how text is wrapped in a document.

ConstantValueDescription
QTextOption::NoWrap0Text is not wrapped at all.
QTextOption::WordWrap1Text is wrapped at word boundaries.
QTextOption::ManualWrap2Wrapping occurs at a manually specified length from the start of the line.
QTextOption::WrapAnywhere3Text can be wrapped at any point on a line, even if it occurs in the middle of a word.
QTextOption::WrapAtWordBoundaryOrAnywhere4If 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.

Member Function Documentation

QTextOption::QTextOption ()

QTextOption::QTextOption ( Qt::Alignment alignment )

QTextOption::QTextOption ( const QTextOption & o )

QTextOption::~QTextOption ()

Qt::Alignment QTextOption::alignment () const

Flags QTextOption::flags () const

void QTextOption::setAlignment ( Qt::Alignment alignment )

void QTextOption::setFlags ( Flags flags )

void QTextOption::setTabArray ( QList<qreal> tabStops )

void QTextOption::setTabStop ( qreal tabStop )

void QTextOption::setTextDirection ( Qt::LayoutDirection aDirection )

void QTextOption::setUseDesignMetrics ( bool b )

void QTextOption::setWrapMode ( WrapMode wrap )

QList<qreal> QTextOption::tabArray () const

qreal QTextOption::tabStop () const

Qt::LayoutDirection QTextOption::textDirection () const

bool QTextOption::useDesignMetrics () const

WrapMode QTextOption::wrapMode () const

QTextOption & QTextOption::operator= ( const QTextOption & o )


Copyright © 2005 Trolltech Trademarks
Qt 4.0.0-b2