Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions

QTextTableFormat Class Reference

The QTextTableFormat class provides formatting information for tables in a QTextDocument. More...

#include <QTextTableFormat>

Inherits QTextFrameFormat.

List of all members.

Public Functions


Detailed Description

The QTextTableFormat class provides formatting information for tables in a QTextDocument.

A table comprises one or more rows of one or more columns of cells. Each cell contains a block.

A QTextTableFormat specifies the characteristics of a table. The setColumns() function sets the number of columns; the number of rows is automatically derived based on the number of columns and the number of cells (blocks) contained in the table.


Member Function Documentation

QTextTableFormat::QTextTableFormat ()

Constructs a new QTextTableFormat.

int QTextTableFormat::columns () const

Returns the table format's number of columns.

See also setColumns().

bool QTextTableFormat::isValid () const

Returns true if this table format is valid; otherwise returns false.

void QTextTableFormat::setColumns ( int columns )

Sets the table format's number of columns to columns.

See also columns().


Copyright © 2004 Trolltech. Trademarks
Qt 4.0.0-tp1