QTextTable Class Reference |
Suppose we have a 2x6 table of names and addresses. To merge both columns in the first row we invoke mergeCells() with row = 0, column = 0, numRows = 1 and numColumns = 2.table->mergeCells(0, 0, 1, 2); | |
This gives us the following table. To split the first row of the table back into two cells, we invoke the splitCell() function with numRows and numCols = 1.table->splitCell(0, 0, 1, 1); | |
This results in the original table. |
See also QTextTableFormat.
Returns the table cell at the given row and column in the table.
See also columns() and rows().
This is an overloaded member function, provided for convenience.
Returns the table cell that contains the character at the given position in the document.
This is an overloaded member function, provided for convenience.
Returns the table cell containing the given cursor.
Returns the number of columns in the table.
See also rows().
Returns the table's format.
See also setFormat().
Inserts a number of columns before the column with the specified index.
See also insertRows(), resize(), removeRows(), and removeColumns().
Inserts a number of rows before the row with the specified index.
See also resize(), insertColumns(), removeRows(), and removeColumns().
Merges the cell at the specified row and column with the adjacent cells into one cell. The new cell will span numRows rows and numCols columns. If numRows or numCols is less than the current number of rows or columns the cell spans then this method does nothing.
This function was introduced in Qt 4.1.
See also splitCell().
This is an overloaded member function, provided for convenience.
Merges the cells selected by the provided cursor.
This function was introduced in Qt 4.1.
See also splitCell().
Removes a number of columns starting with the column at the specified index.
See also insertRows(), insertColumns(), removeRows(), and resize().
Removes a number of rows starting with the row at the specified index.
See also insertRows(), insertColumns(), resize(), and removeColumns().
Resizes the table to contain the required number of rows and columns.
See also insertRows(), insertColumns(), removeRows(), and removeColumns().
Returns a cursor pointing to the end of the row that contains the given cursor.
See also rowStart().
Returns a cursor pointing to the start of the row that contains the given cursor.
See also rowEnd().
Returns the number of rows in the table.
See also columns().
Sets the table's format.
See also format().
Splits the specified cell at row and column into an array of multiple cells with dimensions specified by numRows and numCols.
Note: It is only possible to split cells that span multiple rows or columns, such as rows that have been merged using mergeCells().
This function was introduced in Qt 4.1.
See also mergeCells().
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt 4.3 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com