Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions | ![]() |
The QTextTableFormat class provides formatting information for tables in a QTextDocument. More...
#include <QTextTableFormat>
Inherits QTextFrameFormat.
The QTextTableFormat class provides formatting information for tables in a QTextDocument.
A table is a group of cells ordered into rows and columns. Each table contains at least one row and one column. 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.
See also QTextTable.
Constructs a new table format object.
Returns the table's alignment.
See also setAlignment().
Returns the table's background color.
See also setBackgroundColor().
Returns the table's cell padding. This describes the distance between the border of a cell and its contents.
Returns the table's cell spacing. This describes the distance between adjacent cells.
Clears the table's background color. The default background color will be used for the table.
See also backgroundColor() and setBackgroundColor().
Returns a list of constraints used by this table format to control the appearance of columns in a table.
See also setColumnWidthConstraints().
Returns the number of columns specified by the table format.
See also setColumns().
Returns true if this table format is valid; otherwise returns false.
Sets the table's alignment.
See also alignment().
Sets the table's background color.
See also backgroundColor().
Sets the cell padding for the table. This determines the distance between the border of a cell and its contents.
Sets the cell spacing for the table. This determines the distance between adjacent cells.
Sets the column width constraints for the table.
See also columnWidthConstraints().
Sets the number of columns required by the table format.
See also columns().
Copyright © 2004 Trolltech. | Trademarks | Qt 4.0.0-tp2 |