~ubuntu-branches/ubuntu/precise/python-qt4/precise-proposed

« back to all changes in this revision

Viewing changes to doc/html/qtexttable.html

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell, Jonathan Riddell
  • Date: 2010-11-08 16:13:33 UTC
  • mfrom: (1.5.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20101108161333-0nec4wu0nz3wpf9r
Tags: 4.8.1-0ubuntu1
[ Jonathan Riddell ]
* New upstream release
* Build against python-sip-dev 4.11.2
* Remove kubuntu_02_fix-scpk-and-flag-issue.diff merged upstream
* Install __init__.py into /usr/lib/python3.2/dist-packages/PyQt4,
  fixes Python 3 support
* Add QtDeclarative to python-qt4
* Add kubuntu_03_uiparser.diff from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
tr.address { font-family: sans-serif }
8
8
body { background: #ffffff; color: black; }
9
9
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QTextTable Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QTextTable class represents a table in a <a href="qtextdocument.html">QTextDocument</a>. <a href="#details">More...</a></p>
 
10
 
10
11
<p>Inherits <a href="qtextframe.html">QTextFrame</a>.</p><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qtexttable.html#QTextTable">__init__</a></b> (<i>self</i>, QTextDocument)</li><li><div class="fn" /><b><a href="qtexttable.html#appendColumns">appendColumns</a></b> (<i>self</i>, int)</li><li><div class="fn" /><b><a href="qtexttable.html#appendRows">appendRows</a></b> (<i>self</i>, int)</li><li><div class="fn" />QTextTableCell <b><a href="qtexttable.html#cellAt">cellAt</a></b> (<i>self</i>, int, int)</li><li><div class="fn" />QTextTableCell <b><a href="qtexttable.html#cellAt-2">cellAt</a></b> (<i>self</i>, int)</li><li><div class="fn" />QTextTableCell <b><a href="qtexttable.html#cellAt-3">cellAt</a></b> (<i>self</i>, QTextCursor)</li><li><div class="fn" />int <b><a href="qtexttable.html#columns">columns</a></b> (<i>self</i>)</li><li><div class="fn" />QTextTableFormat <b><a href="qtexttable.html#format">format</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qtexttable.html#insertColumns">insertColumns</a></b> (<i>self</i>, int, int)</li><li><div class="fn" /><b><a href="qtexttable.html#insertRows">insertRows</a></b> (<i>self</i>, int, int)</li><li><div class="fn" /><b><a href="qtexttable.html#mergeCells">mergeCells</a></b> (<i>self</i>, int, int, int, int)</li><li><div class="fn" /><b><a href="qtexttable.html#mergeCells-2">mergeCells</a></b> (<i>self</i>, QTextCursor)</li><li><div class="fn" /><b><a href="qtexttable.html#removeColumns">removeColumns</a></b> (<i>self</i>, int, int)</li><li><div class="fn" /><b><a href="qtexttable.html#removeRows">removeRows</a></b> (<i>self</i>, int, int)</li><li><div class="fn" /><b><a href="qtexttable.html#resize">resize</a></b> (<i>self</i>, int, int)</li><li><div class="fn" />QTextCursor <b><a href="qtexttable.html#rowEnd">rowEnd</a></b> (<i>self</i>, QTextCursor)</li><li><div class="fn" />int <b><a href="qtexttable.html#rows">rows</a></b> (<i>self</i>)</li><li><div class="fn" />QTextCursor <b><a href="qtexttable.html#rowStart">rowStart</a></b> (<i>self</i>, QTextCursor)</li><li><div class="fn" /><b><a href="qtexttable.html#setFormat">setFormat</a></b> (<i>self</i>, QTextTableFormat)</li><li><div class="fn" /><b><a href="qtexttable.html#splitCell">splitCell</a></b> (<i>self</i>, int, int, int, int)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QTextTable class represents a table in a <a href="qtextdocument.html">QTextDocument</a>.</p>
11
 
<p>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, and is surrounded by a frame.</p>
12
 
<p>Tables are usually created and inserted into a document with the <a href="qtextcursor.html#insertTable">QTextCursor.insertTable</a>() function. For example, we can insert a table with three rows and two columns at the current cursor position in an editor using the following lines of code:</p>
13
 
<pre>     QTextCursor cursor(editor-&gt;textCursor());
 
12
<p>A table is a group of cells ordered into rows and columns. Each
 
13
table contains at least one row and one column. Each cell contains
 
14
a block, and is surrounded by a frame.</p>
 
15
<p>Tables are usually created and inserted into a document with the
 
16
<a href="qtextcursor.html#insertTable">QTextCursor.insertTable</a>()
 
17
function. For example, we can insert a table with three rows and
 
18
two columns at the current cursor position in an editor using the
 
19
following lines of code:</p>
 
20
<pre class="highlightedCode brush: cpp">
 
21
     QTextCursor cursor(editor-&gt;textCursor());
14
22
     cursor.movePosition(QTextCursor.Start);
15
23
 
16
 
     QTextTable *table = cursor.insertTable(rows, columns, tableFormat);</pre>
17
 
<p>The table format is either defined when the table is created or changed later with <a href="qtexttable.html#setFormat">setFormat</a>().</p>
18
 
<p>The table currently being edited by the cursor is found with <a href="qtextcursor.html#currentTable">QTextCursor.currentTable</a>(). This allows its format or dimensions to be changed after it has been inserted into a document.</p>
 
24
     QTextTable *table = cursor.insertTable(rows, columns, tableFormat);
 
25
</pre>
 
26
<p>The table format is either defined when the table is created or
 
27
changed later with <a href="qtexttable.html#setFormat">setFormat</a>().</p>
 
28
<p>The table currently being edited by the cursor is found with
 
29
<a href="qtextcursor.html#currentTable">QTextCursor.currentTable</a>().
 
30
This allows its format or dimensions to be changed after it has
 
31
been inserted into a document.</p>
19
32
<p>A table's size can be changed with <a href="qtexttable.html#resize">resize</a>(), or by using <a href="qtexttable.html#insertRows">insertRows</a>(), <a href="qtexttable.html#insertColumns">insertColumns</a>(), <a href="qtexttable.html#removeRows">removeRows</a>(), or <a href="qtexttable.html#removeColumns">removeColumns</a>(). Use <a href="qtexttable.html#cellAt">cellAt</a>() to retrieve table cells.</p>
20
 
<p>The starting and ending positions of table rows can be found by moving a cursor within a table, and using the <a href="qtexttable.html#rowStart">rowStart</a>() and <a href="qtexttable.html#rowEnd">rowEnd</a>() functions to obtain cursors at the start and end of each row.</p>
21
 
<p>Rows and columns within a QTextTable can be merged and split using the <a href="qtexttable.html#mergeCells">mergeCells</a>() and <a href="qtexttable.html#splitCell">splitCell</a>() functions. However, only cells that span multiple rows or columns can be split. (Merging or splitting does not increase or decrease the number of rows and columns.)</p>
22
 
<p>Note that if you have merged multiple columns and rows into one cell, you will not be able to split the merged cell into new cells spanning over more than one row or column. To be able to split cells spanning over several rows and columns you need to do this over several iterations.</p>
23
 
<p><table align="center" border="0" cellpadding="2" cellspacing="1" class="generic" width="80%">
24
 
<tr class="odd" valign="top"><td><img alt="Original Table" src="images/texttable-split.png" /></td><td>Suppose we have a 2x3 table of names and addresses. To merge both columns in the first row we invoke <a href="qtexttable.html#mergeCells">mergeCells</a>() with <i>row</i> = 0, <i>column</i> = 0, <i>numRows</i> = 1 and <i>numColumns</i> = 2.<pre>     table-&gt;mergeCells(0, 0, 1, 2);</pre>
25
 
</td></tr>
26
 
<tr class="even" valign="top"><td><img src="images/texttable-merge.png" /></td><td>This gives us the following table. To split the first row of the table back into two cells, we invoke the <a href="qtexttable.html#splitCell">splitCell</a>() function with <i>numRows</i> and <i>numCols</i> = 1.<pre>     table-&gt;splitCell(0, 0, 1, 1);</pre>
27
 
</td></tr>
28
 
<tr class="odd" valign="top"><td><img alt="Split Table" src="images/texttable-split.png" /></td><td>This results in the original table.</td></tr>
29
 
</table></p>
30
 
<p>See also <a href="qtexttableformat.html">QTextTableFormat</a>.</p>
 
33
<p>The starting and ending positions of table rows can be found by
 
34
moving a cursor within a table, and using the <a href="qtexttable.html#rowStart">rowStart</a>() and <a href="qtexttable.html#rowEnd">rowEnd</a>() functions to obtain cursors
 
35
at the start and end of each row.</p>
 
36
<p>Rows and columns within a QTextTable can be merged and split
 
37
using the <a href="qtexttable.html#mergeCells">mergeCells</a>() and
 
38
<a href="qtexttable.html#splitCell">splitCell</a>() functions.
 
39
However, only cells that span multiple rows or columns can be
 
40
split. (Merging or splitting does not increase or decrease the
 
41
number of rows and columns.)</p>
 
42
<p>Note that if you have merged multiple columns and rows into one
 
43
cell, you will not be able to split the merged cell into new cells
 
44
spanning over more than one row or column. To be able to split
 
45
cells spanning over several rows and columns you need to do this
 
46
over several iterations.</p>
 
47
<table class="generic">
 
48
<tr class="odd topAlign">
 
49
<td>
 
50
<p><img alt="Original Table" src="images/texttable-split.png" /></p>
 
51
</td>
 
52
<td>
 
53
<p>Suppose we have a 2x3 table of names and addresses. To merge
 
54
both columns in the first row we invoke <a href="qtexttable.html#mergeCells">mergeCells</a>() with <i>row</i> = 0,
 
55
<i>column</i> = 0, <i>numRows</i> = 1 and <i>numColumns</i> =
 
56
2.</p>
 
57
<pre class="highlightedCode brush: cpp">
 
58
     table-&gt;mergeCells(0, 0, 1, 2);
 
59
</pre></td>
 
60
</tr>
 
61
<tr class="even topAlign">
 
62
<td>
 
63
<p><img src="images/texttable-merge.png" /></p>
 
64
</td>
 
65
<td>
 
66
<p>This gives us the following table. To split the first row of the
 
67
table back into two cells, we invoke the <a href="qtexttable.html#splitCell">splitCell</a>() function with
 
68
<i>numRows</i> and <i>numCols</i> = 1.</p>
 
69
<pre class="highlightedCode brush: cpp">
 
70
     table-&gt;splitCell(0, 0, 1, 1);
 
71
</pre></td>
 
72
</tr>
 
73
<tr class="odd topAlign">
 
74
<td>
 
75
<p><img alt="Split Table" src="images/texttable-split.png" /></p>
 
76
</td>
 
77
<td>
 
78
<p>This results in the original table.</p>
 
79
</td>
 
80
</tr>
 
81
</table>
31
82
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QTextTable" />QTextTable.__init__ (<i>self</i>, <a href="qtextdocument.html">QTextDocument</a>)</h3><h3 class="fn"><a name="appendColumns" />QTextTable.appendColumns (<i>self</i>, int)</h3><p>Appends <i>count</i> columns at the right side of the table.</p>
32
83
<p>This function was introduced in Qt 4.5.</p>
33
84
<p>See also <a href="qtexttable.html#insertColumns">insertColumns</a>(), <a href="qtexttable.html#insertRows">insertRows</a>(), <a href="qtexttable.html#resize">resize</a>(), <a href="qtexttable.html#removeRows">removeRows</a>(), <a href="qtexttable.html#removeColumns">removeColumns</a>(), and <a href="qtexttable.html#appendRows">appendRows</a>().</p>
34
 
<a name="//apple_ref/cpp/instm/QTextTable/appendRows" />
 
85
 
 
86
 
35
87
<h3 class="fn"><a name="appendRows" />QTextTable.appendRows (<i>self</i>, int)</h3><p>Appends <i>count</i> rows at the bottom of the table.</p>
36
88
<p>This function was introduced in Qt 4.5.</p>
37
89
<p>See also <a href="qtexttable.html#insertColumns">insertColumns</a>(), <a href="qtexttable.html#insertRows">insertRows</a>(), <a href="qtexttable.html#resize">resize</a>(), <a href="qtexttable.html#removeRows">removeRows</a>(), <a href="qtexttable.html#removeColumns">removeColumns</a>(), and <a href="qtexttable.html#appendColumns">appendColumns</a>().</p>
38
 
<a name="//apple_ref/cpp/instm/QTextTable/cellAt" />
39
 
<h3 class="fn"><a name="cellAt" /><a href="qtexttablecell.html">QTextTableCell</a> QTextTable.cellAt (<i>self</i>, int, int)</h3><p>Returns the table cell at the given <i>row</i> and <i>column</i> in the table.</p>
40
 
<p>See also <a href="qtexttable.html#columns">columns</a>() and <a href="qtexttable.html#rows">rows</a>().</p>
 
90
 
 
91
 
 
92
<h3 class="fn"><a name="cellAt" /><a href="qtexttablecell.html">QTextTableCell</a> QTextTable.cellAt (<i>self</i>, int, int)</h3><p>Returns the table cell at the given <i>row</i> and <i>column</i>
 
93
in the table.</p>
 
94
<p>See also <a href="qtexttable.html#columns">columns</a>() and
 
95
<a href="qtexttable.html#rows">rows</a>().</p>
 
96
 
 
97
 
41
98
<h3 class="fn"><a name="cellAt-2" /><a href="qtexttablecell.html">QTextTableCell</a> QTextTable.cellAt (<i>self</i>, int)</h3><p>This is an overloaded function.</p>
42
 
<p>Returns the table cell that contains the character at the given <i>position</i> in the document.</p>
 
99
<p>Returns the table cell that contains the character at the given
 
100
<i>position</i> in the document.</p>
 
101
 
 
102
 
43
103
<h3 class="fn"><a name="cellAt-3" /><a href="qtexttablecell.html">QTextTableCell</a> QTextTable.cellAt (<i>self</i>, <a href="qtextcursor.html">QTextCursor</a>)</h3><p>This is an overloaded function.</p>
44
104
<p>Returns the table cell containing the given <i>cursor</i>.</p>
45
 
<a name="//apple_ref/cpp/instm/QTextTable/columns" />
 
105
 
 
106
 
46
107
<h3 class="fn"><a name="columns" />int QTextTable.columns (<i>self</i>)</h3><p>Returns the number of columns in the table.</p>
47
108
<p>See also <a href="qtexttable.html#rows">rows</a>().</p>
48
 
<a name="//apple_ref/cpp/instm/QTextTable/format" />
 
109
 
 
110
 
49
111
<h3 class="fn"><a name="format" /><a href="qtexttableformat.html">QTextTableFormat</a> QTextTable.format (<i>self</i>)</h3><p>Returns the table's format.</p>
50
112
<p>See also <a href="qtexttable.html#setFormat">setFormat</a>().</p>
51
 
<a name="//apple_ref/cpp/instm/QTextTable/insertColumns" />
52
 
<h3 class="fn"><a name="insertColumns" />QTextTable.insertColumns (<i>self</i>, int, int)</h3><p>Inserts a number of <i>columns</i> before the column with the specified <i>index</i>.</p>
53
 
<p>See also <a href="qtexttable.html#insertRows">insertRows</a>(), <a href="qtexttable.html#resize">resize</a>(), <a href="qtexttable.html#removeRows">removeRows</a>(), <a href="qtexttable.html#removeColumns">removeColumns</a>(), <a href="qtexttable.html#appendRows">appendRows</a>(), and <a href="qtexttable.html#appendColumns">appendColumns</a>().</p>
54
 
<a name="//apple_ref/cpp/instm/QTextTable/insertRows" />
55
 
<h3 class="fn"><a name="insertRows" />QTextTable.insertRows (<i>self</i>, int, int)</h3><p>Inserts a number of <i>rows</i> before the row with the specified <i>index</i>.</p>
 
113
 
 
114
 
 
115
<h3 class="fn"><a name="insertColumns" />QTextTable.insertColumns (<i>self</i>, int, int)</h3><p>Inserts a number of <i>columns</i> before the column with the
 
116
specified <i>index</i>.</p>
 
117
<p>See also <a href="qtexttable.html#insertRows">insertRows</a>(),
 
118
<a href="qtexttable.html#resize">resize</a>(), <a href="qtexttable.html#removeRows">removeRows</a>(), <a href="qtexttable.html#removeColumns">removeColumns</a>(), <a href="qtexttable.html#appendRows">appendRows</a>(), and <a href="qtexttable.html#appendColumns">appendColumns</a>().</p>
 
119
 
 
120
 
 
121
<h3 class="fn"><a name="insertRows" />QTextTable.insertRows (<i>self</i>, int, int)</h3><p>Inserts a number of <i>rows</i> before the row with the
 
122
specified <i>index</i>.</p>
56
123
<p>See also <a href="qtexttable.html#resize">resize</a>(), <a href="qtexttable.html#insertColumns">insertColumns</a>(), <a href="qtexttable.html#removeRows">removeRows</a>(), <a href="qtexttable.html#removeColumns">removeColumns</a>(), <a href="qtexttable.html#appendRows">appendRows</a>(), and <a href="qtexttable.html#appendColumns">appendColumns</a>().</p>
57
 
<a name="//apple_ref/cpp/instm/QTextTable/mergeCells" />
58
 
<h3 class="fn"><a name="mergeCells" />QTextTable.mergeCells (<i>self</i>, int, int, int, int)</h3><p>Merges the cell at the specified <i>row</i> and <i>column</i> with the adjacent cells into one cell. The new cell will span <i>numRows</i> rows and <i>numCols</i> columns. If <i>numRows</i> or <i>numCols</i> is less than the current number of rows or columns the cell spans then this method does nothing.</p>
 
124
 
 
125
 
 
126
<h3 class="fn"><a name="mergeCells" />QTextTable.mergeCells (<i>self</i>, int, int, int, int)</h3><p>Merges the cell at the specified <i>row</i> and <i>column</i>
 
127
with the adjacent cells into one cell. The new cell will span
 
128
<i>numRows</i> rows and <i>numCols</i> columns. If <i>numRows</i>
 
129
or <i>numCols</i> is less than the current number of rows or
 
130
columns the cell spans then this method does nothing.</p>
59
131
<p>This function was introduced in Qt 4.1.</p>
60
132
<p>See also <a href="qtexttable.html#splitCell">splitCell</a>().</p>
 
133
 
 
134
 
61
135
<h3 class="fn"><a name="mergeCells-2" />QTextTable.mergeCells (<i>self</i>, <a href="qtextcursor.html">QTextCursor</a>)</h3><p>This is an overloaded function.</p>
62
136
<p>Merges the cells selected by the provided <i>cursor</i>.</p>
63
137
<p>This function was introduced in Qt 4.1.</p>
64
138
<p>See also <a href="qtexttable.html#splitCell">splitCell</a>().</p>
65
 
<a name="//apple_ref/cpp/instm/QTextTable/removeColumns" />
66
 
<h3 class="fn"><a name="removeColumns" />QTextTable.removeColumns (<i>self</i>, int, int)</h3><p>Removes a number of <i>columns</i> starting with the column at the specified <i>index</i>.</p>
67
 
<p>See also <a href="qtexttable.html#insertRows">insertRows</a>(), <a href="qtexttable.html#insertColumns">insertColumns</a>(), <a href="qtexttable.html#removeRows">removeRows</a>(), <a href="qtexttable.html#resize">resize</a>(), <a href="qtexttable.html#appendRows">appendRows</a>(), and <a href="qtexttable.html#appendColumns">appendColumns</a>().</p>
68
 
<a name="//apple_ref/cpp/instm/QTextTable/removeRows" />
69
 
<h3 class="fn"><a name="removeRows" />QTextTable.removeRows (<i>self</i>, int, int)</h3><p>Removes a number of <i>rows</i> starting with the row at the specified <i>index</i>.</p>
70
 
<p>See also <a href="qtexttable.html#insertRows">insertRows</a>(), <a href="qtexttable.html#insertColumns">insertColumns</a>(), <a href="qtexttable.html#resize">resize</a>(), <a href="qtexttable.html#removeColumns">removeColumns</a>(), <a href="qtexttable.html#appendRows">appendRows</a>(), and <a href="qtexttable.html#appendColumns">appendColumns</a>().</p>
71
 
<a name="//apple_ref/cpp/instm/QTextTable/resize" />
72
 
<h3 class="fn"><a name="resize" />QTextTable.resize (<i>self</i>, int, int)</h3><p>Resizes the table to contain the required number of <i>rows</i> and <i>columns</i>.</p>
73
 
<p>See also <a href="qtexttable.html#insertRows">insertRows</a>(), <a href="qtexttable.html#insertColumns">insertColumns</a>(), <a href="qtexttable.html#removeRows">removeRows</a>(), and <a href="qtexttable.html#removeColumns">removeColumns</a>().</p>
74
 
<a name="//apple_ref/cpp/instm/QTextTable/rowEnd" />
75
 
<h3 class="fn"><a name="rowEnd" /><a href="qtextcursor.html">QTextCursor</a> QTextTable.rowEnd (<i>self</i>, <a href="qtextcursor.html">QTextCursor</a>)</h3><p>Returns a cursor pointing to the end of the row that contains the given <i>cursor</i>.</p>
 
139
 
 
140
 
 
141
<h3 class="fn"><a name="removeColumns" />QTextTable.removeColumns (<i>self</i>, int, int)</h3><p>Removes a number of <i>columns</i> starting with the column at
 
142
the specified <i>index</i>.</p>
 
143
<p>See also <a href="qtexttable.html#insertRows">insertRows</a>(),
 
144
<a href="qtexttable.html#insertColumns">insertColumns</a>(),
 
145
<a href="qtexttable.html#removeRows">removeRows</a>(), <a href="qtexttable.html#resize">resize</a>(), <a href="qtexttable.html#appendRows">appendRows</a>(), and <a href="qtexttable.html#appendColumns">appendColumns</a>().</p>
 
146
 
 
147
 
 
148
<h3 class="fn"><a name="removeRows" />QTextTable.removeRows (<i>self</i>, int, int)</h3><p>Removes a number of <i>rows</i> starting with the row at the
 
149
specified <i>index</i>.</p>
 
150
<p>See also <a href="qtexttable.html#insertRows">insertRows</a>(),
 
151
<a href="qtexttable.html#insertColumns">insertColumns</a>(),
 
152
<a href="qtexttable.html#resize">resize</a>(), <a href="qtexttable.html#removeColumns">removeColumns</a>(), <a href="qtexttable.html#appendRows">appendRows</a>(), and <a href="qtexttable.html#appendColumns">appendColumns</a>().</p>
 
153
 
 
154
 
 
155
<h3 class="fn"><a name="resize" />QTextTable.resize (<i>self</i>, int, int)</h3><p>Resizes the table to contain the required number of <i>rows</i>
 
156
and <i>columns</i>.</p>
 
157
<p>See also <a href="qtexttable.html#insertRows">insertRows</a>(),
 
158
<a href="qtexttable.html#insertColumns">insertColumns</a>(),
 
159
<a href="qtexttable.html#removeRows">removeRows</a>(), and <a href="qtexttable.html#removeColumns">removeColumns</a>().</p>
 
160
 
 
161
 
 
162
<h3 class="fn"><a name="rowEnd" /><a href="qtextcursor.html">QTextCursor</a> QTextTable.rowEnd (<i>self</i>, <a href="qtextcursor.html">QTextCursor</a>)</h3><p>Returns a cursor pointing to the end of the row that contains
 
163
the given <i>cursor</i>.</p>
76
164
<p>See also <a href="qtexttable.html#rowStart">rowStart</a>().</p>
77
 
<a name="//apple_ref/cpp/instm/QTextTable/rowStart" />
 
165
 
 
166
 
78
167
<h3 class="fn"><a name="rows" />int QTextTable.rows (<i>self</i>)</h3><p>Returns the number of rows in the table.</p>
79
168
<p>See also <a href="qtexttable.html#columns">columns</a>().</p>
80
 
<a name="//apple_ref/cpp/instm/QTextTable/setFormat" />
81
 
<h3 class="fn"><a name="rowStart" /><a href="qtextcursor.html">QTextCursor</a> QTextTable.rowStart (<i>self</i>, <a href="qtextcursor.html">QTextCursor</a>)</h3><p>Returns a cursor pointing to the start of the row that contains the given <i>cursor</i>.</p>
 
169
 
 
170
 
 
171
<h3 class="fn"><a name="rowStart" /><a href="qtextcursor.html">QTextCursor</a> QTextTable.rowStart (<i>self</i>, <a href="qtextcursor.html">QTextCursor</a>)</h3><p>Returns a cursor pointing to the start of the row that contains
 
172
the given <i>cursor</i>.</p>
82
173
<p>See also <a href="qtexttable.html#rowEnd">rowEnd</a>().</p>
83
 
<a name="//apple_ref/cpp/instm/QTextTable/rows" />
 
174
 
 
175
 
84
176
<h3 class="fn"><a name="setFormat" />QTextTable.setFormat (<i>self</i>, <a href="qtexttableformat.html">QTextTableFormat</a>)</h3><p>Sets the table's <i>format</i>.</p>
85
177
<p>See also <a href="qtexttable.html#format">format</a>().</p>
86
 
<a name="//apple_ref/cpp/instm/QTextTable/splitCell" />
87
 
<h3 class="fn"><a name="splitCell" />QTextTable.splitCell (<i>self</i>, int, int, int, int)</h3><p>Splits the specified cell at <i>row</i> and <i>column</i> into an array of multiple cells with dimensions specified by <i>numRows</i> and <i>numCols</i>.</p>
88
 
<p><b>Note:</b> It is only possible to split cells that span multiple rows or columns, such as rows that have been merged using <a href="qtexttable.html#mergeCells">mergeCells</a>().</p>
 
178
 
 
179
 
 
180
<h3 class="fn"><a name="splitCell" />QTextTable.splitCell (<i>self</i>, int, int, int, int)</h3><p>Splits the specified cell at <i>row</i> and <i>column</i> into
 
181
an array of multiple cells with dimensions specified by
 
182
<i>numRows</i> and <i>numCols</i>.</p>
 
183
<p><b>Note:</b> It is only possible to split cells that span
 
184
multiple rows or columns, such as rows that have been merged using
 
185
<a href="qtexttable.html#mergeCells">mergeCells</a>().</p>
89
186
<p>This function was introduced in Qt 4.1.</p>
90
187
<p>See also <a href="qtexttable.html#mergeCells">mergeCells</a>().</p>
91
 
<p /><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.7.7 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2010</td><td align="right" width="25%">Qt&#160;4.6.3</td></tr></table></div></address></body></html>
 
 
b'\\ No newline at end of file'
 
188
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.8.1 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2010</td><td align="right" width="25%">Qt&#160;4.7.0</td></tr></table></div></address></body></html>
 
 
b'\\ No newline at end of file'