Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions | ![]() |
The QTextTable class represents a table in a QTextDocument. More...
#include <QTextTable>
Inherits QTextFrame.
The QTextTable class represents a table in a QTextDocument.
Tables can be created using QTextCursor::createTable() and queried with QTextCursor::currentTable().
A table's size can be changed with resize(), or by using insertRows(), insertColumns(), removeRows(), or removeColumns(). The overall format of the table can be changed with setFormat(). Use cellAt() to retrieve a QTextTableCell object that gives the properties of a given cell.
The cursor position of table rows in the document is available from rowStart() and rowEnd().
Returns a QTextTableCell object that describes the properties of the specified table cell. The cell is identified by its row and col.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
The cell is identified by its position.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
The cell is identified by its cursor position, c.
Returns the number of columns in the table.
See also rows().
Returns the table's format.
See also setFormat().
Inserts num colums before column pos.
See also insertRows(), resize(), removeRows(), and removeColumns().
Inserts num rows before row pos.
See also resize(), insertColumns(), removeRows(), and removeColumns().
Removes num columns starting at column pos.
See also insertRows(), insertColumns(), removeRows(), and resize().
Removes num rows starting at row pos.
See also insertRows(), insertColumns(), resize(), and removeColumns().
Resizes the table to rows rows and cols cols.
See also insertRows(), insertColumns(), removeRows(), and removeColumns().
Returns a QTextCursor pointing to the end of the row that contains cursor position c.
See also rowStart().
Returns a QTextCursor pointing to the start of the row that contains cursor position c.
See also rowEnd().
Returns the number of rows in the table.
See also columns().
Sets the table's format to format.
See also format().
Copyright © 2004 Trolltech. | Trademarks | Qt 4.0.0-tp1 |