File: qstandarditem.html

package info (click to toggle)
python-qt4 4.7.3-1%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 28,504 kB
  • ctags: 4,680
  • sloc: python: 28,738; cpp: 8,897; sh: 245; xml: 243; makefile: 150
file content (315 lines) | stat: -rw-r--r-- 57,457 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QStandardItem Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</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">QStandardItem Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QStandardItem class provides an item for use with the <a href="qstandarditemmodel.html">QStandardItemModel</a> class. <a href="#details">More...</a></p>
<h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qstandarditem.html#ItemType-enum">ItemType</a></b> { Type, UserType }</li></ul><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qstandarditem.html#QStandardItem">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#QStandardItem-2">__init__</a></b> (<i>self</i>, QString)</li><li><div class="fn" /><b><a href="qstandarditem.html#QStandardItem-3">__init__</a></b> (<i>self</i>, QIcon, QString)</li><li><div class="fn" /><b><a href="qstandarditem.html#QStandardItem-4">__init__</a></b> (<i>self</i>, int, int&#160;<i>columns</i>&#160;=&#160;1)</li><li><div class="fn" /><b><a href="qstandarditem.html#QStandardItem-5">__init__</a></b> (<i>self</i>, QStandardItem)</li><li><div class="fn" />QString <b><a href="qstandarditem.html#accessibleDescription">accessibleDescription</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qstandarditem.html#accessibleText">accessibleText</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#appendColumn">appendColumn</a></b> (<i>self</i>, list-of-QStandardItem)</li><li><div class="fn" /><b><a href="qstandarditem.html#appendRow">appendRow</a></b> (<i>self</i>, list-of-QStandardItem)</li><li><div class="fn" /><b><a href="qstandarditem.html#appendRow-2">appendRow</a></b> (<i>self</i>, QStandardItem)</li><li><div class="fn" /><b><a href="qstandarditem.html#appendRows">appendRows</a></b> (<i>self</i>, list-of-QStandardItem)</li><li><div class="fn" />QBrush <b><a href="qstandarditem.html#background">background</a></b> (<i>self</i>)</li><li><div class="fn" />Qt.CheckState <b><a href="qstandarditem.html#checkState">checkState</a></b> (<i>self</i>)</li><li><div class="fn" />QStandardItem <b><a href="qstandarditem.html#child">child</a></b> (<i>self</i>, int, int&#160;<i>column</i>&#160;=&#160;0)</li><li><div class="fn" />QStandardItem <b><a href="qstandarditem.html#clone">clone</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qstandarditem.html#column">column</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qstandarditem.html#columnCount">columnCount</a></b> (<i>self</i>)</li><li><div class="fn" />QVariant <b><a href="qstandarditem.html#data">data</a></b> (<i>self</i>, int&#160;<i>role</i>&#160;=&#160;Qt.UserRole+1)</li><li><div class="fn" /><b><a href="qstandarditem.html#emitDataChanged">emitDataChanged</a></b> (<i>self</i>)</li><li><div class="fn" />Qt.ItemFlags <b><a href="qstandarditem.html#flags">flags</a></b> (<i>self</i>)</li><li><div class="fn" />QFont <b><a href="qstandarditem.html#font">font</a></b> (<i>self</i>)</li><li><div class="fn" />QBrush <b><a href="qstandarditem.html#foreground">foreground</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qstandarditem.html#hasChildren">hasChildren</a></b> (<i>self</i>)</li><li><div class="fn" />QIcon <b><a href="qstandarditem.html#icon">icon</a></b> (<i>self</i>)</li><li><div class="fn" />QModelIndex <b><a href="qstandarditem.html#index">index</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#insertColumn">insertColumn</a></b> (<i>self</i>, int, list-of-QStandardItem)</li><li><div class="fn" /><b><a href="qstandarditem.html#insertColumns">insertColumns</a></b> (<i>self</i>, int, int)</li><li><div class="fn" /><b><a href="qstandarditem.html#insertRow">insertRow</a></b> (<i>self</i>, int, list-of-QStandardItem)</li><li><div class="fn" /><b><a href="qstandarditem.html#insertRow-2">insertRow</a></b> (<i>self</i>, int, QStandardItem)</li><li><div class="fn" /><b><a href="qstandarditem.html#insertRows">insertRows</a></b> (<i>self</i>, int, int)</li><li><div class="fn" /><b><a href="qstandarditem.html#insertRows-2">insertRows</a></b> (<i>self</i>, int, list-of-QStandardItem)</li><li><div class="fn" />bool <b><a href="qstandarditem.html#isCheckable">isCheckable</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qstandarditem.html#isDragEnabled">isDragEnabled</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qstandarditem.html#isDropEnabled">isDropEnabled</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qstandarditem.html#isEditable">isEditable</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qstandarditem.html#isEnabled">isEnabled</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qstandarditem.html#isSelectable">isSelectable</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qstandarditem.html#isTristate">isTristate</a></b> (<i>self</i>)</li><li><div class="fn" />QStandardItemModel <b><a href="qstandarditem.html#model">model</a></b> (<i>self</i>)</li><li><div class="fn" />QStandardItem <b><a href="qstandarditem.html#parent">parent</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#read">read</a></b> (<i>self</i>, QDataStream)</li><li><div class="fn" /><b><a href="qstandarditem.html#removeColumn">removeColumn</a></b> (<i>self</i>, int)</li><li><div class="fn" /><b><a href="qstandarditem.html#removeColumns">removeColumns</a></b> (<i>self</i>, int, int)</li><li><div class="fn" /><b><a href="qstandarditem.html#removeRow">removeRow</a></b> (<i>self</i>, int)</li><li><div class="fn" /><b><a href="qstandarditem.html#removeRows">removeRows</a></b> (<i>self</i>, int, int)</li><li><div class="fn" />int <b><a href="qstandarditem.html#row">row</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qstandarditem.html#rowCount">rowCount</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#setAccessibleDescription">setAccessibleDescription</a></b> (<i>self</i>, QString)</li><li><div class="fn" /><b><a href="qstandarditem.html#setAccessibleText">setAccessibleText</a></b> (<i>self</i>, QString)</li><li><div class="fn" /><b><a href="qstandarditem.html#setBackground">setBackground</a></b> (<i>self</i>, QBrush)</li><li><div class="fn" /><b><a href="qstandarditem.html#setCheckable">setCheckable</a></b> (<i>self</i>, bool)</li><li><div class="fn" /><b><a href="qstandarditem.html#setCheckState">setCheckState</a></b> (<i>self</i>, Qt.CheckState)</li><li><div class="fn" /><b><a href="qstandarditem.html#setChild">setChild</a></b> (<i>self</i>, int, int, QStandardItem)</li><li><div class="fn" /><b><a href="qstandarditem.html#setChild-2">setChild</a></b> (<i>self</i>, int, QStandardItem)</li><li><div class="fn" /><b><a href="qstandarditem.html#setColumnCount">setColumnCount</a></b> (<i>self</i>, int)</li><li><div class="fn" /><b><a href="qstandarditem.html#setData">setData</a></b> (<i>self</i>, QVariant, int&#160;<i>role</i>&#160;=&#160;Qt.UserRole+1)</li><li><div class="fn" /><b><a href="qstandarditem.html#setDragEnabled">setDragEnabled</a></b> (<i>self</i>, bool)</li><li><div class="fn" /><b><a href="qstandarditem.html#setDropEnabled">setDropEnabled</a></b> (<i>self</i>, bool)</li><li><div class="fn" /><b><a href="qstandarditem.html#setEditable">setEditable</a></b> (<i>self</i>, bool)</li><li><div class="fn" /><b><a href="qstandarditem.html#setEnabled">setEnabled</a></b> (<i>self</i>, bool)</li><li><div class="fn" /><b><a href="qstandarditem.html#setFlags">setFlags</a></b> (<i>self</i>, Qt.ItemFlags)</li><li><div class="fn" /><b><a href="qstandarditem.html#setFont">setFont</a></b> (<i>self</i>, QFont)</li><li><div class="fn" /><b><a href="qstandarditem.html#setForeground">setForeground</a></b> (<i>self</i>, QBrush)</li><li><div class="fn" /><b><a href="qstandarditem.html#setIcon">setIcon</a></b> (<i>self</i>, QIcon)</li><li><div class="fn" /><b><a href="qstandarditem.html#setRowCount">setRowCount</a></b> (<i>self</i>, int)</li><li><div class="fn" /><b><a href="qstandarditem.html#setSelectable">setSelectable</a></b> (<i>self</i>, bool)</li><li><div class="fn" /><b><a href="qstandarditem.html#setSizeHint">setSizeHint</a></b> (<i>self</i>, QSize)</li><li><div class="fn" /><b><a href="qstandarditem.html#setStatusTip">setStatusTip</a></b> (<i>self</i>, QString)</li><li><div class="fn" /><b><a href="qstandarditem.html#setText">setText</a></b> (<i>self</i>, QString)</li><li><div class="fn" /><b><a href="qstandarditem.html#setTextAlignment">setTextAlignment</a></b> (<i>self</i>, Qt.Alignment)</li><li><div class="fn" /><b><a href="qstandarditem.html#setToolTip">setToolTip</a></b> (<i>self</i>, QString)</li><li><div class="fn" /><b><a href="qstandarditem.html#setTristate">setTristate</a></b> (<i>self</i>, bool)</li><li><div class="fn" /><b><a href="qstandarditem.html#setWhatsThis">setWhatsThis</a></b> (<i>self</i>, QString)</li><li><div class="fn" />QSize <b><a href="qstandarditem.html#sizeHint">sizeHint</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#sortChildren">sortChildren</a></b> (<i>self</i>, int, Qt.SortOrder&#160;<i>order</i>&#160;=&#160;Qt.AscendingOrder)</li><li><div class="fn" />QString <b><a href="qstandarditem.html#statusTip">statusTip</a></b> (<i>self</i>)</li><li><div class="fn" />QStandardItem <b><a href="qstandarditem.html#takeChild">takeChild</a></b> (<i>self</i>, int, int&#160;<i>column</i>&#160;=&#160;0)</li><li><div class="fn" />list-of-QStandardItem <b><a href="qstandarditem.html#takeColumn">takeColumn</a></b> (<i>self</i>, int)</li><li><div class="fn" />list-of-QStandardItem <b><a href="qstandarditem.html#takeRow">takeRow</a></b> (<i>self</i>, int)</li><li><div class="fn" />QString <b><a href="qstandarditem.html#text">text</a></b> (<i>self</i>)</li><li><div class="fn" />Qt.Alignment <b><a href="qstandarditem.html#textAlignment">textAlignment</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qstandarditem.html#toolTip">toolTip</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qstandarditem.html#type">type</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qstandarditem.html#whatsThis">whatsThis</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#write">write</a></b> (<i>self</i>, QDataStream)</li></ul><h3>Special Methods</h3><ul><li><div class="fn" />bool <b><a href="qstandarditem.html#__ge__">__ge__</a></b> (<i>self</i>, QStandardItem)</li><li><div class="fn" />bool <b><a href="qstandarditem.html#__lt__">__lt__</a></b> (<i>self</i>, QStandardItem)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QStandardItem class provides an item for use with the <a href="qstandarditemmodel.html">QStandardItemModel</a> class.</p>
<p>Items usually contain text, icons, or checkboxes.</p>
<p>Each item can have its own background brush which is set with the <a href="qstandarditem.html#setBackground">setBackground</a>() function. The current background brush can be found with <a href="qstandarditem.html#background">background</a>(). The text label for each item can be rendered with its own font and brush. These are specified with the <a href="qstandarditem.html#setFont">setFont</a>() and <a href="qstandarditem.html#setForeground">setForeground</a>() functions, and read with <a href="qstandarditem.html#font">font</a>() and <a href="qstandarditem.html#foreground">foreground</a>().</p>
<p>By default, items are enabled, editable, selectable, checkable, and can be used both as the source of a drag and drop operation and as a drop target. Each item's flags can be changed by calling <a href="qstandarditem.html#setFlags">setFlags</a>(). Checkable items can be checked and unchecked with the <a href="qstandarditem.html#setCheckState">setCheckState</a>() function. The corresponding <a href="qstandarditem.html#checkState">checkState</a>() function indicates whether the item is currently checked.</p>
<p>You can store application-specific data in an item by calling <a href="qstandarditem.html#setData">setData</a>().</p>
<p>Each item can have a two-dimensional table of child items. This makes it possible to build hierarchies of items. The typical hierarchy is the tree, in which case the child table is a table with a single column (a list).</p>
<p>The dimensions of the child table can be set with <a href="qstandarditem.html#setRowCount">setRowCount</a>() and <a href="qstandarditem.html#setColumnCount">setColumnCount</a>(). Items can be positioned in the child table with <a href="qstandarditem.html#setChild">setChild</a>(). Get a pointer to a child item with <a href="qstandarditem.html#child">child</a>(). New rows and columns of children can also be inserted with <a href="qstandarditem.html#insertRow">insertRow</a>() and <a href="qstandarditem.html#insertColumn">insertColumn</a>(), or appended with <a href="qstandarditem.html#appendRow">appendRow</a>() and <a href="qstandarditem.html#appendColumn">appendColumn</a>(). When using the append and insert functions, the dimensions of the child table will grow as needed.</p>
<p>An existing row of children can be removed with <a href="qstandarditem.html#removeRow">removeRow</a>() or <a href="qstandarditem.html#takeRow">takeRow</a>(); correspondingly, a column can be removed with <a href="qstandarditem.html#removeColumn">removeColumn</a>() or <a href="qstandarditem.html#takeColumn">takeColumn</a>().</p>
<p>An item's children can be sorted by calling <a href="qstandarditem.html#sortChildren">sortChildren</a>().</p>
<a name="subclassing" />
<h3>Subclassing</h3>
<p>When subclassing QStandardItem to provide custom items, it is possible to define new types for them so that they can be distinguished from the base class. The <a href="qstandarditem.html#type">type</a>() function should be reimplemented to return a new type value equal to or greater than <a href="qstandarditem.html#ItemType-enum">UserType</a>.</p>
<p>Reimplement <a href="qstandarditem.html#data">data</a>() and <a href="qstandarditem.html#setData">setData</a>() if you want to perform custom handling of data queries and/or control how an item's data is represented.</p>
<p>Reimplement <a href="qstandarditem.html#clone">clone</a>() if you want <a href="qstandarditemmodel.html">QStandardItemModel</a> to be able to create instances of your custom item class on demand (see <a href="qstandarditemmodel.html#setItemPrototype">QStandardItemModel.setItemPrototype</a>()).</p>
<p>Reimplement <a href="qstandarditem.html#read">read</a>() and <a href="qstandarditem.html#write">write</a>() if you want to control how items are represented in their serialized form.</p>
<p>Reimplement <a href="qstandarditem.html#operator-lt">operator&lt;</a>() if you want to control the semantics of item comparison. <a href="qstandarditem.html#operator-lt">operator&lt;</a>() determines the sorted order when sorting items with <a href="qstandarditem.html#sortChildren">sortChildren</a>() or with <a href="qstandarditemmodel.html#sort">QStandardItemModel.sort</a>().</p>
<p>See also <a href="qstandarditemmodel.html">QStandardItemModel</a>, <a href="model-view-convenience.html">Item View Convenience Classes</a>, and <a href="model-view-programming.html">Model/View Programming</a>.</p>
<hr /><h2>Type Documentation</h2><h3 class="fn"><a name="ItemType-enum" />QStandardItem.ItemType</h3><p>This enum describes the types that are used to describe standard items.</p>
<p><table border="1" cellpadding="2" cellspacing="1" class="valuelist" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>QStandardItem.Type</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The default type for standard items.</td></tr>
<tr><td valign="top"><tt>QStandardItem.UserType</tt></td><td align="center" valign="top"><tt>1000</tt></td><td valign="top">The minimum value for custom types. Values below UserType are reserved by Qt.</td></tr>
</table></p>
<p>You can define new user types in <a href="qstandarditem.html">QStandardItem</a> subclasses to ensure that custom items are treated specially; for example, when items are sorted.</p>
<p>See also <a href="qstandarditem.html#type">type</a>().</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QStandardItem" />QStandardItem.__init__ (<i>self</i>)</h3><p>Constructs an item.</p>
<h3 class="fn"><a name="QStandardItem-2" />QStandardItem.__init__ (<i>self</i>, QString)</h3><p>Constructs an item with the given <i>text</i>.</p>
<h3 class="fn"><a name="QStandardItem-3" />QStandardItem.__init__ (<i>self</i>, <a href="qicon.html">QIcon</a>, QString)</h3><p>Constructs an item with the given <i>icon</i> and <i>text</i>.</p>
<h3 class="fn"><a name="QStandardItem-4" />QStandardItem.__init__ (<i>self</i>, int, int&#160;<i>columns</i>&#160;=&#160;1)</h3><p>Constructs an item with <i>rows</i> rows and <i>columns</i> columns of child items.</p>
<h3 class="fn"><a name="QStandardItem-5" />QStandardItem.__init__ (<i>self</i>, <a href="qstandarditem.html">QStandardItem</a>)</h3><p>Constructs a copy of <i>other</i>. Note that <a href="qstandarditem.html#model">model</a>() is not copied.</p>
<p>This function is useful when reimplementing <a href="qstandarditem.html#clone">clone</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/~QStandardItem" />
<h3 class="fn"><a name="accessibleDescription" />QString QStandardItem.accessibleDescription (<i>self</i>)</h3><p>Returns the item's accessible description.</p>
<p>The accessible description is used by assistive technologies (i.e. for users who cannot use conventional means of interaction).</p>
<p>See also <a href="qstandarditem.html#setAccessibleDescription">setAccessibleDescription</a>() and <a href="qstandarditem.html#accessibleText">accessibleText</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/accessibleText" />
<h3 class="fn"><a name="accessibleText" />QString QStandardItem.accessibleText (<i>self</i>)</h3><p>Returns the item's accessible text.</p>
<p>The accessible text is used by assistive technologies (i.e. for users who cannot use conventional means of interaction).</p>
<p>See also <a href="qstandarditem.html#setAccessibleText">setAccessibleText</a>() and <a href="qstandarditem.html#accessibleDescription">accessibleDescription</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/appendColumn" />
<h3 class="fn"><a name="appendColumn" />QStandardItem.appendColumn (<i>self</i>, list-of-QStandardItem)</h3><p>The <i>list-of-QStandardItem</i> argument has it's ownership transferred to Qt.</p><p>Appends a column containing <i>items</i>. If necessary, the row count is increased to the size of <i>items</i>.</p>
<p>See also <a href="qstandarditem.html#insertColumn">insertColumn</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/appendRow" />
<h3 class="fn"><a name="appendRow" />QStandardItem.appendRow (<i>self</i>, list-of-QStandardItem)</h3><p>The <i>list-of-QStandardItem</i> argument has it's ownership transferred to Qt.</p><p>Appends a row containing <i>items</i>. If necessary, the column count is increased to the size of <i>items</i>.</p>
<p>See also <a href="qstandarditem.html#insertRow">insertRow</a>().</p>
<h3 class="fn"><a name="appendRow-2" />QStandardItem.appendRow (<i>self</i>, <a href="qstandarditem.html">QStandardItem</a>)</h3><p>The <i>QStandardItem</i> argument has it's ownership transferred to Qt.</p><p>This is an overloaded function.</p>
<p>Appends a row containing <i>item</i>.</p>
<p>When building a list or a tree that has only one column, this function provides a convenient way to append a single new item.</p>
<a name="//apple_ref/cpp/instm/QStandardItem/appendRows" />
<h3 class="fn"><a name="appendRows" />QStandardItem.appendRows (<i>self</i>, list-of-QStandardItem)</h3><p>The <i>list-of-QStandardItem</i> argument has it's ownership transferred to Qt.</p><p>Appends rows containing <i>items</i>. The column count will not change.</p>
<p>See also <a href="qstandarditem.html#insertRow">insertRow</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/background" />
<h3 class="fn"><a name="background" /><a href="qbrush.html">QBrush</a> QStandardItem.background (<i>self</i>)</h3><p>Returns the brush used to render the item's background.</p>
<p>See also <a href="qstandarditem.html#foreground">foreground</a>() and <a href="qstandarditem.html#setBackground">setBackground</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/checkState" />
<h3 class="fn"><a name="checkState" /><a href="qt.html#CheckState-enum">Qt.CheckState</a> QStandardItem.checkState (<i>self</i>)</h3><p>Returns the checked state of the item.</p>
<p>See also <a href="qstandarditem.html#setCheckState">setCheckState</a>() and <a href="qstandarditem.html#isCheckable">isCheckable</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/child" />
<h3 class="fn"><a name="child" /><a href="qstandarditem.html">QStandardItem</a> QStandardItem.child (<i>self</i>, int, int&#160;<i>column</i>&#160;=&#160;0)</h3><p>Returns the child item at (<i>row</i>, <i>column</i>) if one has been set; otherwise returns 0.</p>
<p>See also <a href="qstandarditem.html#setChild">setChild</a>(), <a href="qstandarditem.html#takeChild">takeChild</a>(), and <a href="qstandarditem.html#parent">parent</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/clone" />
<h3 class="fn"><a name="clone" /><a href="qstandarditem.html">QStandardItem</a> QStandardItem.clone (<i>self</i>)</h3><p>Returns a copy of this item. The item's children are not copied.</p>
<p>When subclassing <a href="qstandarditem.html">QStandardItem</a>, you can reimplement this function to provide <a href="qstandarditemmodel.html">QStandardItemModel</a> with a factory that it can use to create new items on demand.</p>
<p>See also <a href="qstandarditemmodel.html#setItemPrototype">QStandardItemModel.setItemPrototype</a>() and <a href="qstandarditem.html#operator-eq">operator=</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/column" />
<h3 class="fn"><a name="column" />int QStandardItem.column (<i>self</i>)</h3><p>Returns the column where the item is located in its parent's child table, or -1 if the item has no parent.</p>
<p>See also <a href="qstandarditem.html#row">row</a>() and <a href="qstandarditem.html#parent">parent</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/columnCount" />
<h3 class="fn"><a name="columnCount" />int QStandardItem.columnCount (<i>self</i>)</h3><p>Returns the number of child item columns that the item has.</p>
<p>See also <a href="qstandarditem.html#setColumnCount">setColumnCount</a>() and <a href="qstandarditem.html#rowCount">rowCount</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/data" />
<h3 class="fn"><a name="data" />QVariant QStandardItem.data (<i>self</i>, int&#160;<i>role</i>&#160;=&#160;Qt.UserRole+1)</h3><p>Returns the item's data for the given <i>role</i>, or an invalid <a href="qvariant.html">QVariant</a> if there is no data for the role.</p>
<p><b>Note:</b> The default implementation treats <a href="qt.html#ItemDataRole-enum">Qt.EditRole</a> and <a href="qt.html#ItemDataRole-enum">Qt.DisplayRole</a> as referring to the same data.</p>
<p>See also <a href="qstandarditem.html#setData">setData</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/emitDataChanged" />
<h3 class="fn"><a name="emitDataChanged" />QStandardItem.emitDataChanged (<i>self</i>)</h3><p>Causes the model associated with this item to emit a <a href="qabstractitemmodel.html#dataChanged">dataChanged</a>() signal for this item.</p>
<p>You normally only need to call this function if you have subclassed <a href="qstandarditem.html">QStandardItem</a> and reimplemented <a href="qstandarditem.html#data">data</a>() and/or <a href="qstandarditem.html#setData">setData</a>().</p>
<p>This function was introduced in Qt 4.4.</p>
<p>See also <a href="qstandarditem.html#setData">setData</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/flags" />
<h3 class="fn"><a name="flags" /><a href="qt-itemflags.html">Qt.ItemFlags</a> QStandardItem.flags (<i>self</i>)</h3><p>Returns the item flags for the item.</p>
<p>The item flags determine how the user can interact with the item.</p>
<p>By default, items are enabled, editable, selectable, checkable, and can be used both as the source of a drag and drop operation and as a drop target.</p>
<p>See also <a href="qstandarditem.html#setFlags">setFlags</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/font" />
<h3 class="fn"><a name="font" /><a href="qfont.html">QFont</a> QStandardItem.font (<i>self</i>)</h3><p>Returns the font used to render the item's text.</p>
<p>See also <a href="qstandarditem.html#setFont">setFont</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/foreground" />
<h3 class="fn"><a name="foreground" /><a href="qbrush.html">QBrush</a> QStandardItem.foreground (<i>self</i>)</h3><p>Returns the brush used to render the item's foreground (e.g. text).</p>
<p>See also <a href="qstandarditem.html#setForeground">setForeground</a>() and <a href="qstandarditem.html#background">background</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/hasChildren" />
<h3 class="fn"><a name="hasChildren" />bool QStandardItem.hasChildren (<i>self</i>)</h3><p>Returns true if this item has any children; otherwise returns false.</p>
<p>See also <a href="qstandarditem.html#rowCount">rowCount</a>(), <a href="qstandarditem.html#columnCount">columnCount</a>(), and <a href="qstandarditem.html#child">child</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/icon" />
<h3 class="fn"><a name="icon" /><a href="qicon.html">QIcon</a> QStandardItem.icon (<i>self</i>)</h3><p>Returns the item's icon.</p>
<p>See also <a href="qstandarditem.html#setIcon">setIcon</a>() and <a href="qabstractitemview.html#iconSize-prop">iconSize</a>.</p>
<a name="//apple_ref/cpp/instm/QStandardItem/index" />
<h3 class="fn"><a name="index" /><a href="qmodelindex.html">QModelIndex</a> QStandardItem.index (<i>self</i>)</h3><p>Returns the <a href="qmodelindex.html">QModelIndex</a> associated with this item.</p>
<p>When you need to invoke item functionality in a <a href="qmodelindex.html">QModelIndex</a>-based API (e.g. <a href="qabstractitemview.html">QAbstractItemView</a>), you can call this function to obtain an index that corresponds to the item's location in the model.</p>
<p>If the item is not associated with a model, an invalid <a href="qmodelindex.html">QModelIndex</a> is returned.</p>
<p>See also <a href="qstandarditem.html#model">model</a>() and <a href="qstandarditemmodel.html#itemFromIndex">QStandardItemModel.itemFromIndex</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/insertColumn" />
<h3 class="fn"><a name="insertColumn" />QStandardItem.insertColumn (<i>self</i>, int, list-of-QStandardItem)</h3><p>The <i>list-of-QStandardItem</i> argument has it's ownership transferred to Qt.</p><p>Inserts a column at <i>column</i> containing <i>items</i>. If necessary, the row count is increased to the size of <i>items</i>.</p>
<p>See also <a href="qstandarditem.html#insertColumns">insertColumns</a>() and <a href="qstandarditem.html#insertRow">insertRow</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/insertColumns" />
<h3 class="fn"><a name="insertColumns" />QStandardItem.insertColumns (<i>self</i>, int, int)</h3><p>Inserts <i>count</i> columns of child items at column <i>column</i>.</p>
<p>See also <a href="qstandarditem.html#insertColumn">insertColumn</a>() and <a href="qstandarditem.html#insertRows">insertRows</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/insertRow" />
<h3 class="fn"><a name="insertRow" />QStandardItem.insertRow (<i>self</i>, int, list-of-QStandardItem)</h3><p>The <i>list-of-QStandardItem</i> argument has it's ownership transferred to Qt.</p><p>Inserts a row at <i>row</i> containing <i>items</i>. If necessary, the column count is increased to the size of <i>items</i>.</p>
<p>See also <a href="qstandarditem.html#insertRows">insertRows</a>() and <a href="qstandarditem.html#insertColumn">insertColumn</a>().</p>
<h3 class="fn"><a name="insertRow-2" />QStandardItem.insertRow (<i>self</i>, int, <a href="qstandarditem.html">QStandardItem</a>)</h3><p>The <i>QStandardItem</i> argument has it's ownership transferred to Qt.</p><p>This is an overloaded function.</p>
<p>Inserts a row at <i>row</i> containing <i>item</i>.</p>
<p>When building a list or a tree that has only one column, this function provides a convenient way to insert a single new item.</p>
<a name="//apple_ref/cpp/instm/QStandardItem/insertRows" />
<h3 class="fn"><a name="insertRows" />QStandardItem.insertRows (<i>self</i>, int, int)</h3><p>Inserts <i>items</i> at <i>row</i>. The column count wont be changed.</p>
<p>See also <a href="qstandarditem.html#insertRow">insertRow</a>() and <a href="qstandarditem.html#insertColumn">insertColumn</a>().</p>
<h3 class="fn"><a name="insertRows-2" />QStandardItem.insertRows (<i>self</i>, int, list-of-QStandardItem)</h3><p>The <i>list-of-QStandardItem</i> argument has it's ownership transferred to Qt.</p><p>Inserts <i>count</i> rows of child items at row <i>row</i>.</p>
<p>See also <a href="qstandarditem.html#insertRow">insertRow</a>() and <a href="qstandarditem.html#insertColumns">insertColumns</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/isCheckable" />
<h3 class="fn"><a name="isCheckable" />bool QStandardItem.isCheckable (<i>self</i>)</h3><p>Returns whether the item is user-checkable.</p>
<p>The default value is false.</p>
<p>See also <a href="qstandarditem.html#setCheckable">setCheckable</a>(), <a href="qstandarditem.html#checkState">checkState</a>(), and <a href="qstandarditem.html#isTristate">isTristate</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/isDragEnabled" />
<h3 class="fn"><a name="isDragEnabled" />bool QStandardItem.isDragEnabled (<i>self</i>)</h3><p>Returns whether the item is drag enabled. An item that is drag enabled can be dragged by the user.</p>
<p>The default value is true.</p>
<p>Note that item dragging must be enabled in the view for dragging to work; see <a href="qabstractitemview.html#dragEnabled-prop">QAbstractItemView.dragEnabled</a>.</p>
<p>See also <a href="qstandarditem.html#setDragEnabled">setDragEnabled</a>(), <a href="qstandarditem.html#isDropEnabled">isDropEnabled</a>(), and <a href="qstandarditem.html#flags">flags</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/isDropEnabled" />
<h3 class="fn"><a name="isDropEnabled" />bool QStandardItem.isDropEnabled (<i>self</i>)</h3><p>Returns whether the item is drop enabled. When an item is drop enabled, it can be used as a drop target.</p>
<p>The default value is true.</p>
<p>See also <a href="qstandarditem.html#setDropEnabled">setDropEnabled</a>(), <a href="qstandarditem.html#isDragEnabled">isDragEnabled</a>(), and <a href="qstandarditem.html#flags">flags</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/isEditable" />
<h3 class="fn"><a name="isEditable" />bool QStandardItem.isEditable (<i>self</i>)</h3><p>Returns whether the item can be edited by the user.</p>
<p>When an item is editable (and enabled), the user can edit the item by invoking one of the view's edit triggers; see <a href="qabstractitemview.html#editTriggers-prop">QAbstractItemView.editTriggers</a>.</p>
<p>The default value is true.</p>
<p>See also <a href="qstandarditem.html#setEditable">setEditable</a>() and <a href="qstandarditem.html#flags">flags</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/isEnabled" />
<h3 class="fn"><a name="isEnabled" />bool QStandardItem.isEnabled (<i>self</i>)</h3><p>Returns whether the item is enabled.</p>
<p>When an item is enabled, the user can interact with it. The possible types of interaction are specified by the other item flags, such as <a href="qstandarditem.html#isEditable">isEditable</a>() and <a href="qstandarditem.html#isSelectable">isSelectable</a>().</p>
<p>The default value is true.</p>
<p>See also <a href="qstandarditem.html#setEnabled">setEnabled</a>() and <a href="qstandarditem.html#flags">flags</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/isSelectable" />
<h3 class="fn"><a name="isSelectable" />bool QStandardItem.isSelectable (<i>self</i>)</h3><p>Returns whether the item is selectable by the user.</p>
<p>The default value is true.</p>
<p>See also <a href="qstandarditem.html#setSelectable">setSelectable</a>() and <a href="qstandarditem.html#flags">flags</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/isTristate" />
<h3 class="fn"><a name="isTristate" />bool QStandardItem.isTristate (<i>self</i>)</h3><p>Returns whether the item is tristate; that is, if it's checkable with three separate states.</p>
<p>The default value is false.</p>
<p>See also <a href="qstandarditem.html#setTristate">setTristate</a>(), <a href="qstandarditem.html#isCheckable">isCheckable</a>(), and <a href="qstandarditem.html#checkState">checkState</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/model" />
<h3 class="fn"><a name="model" /><a href="qstandarditemmodel.html">QStandardItemModel</a> QStandardItem.model (<i>self</i>)</h3><p>Returns the <a href="qstandarditemmodel.html">QStandardItemModel</a> that this item belongs to.</p>
<p>If the item is not a child of another item that belongs to the model, this function returns 0.</p>
<p>See also <a href="qstandarditem.html#index">index</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/parent" />
<h3 class="fn"><a name="parent" /><a href="qstandarditem.html">QStandardItem</a> QStandardItem.parent (<i>self</i>)</h3><p>Returns the item's parent item, or 0 if the item has no parent.</p>
<p>See also <a href="qstandarditem.html#child">child</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/read" />
<h3 class="fn"><a name="read" />QStandardItem.read (<i>self</i>, <a href="qdatastream.html">QDataStream</a>)</h3><p>Reads the item from stream <i>in</i>. Only the data and flags of the item are read, not the child items.</p>
<p>See also <a href="qstandarditem.html#write">write</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/removeColumn" />
<h3 class="fn"><a name="removeColumn" />QStandardItem.removeColumn (<i>self</i>, int)</h3><p>Removes the given <i>column</i>. The items that were in the column are deleted.</p>
<p>See also <a href="qstandarditem.html#takeColumn">takeColumn</a>(), <a href="qstandarditem.html#removeColumns">removeColumns</a>(), and <a href="qstandarditem.html#removeRow">removeRow</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/removeColumns" />
<h3 class="fn"><a name="removeColumns" />QStandardItem.removeColumns (<i>self</i>, int, int)</h3><p>Removes <i>count</i> columns at column <i>column</i>. The items that were in those columns are deleted.</p>
<p>See also <a href="qstandarditem.html#removeColumn">removeColumn</a>() and <a href="qstandarditem.html#removeRows">removeRows</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/removeRow" />
<h3 class="fn"><a name="removeRow" />QStandardItem.removeRow (<i>self</i>, int)</h3><p>Removes the given <i>row</i>. The items that were in the row are deleted.</p>
<p>See also <a href="qstandarditem.html#takeRow">takeRow</a>(), <a href="qstandarditem.html#removeRows">removeRows</a>(), and <a href="qstandarditem.html#removeColumn">removeColumn</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/removeRows" />
<h3 class="fn"><a name="removeRows" />QStandardItem.removeRows (<i>self</i>, int, int)</h3><p>Removes <i>count</i> rows at row <i>row</i>. The items that were in those rows are deleted.</p>
<p>See also <a href="qstandarditem.html#removeRow">removeRow</a>() and <a href="qstandarditem.html#removeColumn">removeColumn</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/row" />
<h3 class="fn"><a name="row" />int QStandardItem.row (<i>self</i>)</h3><p>Returns the row where the item is located in its parent's child table, or -1 if the item has no parent.</p>
<p>See also <a href="qstandarditem.html#column">column</a>() and <a href="qstandarditem.html#parent">parent</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/rowCount" />
<h3 class="fn"><a name="rowCount" />int QStandardItem.rowCount (<i>self</i>)</h3><p>Returns the number of child item rows that the item has.</p>
<p>See also <a href="qstandarditem.html#setRowCount">setRowCount</a>() and <a href="qstandarditem.html#columnCount">columnCount</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/setAccessibleDescription" />
<h3 class="fn"><a name="setAccessibleDescription" />QStandardItem.setAccessibleDescription (<i>self</i>, QString)</h3><p>Sets the item's accessible description to the string specified by <i>accessibleDescription</i>.</p>
<p>The accessible description is used by assistive technologies (i.e. for users who cannot use conventional means of interaction).</p>
<p>See also <a href="qstandarditem.html#accessibleDescription">accessibleDescription</a>() and <a href="qstandarditem.html#setAccessibleText">setAccessibleText</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/setAccessibleText" />
<h3 class="fn"><a name="setAccessibleText" />QStandardItem.setAccessibleText (<i>self</i>, QString)</h3><p>Sets the item's accessible text to the string specified by <i>accessibleText</i>.</p>
<p>The accessible text is used by assistive technologies (i.e. for users who cannot use conventional means of interaction).</p>
<p>See also <a href="qstandarditem.html#accessibleText">accessibleText</a>() and <a href="qstandarditem.html#setAccessibleDescription">setAccessibleDescription</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/setBackground" />
<h3 class="fn"><a name="setBackground" />QStandardItem.setBackground (<i>self</i>, <a href="qbrush.html">QBrush</a>)</h3><p>Sets the item's background brush to the specified <i>brush</i>.</p>
<p>See also <a href="qstandarditem.html#background">background</a>() and <a href="qstandarditem.html#setForeground">setForeground</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/setCheckState" />
<h3 class="fn"><a name="setCheckable" />QStandardItem.setCheckable (<i>self</i>, bool)</h3><p>Sets whether the item is user-checkable. If <i>checkable</i> is true, the item can be checked by the user; otherwise, the user cannot check the item.</p>
<p>The item delegate will render a checkable item with a check box next to the item's text.</p>
<p>See also <a href="qstandarditem.html#isCheckable">isCheckable</a>(), <a href="qstandarditem.html#setCheckState">setCheckState</a>(), and <a href="qstandarditem.html#setTristate">setTristate</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/setChild" />
<h3 class="fn"><a name="setCheckState" />QStandardItem.setCheckState (<i>self</i>, <a href="qt.html#CheckState-enum">Qt.CheckState</a>)</h3><p>Sets the check state of the item to be <i>state</i>.</p>
<p>See also <a href="qstandarditem.html#checkState">checkState</a>() and <a href="qstandarditem.html#setCheckable">setCheckable</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/setCheckable" />
<h3 class="fn"><a name="setChild" />QStandardItem.setChild (<i>self</i>, int, int, <a href="qstandarditem.html">QStandardItem</a>)</h3><p>The <i>QStandardItem</i> argument has it's ownership transferred to Qt.</p><p>Sets the child item at (<i>row</i>, <i>column</i>) to <i>item</i>. This item (the parent item) takes ownership of <i>item</i>. If necessary, the row count and column count are increased to fit the item.</p>
<p>See also <a href="qstandarditem.html#child">child</a>().</p>
<h3 class="fn"><a name="setChild-2" />QStandardItem.setChild (<i>self</i>, int, <a href="qstandarditem.html">QStandardItem</a>)</h3><p>The <i>QStandardItem</i> argument has it's ownership transferred to Qt.</p><p>This is an overloaded function.</p>
<p>Sets the child at <i>row</i> to <i>item</i>.</p>
<a name="//apple_ref/cpp/instm/QStandardItem/setColumnCount" />
<h3 class="fn"><a name="setColumnCount" />QStandardItem.setColumnCount (<i>self</i>, int)</h3><p>Sets the number of child item columns to <i>columns</i>. If this is less than <a href="qstandarditem.html#columnCount">columnCount</a>(), the data in the unwanted columns is discarded.</p>
<p>See also <a href="qstandarditem.html#columnCount">columnCount</a>() and <a href="qstandarditem.html#setRowCount">setRowCount</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/setData" />
<h3 class="fn"><a name="setData" />QStandardItem.setData (<i>self</i>, QVariant, int&#160;<i>role</i>&#160;=&#160;Qt.UserRole+1)</h3><p>Sets the item's data for the given <i>role</i> to the specified <i>value</i>.</p>
<p>If you subclass <a href="qstandarditem.html">QStandardItem</a> and reimplement this function, your reimplementation should call <a href="qstandarditem.html#emitDataChanged">emitDataChanged</a>() if you do not call the base implementation of setData(). This will ensure that e.g. views using the model are notified of the changes.</p>
<p><b>Note:</b> The default implementation treats <a href="qt.html#ItemDataRole-enum">Qt.EditRole</a> and <a href="qt.html#ItemDataRole-enum">Qt.DisplayRole</a> as referring to the same data.</p>
<p>See also <a href="qt.html#ItemDataRole-enum">Qt.ItemDataRole</a>, <a href="qstandarditem.html#data">data</a>(), and <a href="qstandarditem.html#setFlags">setFlags</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/setDragEnabled" />
<h3 class="fn"><a name="setDragEnabled" />QStandardItem.setDragEnabled (<i>self</i>, bool)</h3><p>Sets whether the item is drag enabled. If <i>dragEnabled</i> is true, the item can be dragged by the user; otherwise, the user cannot drag the item.</p>
<p>Note that you also need to ensure that item dragging is enabled in the view; see <a href="qabstractitemview.html#dragEnabled-prop">QAbstractItemView.dragEnabled</a>.</p>
<p>See also <a href="qstandarditem.html#isDragEnabled">isDragEnabled</a>(), <a href="qstandarditem.html#setDropEnabled">setDropEnabled</a>(), and <a href="qstandarditem.html#setFlags">setFlags</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/setDropEnabled" />
<h3 class="fn"><a name="setDropEnabled" />QStandardItem.setDropEnabled (<i>self</i>, bool)</h3><p>Sets whether the item is drop enabled. If <i>dropEnabled</i> is true, the item can be used as a drop target; otherwise, it cannot.</p>
<p>Note that you also need to ensure that drops are enabled in the view; see <a href="qwidget.html#acceptDrops-prop">QWidget.acceptDrops</a>(); and that the model supports the desired drop actions; see <a href="qabstractitemmodel.html#supportedDropActions">QAbstractItemModel.supportedDropActions</a>().</p>
<p>See also <a href="qstandarditem.html#isDropEnabled">isDropEnabled</a>(), <a href="qstandarditem.html#setDragEnabled">setDragEnabled</a>(), and <a href="qstandarditem.html#setFlags">setFlags</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/setEditable" />
<h3 class="fn"><a name="setEditable" />QStandardItem.setEditable (<i>self</i>, bool)</h3><p>Sets whether the item is editable. If <i>editable</i> is true, the item can be edited by the user; otherwise, the user cannot edit the item.</p>
<p>How the user can edit items in a view is determined by the view's edit triggers; see <a href="qabstractitemview.html#editTriggers-prop">QAbstractItemView.editTriggers</a>.</p>
<p>See also <a href="qstandarditem.html#isEditable">isEditable</a>() and <a href="qstandarditem.html#setFlags">setFlags</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/setEnabled" />
<h3 class="fn"><a name="setEnabled" />QStandardItem.setEnabled (<i>self</i>, bool)</h3><p>Sets whether the item is enabled. If <i>enabled</i> is true, the item is enabled, meaning that the user can interact with the item; if <i>enabled</i> is false, the user cannot interact with the item.</p>
<p>This flag takes presedence over the other item flags; e.g. if an item is not enabled, it cannot be selected by the user, even if the <a href="qt.html#ItemFlag-enum">Qt.ItemIsSelectable</a> flag has been set.</p>
<p>See also <a href="qstandarditem.html#isEnabled">isEnabled</a>(), <a href="qt.html#ItemFlag-enum">Qt.ItemIsEnabled</a>, and <a href="qstandarditem.html#setFlags">setFlags</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/setFlags" />
<h3 class="fn"><a name="setFlags" />QStandardItem.setFlags (<i>self</i>, <a href="qt-itemflags.html">Qt.ItemFlags</a>)</h3><p>Sets the item flags for the item to <i>flags</i>.</p>
<p>The item flags determine how the user can interact with the item. This is often used to disable an item.</p>
<p>See also <a href="qstandarditem.html#flags">flags</a>() and <a href="qstandarditem.html#setData">setData</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/setFont" />
<h3 class="fn"><a name="setFont" />QStandardItem.setFont (<i>self</i>, <a href="qfont.html">QFont</a>)</h3><p>Sets the font used to display the item's text to the given <i>font</i>.</p>
<p>See also <a href="qstandarditem.html#font">font</a>(), <a href="qstandarditem.html#setText">setText</a>(), and <a href="qstandarditem.html#setForeground">setForeground</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/setForeground" />
<h3 class="fn"><a name="setForeground" />QStandardItem.setForeground (<i>self</i>, <a href="qbrush.html">QBrush</a>)</h3><p>Sets the brush used to display the item's foreground (e.g. text) to the given <i>brush</i>.</p>
<p>See also <a href="qstandarditem.html#foreground">foreground</a>(), <a href="qstandarditem.html#setBackground">setBackground</a>(), and <a href="qstandarditem.html#setFont">setFont</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/setIcon" />
<h3 class="fn"><a name="setIcon" />QStandardItem.setIcon (<i>self</i>, <a href="qicon.html">QIcon</a>)</h3><p>Sets the item's icon to the <i>icon</i> specified.</p>
<p>See also <a href="qstandarditem.html#icon">icon</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/setRowCount" />
<h3 class="fn"><a name="setRowCount" />QStandardItem.setRowCount (<i>self</i>, int)</h3><p>Sets the number of child item rows to <i>rows</i>. If this is less than <a href="qstandarditem.html#rowCount">rowCount</a>(), the data in the unwanted rows is discarded.</p>
<p>See also <a href="qstandarditem.html#rowCount">rowCount</a>() and <a href="qstandarditem.html#setColumnCount">setColumnCount</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/setSelectable" />
<h3 class="fn"><a name="setSelectable" />QStandardItem.setSelectable (<i>self</i>, bool)</h3><p>Sets whether the item is selectable. If <i>selectable</i> is true, the item can be selected by the user; otherwise, the user cannot select the item.</p>
<p>You can control the selection behavior and mode by manipulating their view properties; see <a href="qabstractitemview.html#selectionMode-prop">QAbstractItemView.selectionMode</a> and <a href="qabstractitemview.html#selectionBehavior-prop">QAbstractItemView.selectionBehavior</a>.</p>
<p>See also <a href="qstandarditem.html#isSelectable">isSelectable</a>() and <a href="qstandarditem.html#setFlags">setFlags</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/setSizeHint" />
<h3 class="fn"><a name="setSizeHint" />QStandardItem.setSizeHint (<i>self</i>, <a href="qsize.html">QSize</a>)</h3><p>Sets the size hint for the item to be <i>size</i>. If no size hint is set, the item delegate will compute the size hint based on the item data.</p>
<p>See also <a href="qstandarditem.html#sizeHint">sizeHint</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/setStatusTip" />
<h3 class="fn"><a name="setStatusTip" />QStandardItem.setStatusTip (<i>self</i>, QString)</h3><p>Sets the item's status tip to the string specified by <i>statusTip</i>.</p>
<p>See also <a href="qstandarditem.html#statusTip">statusTip</a>(), <a href="qstandarditem.html#setToolTip">setToolTip</a>(), and <a href="qstandarditem.html#setWhatsThis">setWhatsThis</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/setText" />
<h3 class="fn"><a name="setText" />QStandardItem.setText (<i>self</i>, QString)</h3><p>Sets the item's text to the <i>text</i> specified.</p>
<p>See also <a href="qstandarditem.html#text">text</a>(), <a href="qstandarditem.html#setFont">setFont</a>(), and <a href="qstandarditem.html#setForeground">setForeground</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/setTextAlignment" />
<h3 class="fn"><a name="setTextAlignment" />QStandardItem.setTextAlignment (<i>self</i>, <a href="qt-alignment.html">Qt.Alignment</a>)</h3><p>Sets the text alignment for the item's text to the <i>alignment</i> specified.</p>
<p>See also <a href="qstandarditem.html#textAlignment">textAlignment</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/setToolTip" />
<h3 class="fn"><a name="setToolTip" />QStandardItem.setToolTip (<i>self</i>, QString)</h3><p>Sets the item's tooltip to the string specified by <i>toolTip</i>.</p>
<p>See also <a href="qstandarditem.html#toolTip">toolTip</a>(), <a href="qstandarditem.html#setStatusTip">setStatusTip</a>(), and <a href="qstandarditem.html#setWhatsThis">setWhatsThis</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/setTristate" />
<h3 class="fn"><a name="setTristate" />QStandardItem.setTristate (<i>self</i>, bool)</h3><p>Sets whether the item is tristate. If <i>tristate</i> is true, the item is checkable with three separate states; otherwise, the item is checkable with two states. (Note that this also requires that the item is checkable; see <a href="qstandarditem.html#isCheckable">isCheckable</a>().)</p>
<p>See also <a href="qstandarditem.html#isTristate">isTristate</a>(), <a href="qstandarditem.html#setCheckable">setCheckable</a>(), and <a href="qstandarditem.html#setCheckState">setCheckState</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/setWhatsThis" />
<h3 class="fn"><a name="setWhatsThis" />QStandardItem.setWhatsThis (<i>self</i>, QString)</h3><p>Sets the item's "What's This?" help to the string specified by <i>whatsThis</i>.</p>
<p>See also <a href="qstandarditem.html#whatsThis">whatsThis</a>(), <a href="qstandarditem.html#setStatusTip">setStatusTip</a>(), and <a href="qstandarditem.html#setToolTip">setToolTip</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/sizeHint" />
<h3 class="fn"><a name="sizeHint" /><a href="qsize.html">QSize</a> QStandardItem.sizeHint (<i>self</i>)</h3><p>Returns the size hint set for the item, or an invalid <a href="qsize.html">QSize</a> if no size hint has been set.</p>
<p>If no size hint has been set, the item delegate will compute the size hint based on the item data.</p>
<p>See also <a href="qstandarditem.html#setSizeHint">setSizeHint</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/sortChildren" />
<h3 class="fn"><a name="sortChildren" />QStandardItem.sortChildren (<i>self</i>, int, <a href="qt.html#SortOrder-enum">Qt.SortOrder</a>&#160;<i>order</i>&#160;=&#160;Qt.AscendingOrder)</h3><p>Sorts the children of the item using the given <i>order</i>, by the values in the given <i>column</i>.</p>
<p><b>Note:</b> This function is recursive, therefore it sorts the children of the item, its grandchildren, etc.</p>
<p>See also <a href="qstandarditem.html#operator-lt">operator&lt;</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/statusTip" />
<h3 class="fn"><a name="statusTip" />QString QStandardItem.statusTip (<i>self</i>)</h3><p>Returns the item's status tip.</p>
<p>See also <a href="qstandarditem.html#setStatusTip">setStatusTip</a>(), <a href="qstandarditem.html#toolTip">toolTip</a>(), and <a href="qstandarditem.html#whatsThis">whatsThis</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/takeChild" />
<h3 class="fn"><a name="takeChild" /><a href="qstandarditem.html">QStandardItem</a> QStandardItem.takeChild (<i>self</i>, int, int&#160;<i>column</i>&#160;=&#160;0)</h3><p>The <i>QStandardItem</i> result</p><p>Removes the child item at (<i>row</i>, <i>column</i>) without deleting it, and returns a pointer to the item. If there was no child at the given location, then this function returns 0.</p>
<p>Note that this function, unlike <a href="qstandarditem.html#takeRow">takeRow</a>() and <a href="qstandarditem.html#takeColumn">takeColumn</a>(), does not affect the dimensions of the child table.</p>
<p>See also <a href="qstandarditem.html#child">child</a>(), <a href="qstandarditem.html#takeRow">takeRow</a>(), and <a href="qstandarditem.html#takeColumn">takeColumn</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/takeColumn" />
<h3 class="fn"><a name="takeColumn" />list-of-QStandardItem QStandardItem.takeColumn (<i>self</i>, int)</h3><p>The <i>list-of-QStandardItem</i> result</p><p>Removes <i>column</i> without deleting the column items, and returns a list of pointers to the removed items. For items in the column that have not been set, the corresponding pointers in the list will be 0.</p>
<p>See also <a href="qstandarditem.html#removeColumn">removeColumn</a>(), <a href="qstandarditem.html#insertColumn">insertColumn</a>(), and <a href="qstandarditem.html#takeRow">takeRow</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/takeRow" />
<h3 class="fn"><a name="takeRow" />list-of-QStandardItem QStandardItem.takeRow (<i>self</i>, int)</h3><p>The <i>list-of-QStandardItem</i> result</p><p>Removes <i>row</i> without deleting the row items, and returns a list of pointers to the removed items. For items in the row that have not been set, the corresponding pointers in the list will be 0.</p>
<p>See also <a href="qstandarditem.html#removeRow">removeRow</a>(), <a href="qstandarditem.html#insertRow">insertRow</a>(), and <a href="qstandarditem.html#takeColumn">takeColumn</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/text" />
<h3 class="fn"><a name="text" />QString QStandardItem.text (<i>self</i>)</h3><p>Returns the item's text. This is the text that's presented to the user in a view.</p>
<p>See also <a href="qstandarditem.html#setText">setText</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/textAlignment" />
<h3 class="fn"><a name="textAlignment" /><a href="qt-alignment.html">Qt.Alignment</a> QStandardItem.textAlignment (<i>self</i>)</h3><p>Returns the text alignment for the item's text.</p>
<p>See also <a href="qstandarditem.html#setTextAlignment">setTextAlignment</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/toolTip" />
<h3 class="fn"><a name="toolTip" />QString QStandardItem.toolTip (<i>self</i>)</h3><p>Returns the item's tooltip.</p>
<p>See also <a href="qstandarditem.html#setToolTip">setToolTip</a>(), <a href="qstandarditem.html#statusTip">statusTip</a>(), and <a href="qstandarditem.html#whatsThis">whatsThis</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/type" />
<h3 class="fn"><a name="type" />int QStandardItem.type (<i>self</i>)</h3><p>Returns the type of this item. The type is used to distinguish custom items from the base class. When subclassing <a href="qstandarditem.html">QStandardItem</a>, you should reimplement this function and return a new value greater than or equal to <a href="qstandarditem.html#ItemType-enum">UserType</a>.</p>
<p>See also <a href="qstandarditem.html#ItemType-enum">QStandardItem.Type</a>.</p>
<a name="//apple_ref/cpp/instm/QStandardItem/whatsThis" />
<h3 class="fn"><a name="whatsThis" />QString QStandardItem.whatsThis (<i>self</i>)</h3><p>Returns the item's "What's This?" help.</p>
<p>See also <a href="qstandarditem.html#setWhatsThis">setWhatsThis</a>(), <a href="qstandarditem.html#toolTip">toolTip</a>(), and <a href="qstandarditem.html#statusTip">statusTip</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/write" />
<h3 class="fn"><a name="write" />QStandardItem.write (<i>self</i>, <a href="qdatastream.html">QDataStream</a>)</h3><p>Writes the item to stream <i>out</i>. Only the data and flags of the item are written, not the child items.</p>
<p>See also <a href="qstandarditem.html#read">read</a>().</p>
<a name="//apple_ref/cpp/instm/QStandardItem/operator&lt;" />
<h3 class="fn"><a name="__ge__" />bool QStandardItem.__ge__ (<i>self</i>, <a href="qstandarditem.html">QStandardItem</a>)</h3><h3 class="fn"><a name="__lt__" />bool QStandardItem.__lt__ (<i>self</i>, <a href="qstandarditem.html">QStandardItem</a>)</h3><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.7.3 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.2</td></tr></table></div></address></body></html>