<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # QTextTable Class Reference ## [[QtGui](index.htm) module] 該QTextTable類表示一個表[QTextDocument](qtextdocument.html)。[More...](#details) 繼承[QTextFrame](qtextframe.html)。 ### Methods * `__init__ (self, QTextDocument?doc)` * `appendColumns (self, int?count)` * `appendRows (self, int?count)` * `QTextTableCell cellAt (self, int?row, int?col)` * `QTextTableCell cellAt (self, int?position)` * `QTextTableCell cellAt (self, QTextCursor?c)` * `int columns (self)` * `QTextTableFormat format (self)` * `insertColumns (self, int?pos, int?num)` * `insertRows (self, int?pos, int?num)` * `mergeCells (self, int?row, int?col, int?numRows, int?numCols)` * `mergeCells (self, QTextCursor?cursor)` * `removeColumns (self, int?pos, int?num)` * `removeRows (self, int?pos, int?num)` * `resize (self, int?rows, int?cols)` * `QTextCursor rowEnd (self, QTextCursor?c)` * `int rows (self)` * `QTextCursor rowStart (self, QTextCursor?c)` * `setFormat (self, QTextTableFormat?aformat)` * `splitCell (self, int?row, int?col, int?numRows, int?numCols)` * * * ## Detailed Description 該QTextTable類表示一個表[QTextDocument](qtextdocument.html)。 表是一組細胞有序的行和列。每個表包含至少一行和一列。每個小區包含一個塊,并且是由一個幀所包圍。 表通常被創建和插入到與一個文件[QTextCursor.insertTable](qtextcursor.html#insertTable)()函數。例如,我們可以使用下面的代碼行在編輯器中當前光標位置插入一個表格三行兩列: ``` [QTextCursor](qtextcursor.html) cursor(editor->textCursor()); cursor.movePosition([QTextCursor](qtextcursor.html).Start); QTextTable *table = cursor.insertTable(rows, columns, tableFormat); ``` 在創建或更新版本改變時,該表與表格式要么是定義[setFormat](qtexttable.html#setFormat)( ) 。 當前正在編輯光標找到該表與[QTextCursor.currentTable](qtextcursor.html#currentTable)( ) 。這使得它的格式或尺寸后,它已經被插入到一個文件被改變。 一個表的大小可以用改變[resize](qtexttable.html#resize)() ,或者通過使用[insertRows](qtexttable.html#insertRows)( )[insertColumns](qtexttable.html#insertColumns)( )[removeRows](qtexttable.html#removeRows)() ,或[removeColumns](qtexttable.html#removeColumns)( ) 。使用[cellAt](qtexttable.html#cellAt)( )來檢索表格單元格。 表行的起始位置和結束位置可以通過移動光標在表內,并使用被發現[rowStart](qtexttable.html#rowStart)()和[rowEnd](qtexttable.html#rowEnd)( )函數的開始和每一行的末端,獲得游標。 一個QTextTable內的行和列可以進行合并和拆分使用的[mergeCells](qtexttable.html#mergeCells)()和[splitCell](qtexttable.html#splitCell)()函數。然而,只有跨越多個行或列的單元可以拆分。 (合并或拆分不增加或減少的行數和列數。 ) 請注意,如果你已經合并了多個列和行到一個單元格,你將無法在合并單元格拆分成跨越多個行或列新的細胞。為了能夠拆分單元格跨越了你需要這樣做了幾個迭代若干行和列。 | ![Original Table](https://img.kancloud.cn/fe/95/fe95b0c27b3007540565ca46d021261f_138x69.png) | Suppose we have a 2x3 table of names and addresses. To merge both columns in the first row we invoke [mergeCells](qtexttable.html#mergeCells)() with _row_ = 0, _column_ = 0, _numRows_ = 1 and _numColumns_ = 2. ``` table-&gt;mergeCells(0, 0, 1, 2); ``` | | ![](https://img.kancloud.cn/15/72/1572febe9f01d5b9313fdc1b51bc6c12_120x70.png) | This gives us the following table. To split the first row of the table back into two cells, we invoke the [splitCell](qtexttable.html#splitCell)() function with _numRows_ and _numCols_ = 1. ``` table-&gt;splitCell(0, 0, 1, 1); ``` | | ![Split Table](https://img.kancloud.cn/fe/95/fe95b0c27b3007540565ca46d021261f_138x69.png) | This results in the original table. | * * * ## Method Documentation ``` QTextTable.__init__ (self, QTextDocument?doc) ``` ``` QTextTable.appendColumns (self, int?count) ``` 追加可_count_列的右側的表。 此功能被引入Qt的4.5 。 **See also** [insertColumns](qtexttable.html#insertColumns)( )[insertRows](qtexttable.html#insertRows)( )[resize](qtexttable.html#resize)( )[removeRows](qtexttable.html#removeRows)( )[removeColumns](qtexttable.html#removeColumns)()和[appendRows](qtexttable.html#appendRows)( ) 。 ``` QTextTable.appendRows (self, int?count) ``` 追加可_count_行于該表的底部。 此功能被引入Qt的4.5 。 **See also** [insertColumns](qtexttable.html#insertColumns)( )[insertRows](qtexttable.html#insertRows)( )[resize](qtexttable.html#resize)( )[removeRows](qtexttable.html#removeRows)( )[removeColumns](qtexttable.html#removeColumns)()和[appendColumns](qtexttable.html#appendColumns)( ) 。 ``` QTextTableCell QTextTable.cellAt (self, int?row, int?col) ``` [ 返回表格單元在給定的_row_和_column_在表中。 ](qtexttablecell.html) [**See also**](qtexttablecell.html) [columns](qtexttable.html#columns)()和[rows](qtexttable.html#rows)( ) 。 ``` QTextTableCell QTextTable.cellAt (self, int?position) ``` [ 這是一個重載函數。 返回包含字符在給定的表格單元格_position_在文檔中。 ](qtexttablecell.html) ``` QTextTableCell QTextTable.cellAt (self, QTextCursor?c) ``` [ 這是一個重載函數。 返回包含給定的表格單元格_cursor_。 ``` int QTextTable.columns (self) ``` 返回的列在表中的編號。 ](qtexttablecell.html) [**See also**](qtexttablecell.html) [rows](qtexttable.html#rows)( ) 。 ``` QTextTableFormat QTextTable.format (self) ``` [ 返回表的格式。 ](qtexttableformat.html) [**See also**](qtexttableformat.html) [setFormat](qtexttable.html#setFormat)( ) 。 ``` QTextTable.insertColumns (self, int?pos, int?num) ``` 插入一個編號的_columns_與指定的列前_index_。 **See also** [insertRows](qtexttable.html#insertRows)( )[resize](qtexttable.html#resize)( )[removeRows](qtexttable.html#removeRows)( )[removeColumns](qtexttable.html#removeColumns)( )[appendRows](qtexttable.html#appendRows)()和[appendColumns](qtexttable.html#appendColumns)( ) 。 ``` QTextTable.insertRows (self, int?pos, int?num) ``` 插入一個編號的_rows_具有指定的行之前_index_。 **See also** [resize](qtexttable.html#resize)( )[insertColumns](qtexttable.html#insertColumns)( )[removeRows](qtexttable.html#removeRows)( )[removeColumns](qtexttable.html#removeColumns)( )[appendRows](qtexttable.html#appendRows)()和[appendColumns](qtexttable.html#appendColumns)( ) 。 ``` QTextTable.mergeCells (self, int?row, int?col, int?numRows, int?numCols) ``` 合并的單元格中的指定_row_和_column_與相鄰的細胞進入一個小區。新的細胞將跨越_numRows_行和_numCols_列。如果_numRows_ or _numCols_小于行或列的單元格跨越的當前數目,則此方法不執行任何操作。 這個函數是Qt 4.1中引入。 **See also** [splitCell](qtexttable.html#splitCell)( ) 。 ``` QTextTable.mergeCells (self, QTextCursor?cursor) ``` 這是一個重載函數。 合并由提供選擇的單元_cursor_。 這個函數是Qt 4.1中引入。 **See also** [splitCell](qtexttable.html#splitCell)( ) 。 ``` QTextTable.removeColumns (self, int?pos, int?num) ``` 除去了一些_columns_開始在指定的列_index_。 **See also** [insertRows](qtexttable.html#insertRows)( )[insertColumns](qtexttable.html#insertColumns)( )[removeRows](qtexttable.html#removeRows)( )[resize](qtexttable.html#resize)( )[appendRows](qtexttable.html#appendRows)()和[appendColumns](qtexttable.html#appendColumns)( ) 。 ``` QTextTable.removeRows (self, int?pos, int?num) ``` 除去了一些_rows_開始的行中的指定_index_。 **See also** [insertRows](qtexttable.html#insertRows)( )[insertColumns](qtexttable.html#insertColumns)( )[resize](qtexttable.html#resize)( )[removeColumns](qtexttable.html#removeColumns)( )[appendRows](qtexttable.html#appendRows)()和[appendColumns](qtexttable.html#appendColumns)( ) 。 ``` QTextTable.resize (self, int?rows, int?cols) ``` 調整大小的表包含所需數量的_rows_和_columns_。 **See also** [insertRows](qtexttable.html#insertRows)( )[insertColumns](qtexttable.html#insertColumns)( )[removeRows](qtexttable.html#removeRows)()和[removeColumns](qtexttable.html#removeColumns)( ) 。 ``` QTextCursor QTextTable.rowEnd (self, QTextCursor?c) ``` [ 返回一個指針指向該行的末尾包含給定_cursor_。 ](qtextcursor.html) [**See also**](qtextcursor.html) [rowStart](qtexttable.html#rowStart)( ) 。 ``` int QTextTable.rows (self) ``` 返回行的表的數目。 **See also** [columns](qtexttable.html#columns)( ) 。 ``` QTextCursor QTextTable.rowStart (self, QTextCursor?c) ``` [ 返回一個指針指向該行的開始,包含給定的_cursor_。 ](qtextcursor.html) [**See also**](qtextcursor.html) [rowEnd](qtexttable.html#rowEnd)( ) 。 ``` QTextTable.setFormat (self, QTextTableFormat?aformat) ``` 設置表的_format_。 **See also** [format](qtexttable.html#format)( ) 。 ``` QTextTable.splitCell (self, int?row, int?col, int?numRows, int?numCols) ``` 拆分在指定的單元格_row_和_column_成多個細胞與指定尺寸的數組_numRows_和_numCols_。 **Note:**這是唯一可能的分裂跨越多行或多列的細胞,如已使用合并的行[mergeCells](qtexttable.html#mergeCells)( ) 。 這個函數是Qt 4.1中引入。 **See also** [mergeCells](qtexttable.html#mergeCells)( ) 。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看