Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > 28b9e36e96ce34b2567ae5b47a27b2c5 > files > 1041

python-qt4-doc-4.10.3-3.mga4.noarch.rpm

<?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="index.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&#160;<i>text</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#QStandardItem-3">__init__</a></b> (<i>self</i>, QIcon&#160;<i>icon</i>, QString&#160;<i>text</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#QStandardItem-4">__init__</a></b> (<i>self</i>, int&#160;<i>rows</i>, 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&#160;<i>other</i>)</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&#160;<i>aitems</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#appendRow">appendRow</a></b> (<i>self</i>, list-of-QStandardItem&#160;<i>aitems</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#appendRow-2">appendRow</a></b> (<i>self</i>, QStandardItem&#160;<i>aitem</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#appendRows">appendRows</a></b> (<i>self</i>, list-of-QStandardItem&#160;<i>aitems</i>)</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&#160;<i>row</i>, 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&#160;<i>column</i>, list-of-QStandardItem&#160;<i>items</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#insertColumns">insertColumns</a></b> (<i>self</i>, int&#160;<i>column</i>, int&#160;<i>count</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#insertRow">insertRow</a></b> (<i>self</i>, int&#160;<i>row</i>, list-of-QStandardItem&#160;<i>items</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#insertRow-2">insertRow</a></b> (<i>self</i>, int&#160;<i>arow</i>, QStandardItem&#160;<i>aitem</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#insertRows">insertRows</a></b> (<i>self</i>, int&#160;<i>row</i>, int&#160;<i>count</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#insertRows-2">insertRows</a></b> (<i>self</i>, int&#160;<i>row</i>, list-of-QStandardItem&#160;<i>items</i>)</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&#160;<i>in</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#removeColumn">removeColumn</a></b> (<i>self</i>, int&#160;<i>column</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#removeColumns">removeColumns</a></b> (<i>self</i>, int&#160;<i>column</i>, int&#160;<i>count</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#removeRow">removeRow</a></b> (<i>self</i>, int&#160;<i>row</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#removeRows">removeRows</a></b> (<i>self</i>, int&#160;<i>row</i>, int&#160;<i>count</i>)</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&#160;<i>aaccessibleDescription</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#setAccessibleText">setAccessibleText</a></b> (<i>self</i>, QString&#160;<i>aaccessibleText</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#setBackground">setBackground</a></b> (<i>self</i>, QBrush&#160;<i>abrush</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#setCheckable">setCheckable</a></b> (<i>self</i>, bool&#160;<i>checkable</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#setCheckState">setCheckState</a></b> (<i>self</i>, Qt.CheckState&#160;<i>acheckState</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#setChild">setChild</a></b> (<i>self</i>, int&#160;<i>row</i>, int&#160;<i>column</i>, QStandardItem&#160;<i>item</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#setChild-2">setChild</a></b> (<i>self</i>, int&#160;<i>arow</i>, QStandardItem&#160;<i>aitem</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#setColumnCount">setColumnCount</a></b> (<i>self</i>, int&#160;<i>columns</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#setData">setData</a></b> (<i>self</i>, QVariant&#160;<i>value</i>, 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&#160;<i>dragEnabled</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#setDropEnabled">setDropEnabled</a></b> (<i>self</i>, bool&#160;<i>dropEnabled</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#setEditable">setEditable</a></b> (<i>self</i>, bool&#160;<i>editable</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#setEnabled">setEnabled</a></b> (<i>self</i>, bool&#160;<i>enabled</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#setFlags">setFlags</a></b> (<i>self</i>, Qt.ItemFlags&#160;<i>flags</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#setFont">setFont</a></b> (<i>self</i>, QFont&#160;<i>afont</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#setForeground">setForeground</a></b> (<i>self</i>, QBrush&#160;<i>abrush</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#setIcon">setIcon</a></b> (<i>self</i>, QIcon&#160;<i>aicon</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#setRowCount">setRowCount</a></b> (<i>self</i>, int&#160;<i>rows</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#setSelectable">setSelectable</a></b> (<i>self</i>, bool&#160;<i>selectable</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#setSizeHint">setSizeHint</a></b> (<i>self</i>, QSize&#160;<i>asizeHint</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#setStatusTip">setStatusTip</a></b> (<i>self</i>, QString&#160;<i>astatusTip</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#setText">setText</a></b> (<i>self</i>, QString&#160;<i>atext</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#setTextAlignment">setTextAlignment</a></b> (<i>self</i>, Qt.Alignment&#160;<i>atextAlignment</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#setToolTip">setToolTip</a></b> (<i>self</i>, QString&#160;<i>atoolTip</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#setTristate">setTristate</a></b> (<i>self</i>, bool&#160;<i>tristate</i>)</li><li><div class="fn" /><b><a href="qstandarditem.html#setWhatsThis">setWhatsThis</a></b> (<i>self</i>, QString&#160;<i>awhatsThis</i>)</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&#160;<i>column</i>, 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&#160;<i>row</i>, 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&#160;<i>column</i>)</li><li><div class="fn" />list-of-QStandardItem <b><a href="qstandarditem.html#takeRow">takeRow</a></b> (<i>self</i>, int&#160;<i>row</i>)</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&#160;<i>out</i>)</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&#160;<i>other</i>)</li><li><div class="fn" />bool <b><a href="qstandarditem.html#__lt__">__lt__</a></b> (<i>self</i>, QStandardItem&#160;<i>other</i>)</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 id="subclassing" 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>
<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>
<table class="valuelist">
<tr class="odd" valign="top">
<th class="tblConst">Constant</th>
<th class="tblval">Value</th>
<th class="tbldscr">Description</th>
</tr>
<tr>
<td class="topAlign"><tt>QStandardItem.Type</tt></td>
<td class="topAlign"><tt>0</tt></td>
<td class="topAlign">The default type for standard items.</td>
</tr>
<tr>
<td class="topAlign"><tt>QStandardItem.UserType</tt></td>
<td class="topAlign"><tt>1000</tt></td>
<td class="topAlign">The minimum value for custom types. Values
below UserType are reserved by Qt.</td>
</tr>
</table>
<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><b>See also</b> <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&#160;<i>text</i>)</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>&#160;<i>icon</i>, QString&#160;<i>text</i>)</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&#160;<i>rows</i>, 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>&#160;<i>other</i>)</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>


<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><b>See also</b> <a href="qstandarditem.html#setAccessibleDescription">setAccessibleDescription</a>()
and <a href="qstandarditem.html#accessibleText">accessibleText</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#setAccessibleText">setAccessibleText</a>() and
<a href="qstandarditem.html#accessibleDescription">accessibleDescription</a>().</p>


<h3 class="fn"><a name="appendColumn" />QStandardItem.appendColumn (<i>self</i>, list-of-QStandardItem&#160;<i>aitems</i>)</h3><p>The <i>aitems</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><b>See also</b> <a href="qstandarditem.html#insertColumn">insertColumn</a>().</p>


<h3 class="fn"><a name="appendRow" />QStandardItem.appendRow (<i>self</i>, list-of-QStandardItem&#160;<i>aitems</i>)</h3><p>The <i>aitems</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><b>See also</b> <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>&#160;<i>aitem</i>)</h3><p>The <i>aitem</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>


<h3 class="fn"><a name="appendRows" />QStandardItem.appendRows (<i>self</i>, list-of-QStandardItem&#160;<i>aitems</i>)</h3><p>The <i>aitems</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><b>See also</b> <a href="qstandarditem.html#insertRow">insertRow</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#foreground">foreground</a>() and <a href="qstandarditem.html#setBackground">setBackground</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#setCheckState">setCheckState</a>() and <a href="qstandarditem.html#isCheckable">isCheckable</a>().</p>


<h3 class="fn"><a name="child" /><a href="qstandarditem.html">QStandardItem</a> QStandardItem.child (<i>self</i>, int&#160;<i>row</i>, 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><b>See also</b> <a href="qstandarditem.html#setChild">setChild</a>(), <a href="qstandarditem.html#takeChild">takeChild</a>(), and <a href="qstandarditem.html#parent">parent</a>().</p>


<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><b>See also</b> <a href="qstandarditemmodel.html#setItemPrototype">QStandardItemModel.setItemPrototype</a>()
and <a href="qstandarditem.html#operator-eq">operator=</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#row">row</a>() and
<a href="qstandarditem.html#parent">parent</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#setColumnCount">setColumnCount</a>() and
<a href="qstandarditem.html#rowCount">rowCount</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#setData">setData</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#setData">setData</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#setFlags">setFlags</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#setFont">setFont</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#setForeground">setForeground</a>() and <a href="qstandarditem.html#background">background</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#rowCount">rowCount</a>(), <a href="qstandarditem.html#columnCount">columnCount</a>(), and <a href="qstandarditem.html#child">child</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#setIcon">setIcon</a>() and <a href="qabstractitemview.html#iconSize-prop">iconSize</a>.</p>


<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><b>See also</b> <a href="qstandarditem.html#model">model</a>()
and <a href="qstandarditemmodel.html#itemFromIndex">QStandardItemModel.itemFromIndex</a>().</p>


<h3 class="fn"><a name="insertColumn" />QStandardItem.insertColumn (<i>self</i>, int&#160;<i>column</i>, list-of-QStandardItem&#160;<i>items</i>)</h3><p>The <i>items</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><b>See also</b> <a href="qstandarditem.html#insertColumns">insertColumns</a>() and <a href="qstandarditem.html#insertRow">insertRow</a>().</p>


<h3 class="fn"><a name="insertColumns" />QStandardItem.insertColumns (<i>self</i>, int&#160;<i>column</i>, int&#160;<i>count</i>)</h3><p>Inserts <i>count</i> columns of child items at column
<i>column</i>.</p>
<p><b>See also</b> <a href="qstandarditem.html#insertColumn">insertColumn</a>() and <a href="qstandarditem.html#insertRows">insertRows</a>().</p>


<h3 class="fn"><a name="insertRow" />QStandardItem.insertRow (<i>self</i>, int&#160;<i>row</i>, list-of-QStandardItem&#160;<i>items</i>)</h3><p>The <i>items</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><b>See also</b> <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&#160;<i>arow</i>, <a href="qstandarditem.html">QStandardItem</a>&#160;<i>aitem</i>)</h3><p>The <i>aitem</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>


<h3 class="fn"><a name="insertRows" />QStandardItem.insertRows (<i>self</i>, int&#160;<i>row</i>, int&#160;<i>count</i>)</h3><p>Inserts <i>items</i> at <i>row</i>. The column count wont be
changed.</p>
<p><b>See also</b> <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&#160;<i>row</i>, list-of-QStandardItem&#160;<i>items</i>)</h3><p>The <i>items</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><b>See also</b> <a href="qstandarditem.html#insertRow">insertRow</a>() and <a href="qstandarditem.html#insertColumns">insertColumns</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#setCheckable">setCheckable</a>(), <a href="qstandarditem.html#checkState">checkState</a>(), and <a href="qstandarditem.html#isTristate">isTristate</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#setDragEnabled">setDragEnabled</a>(), <a href="qstandarditem.html#isDropEnabled">isDropEnabled</a>(), and
<a href="qstandarditem.html#flags">flags</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#setDropEnabled">setDropEnabled</a>(), <a href="qstandarditem.html#isDragEnabled">isDragEnabled</a>(), and
<a href="qstandarditem.html#flags">flags</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#setEditable">setEditable</a>() and <a href="qstandarditem.html#flags">flags</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#setEnabled">setEnabled</a>() and <a href="qstandarditem.html#flags">flags</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#setSelectable">setSelectable</a>() and <a href="qstandarditem.html#flags">flags</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#setTristate">setTristate</a>(), <a href="qstandarditem.html#isCheckable">isCheckable</a>(), and <a href="qstandarditem.html#checkState">checkState</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#index">index</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#child">child</a>().</p>


<h3 class="fn"><a name="read" />QStandardItem.read (<i>self</i>, <a href="qdatastream.html">QDataStream</a>&#160;<i>in</i>)</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><b>See also</b> <a href="qstandarditem.html#write">write</a>().</p>


<h3 class="fn"><a name="removeColumn" />QStandardItem.removeColumn (<i>self</i>, int&#160;<i>column</i>)</h3><p>Removes the given <i>column</i>. The items that were in the
column are deleted.</p>
<p><b>See also</b> <a href="qstandarditem.html#takeColumn">takeColumn</a>(), <a href="qstandarditem.html#removeColumns">removeColumns</a>(), and
<a href="qstandarditem.html#removeRow">removeRow</a>().</p>


<h3 class="fn"><a name="removeColumns" />QStandardItem.removeColumns (<i>self</i>, int&#160;<i>column</i>, int&#160;<i>count</i>)</h3><p>Removes <i>count</i> columns at column <i>column</i>. The items
that were in those columns are deleted.</p>
<p><b>See also</b> <a href="qstandarditem.html#removeColumn">removeColumn</a>() and <a href="qstandarditem.html#removeRows">removeRows</a>().</p>


<h3 class="fn"><a name="removeRow" />QStandardItem.removeRow (<i>self</i>, int&#160;<i>row</i>)</h3><p>Removes the given <i>row</i>. The items that were in the row are
deleted.</p>
<p><b>See also</b> <a href="qstandarditem.html#takeRow">takeRow</a>(), <a href="qstandarditem.html#removeRows">removeRows</a>(), and <a href="qstandarditem.html#removeColumn">removeColumn</a>().</p>


<h3 class="fn"><a name="removeRows" />QStandardItem.removeRows (<i>self</i>, int&#160;<i>row</i>, int&#160;<i>count</i>)</h3><p>Removes <i>count</i> rows at row <i>row</i>. The items that were
in those rows are deleted.</p>
<p><b>See also</b> <a href="qstandarditem.html#removeRow">removeRow</a>() and <a href="qstandarditem.html#removeColumn">removeColumn</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#column">column</a>()
and <a href="qstandarditem.html#parent">parent</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#setRowCount">setRowCount</a>() and <a href="qstandarditem.html#columnCount">columnCount</a>().</p>


<h3 class="fn"><a name="setAccessibleDescription" />QStandardItem.setAccessibleDescription (<i>self</i>, QString&#160;<i>aaccessibleDescription</i>)</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><b>See also</b> <a href="qstandarditem.html#accessibleDescription">accessibleDescription</a>()
and <a href="qstandarditem.html#setAccessibleText">setAccessibleText</a>().</p>


<h3 class="fn"><a name="setAccessibleText" />QStandardItem.setAccessibleText (<i>self</i>, QString&#160;<i>aaccessibleText</i>)</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><b>See also</b> <a href="qstandarditem.html#accessibleText">accessibleText</a>() and
<a href="qstandarditem.html#setAccessibleDescription">setAccessibleDescription</a>().</p>


<h3 class="fn"><a name="setBackground" />QStandardItem.setBackground (<i>self</i>, <a href="qbrush.html">QBrush</a>&#160;<i>abrush</i>)</h3><p>Sets the item's background brush to the specified
<i>brush</i>.</p>
<p><b>See also</b> <a href="qstandarditem.html#background">background</a>() and <a href="qstandarditem.html#setForeground">setForeground</a>().</p>


<h3 class="fn"><a name="setCheckable" />QStandardItem.setCheckable (<i>self</i>, bool&#160;<i>checkable</i>)</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><b>See also</b> <a href="qstandarditem.html#isCheckable">isCheckable</a>(), <a href="qstandarditem.html#setCheckState">setCheckState</a>(), and
<a href="qstandarditem.html#setTristate">setTristate</a>().</p>


<h3 class="fn"><a name="setCheckState" />QStandardItem.setCheckState (<i>self</i>, <a href="qt.html#CheckState-enum">Qt.CheckState</a>&#160;<i>acheckState</i>)</h3><p>Sets the check state of the item to be <i>state</i>.</p>
<p><b>See also</b> <a href="qstandarditem.html#checkState">checkState</a>() and <a href="qstandarditem.html#setCheckable">setCheckable</a>().</p>


<h3 class="fn"><a name="setChild" />QStandardItem.setChild (<i>self</i>, int&#160;<i>row</i>, int&#160;<i>column</i>, <a href="qstandarditem.html">QStandardItem</a>&#160;<i>item</i>)</h3><p>The <i>item</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><b>See also</b> <a href="qstandarditem.html#child">child</a>().</p>


<h3 class="fn"><a name="setChild-2" />QStandardItem.setChild (<i>self</i>, int&#160;<i>arow</i>, <a href="qstandarditem.html">QStandardItem</a>&#160;<i>aitem</i>)</h3><p>The <i>aitem</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>


<h3 class="fn"><a name="setColumnCount" />QStandardItem.setColumnCount (<i>self</i>, int&#160;<i>columns</i>)</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><b>See also</b> <a href="qstandarditem.html#columnCount">columnCount</a>() and <a href="qstandarditem.html#setRowCount">setRowCount</a>().</p>


<h3 class="fn"><a name="setData" />QStandardItem.setData (<i>self</i>, QVariant&#160;<i>value</i>, 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><b>See also</b> <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>


<h3 class="fn"><a name="setDragEnabled" />QStandardItem.setDragEnabled (<i>self</i>, bool&#160;<i>dragEnabled</i>)</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><b>See also</b> <a href="qstandarditem.html#isDragEnabled">isDragEnabled</a>(), <a href="qstandarditem.html#setDropEnabled">setDropEnabled</a>(), and
<a href="qstandarditem.html#setFlags">setFlags</a>().</p>


<h3 class="fn"><a name="setDropEnabled" />QStandardItem.setDropEnabled (<i>self</i>, bool&#160;<i>dropEnabled</i>)</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><b>See also</b> <a href="qstandarditem.html#isDropEnabled">isDropEnabled</a>(), <a href="qstandarditem.html#setDragEnabled">setDragEnabled</a>(), and
<a href="qstandarditem.html#setFlags">setFlags</a>().</p>


<h3 class="fn"><a name="setEditable" />QStandardItem.setEditable (<i>self</i>, bool&#160;<i>editable</i>)</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><b>See also</b> <a href="qstandarditem.html#isEditable">isEditable</a>() and <a href="qstandarditem.html#setFlags">setFlags</a>().</p>


<h3 class="fn"><a name="setEnabled" />QStandardItem.setEnabled (<i>self</i>, bool&#160;<i>enabled</i>)</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 precedence 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><b>See also</b> <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>


<h3 class="fn"><a name="setFlags" />QStandardItem.setFlags (<i>self</i>, <a href="qt-itemflags.html">Qt.ItemFlags</a>&#160;<i>flags</i>)</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><b>See also</b> <a href="qstandarditem.html#flags">flags</a>()
and <a href="qstandarditem.html#setData">setData</a>().</p>


<h3 class="fn"><a name="setFont" />QStandardItem.setFont (<i>self</i>, <a href="qfont.html">QFont</a>&#160;<i>afont</i>)</h3><p>Sets the font used to display the item's text to the given
<i>font</i>.</p>
<p><b>See also</b> <a href="qstandarditem.html#font">font</a>(),
<a href="qstandarditem.html#setText">setText</a>(), and <a href="qstandarditem.html#setForeground">setForeground</a>().</p>


<h3 class="fn"><a name="setForeground" />QStandardItem.setForeground (<i>self</i>, <a href="qbrush.html">QBrush</a>&#160;<i>abrush</i>)</h3><p>Sets the brush used to display the item's foreground (e.g. text)
to the given <i>brush</i>.</p>
<p><b>See also</b> <a href="qstandarditem.html#foreground">foreground</a>(), <a href="qstandarditem.html#setBackground">setBackground</a>(), and
<a href="qstandarditem.html#setFont">setFont</a>().</p>


<h3 class="fn"><a name="setIcon" />QStandardItem.setIcon (<i>self</i>, <a href="qicon.html">QIcon</a>&#160;<i>aicon</i>)</h3><p>Sets the item's icon to the <i>icon</i> specified.</p>
<p><b>See also</b> <a href="qstandarditem.html#icon">icon</a>().</p>


<h3 class="fn"><a name="setRowCount" />QStandardItem.setRowCount (<i>self</i>, int&#160;<i>rows</i>)</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><b>See also</b> <a href="qstandarditem.html#rowCount">rowCount</a>() and <a href="qstandarditem.html#setColumnCount">setColumnCount</a>().</p>


<h3 class="fn"><a name="setSelectable" />QStandardItem.setSelectable (<i>self</i>, bool&#160;<i>selectable</i>)</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><b>See also</b> <a href="qstandarditem.html#isSelectable">isSelectable</a>() and <a href="qstandarditem.html#setFlags">setFlags</a>().</p>


<h3 class="fn"><a name="setSizeHint" />QStandardItem.setSizeHint (<i>self</i>, <a href="qsize.html">QSize</a>&#160;<i>asizeHint</i>)</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><b>See also</b> <a href="qstandarditem.html#sizeHint">sizeHint</a>().</p>


<h3 class="fn"><a name="setStatusTip" />QStandardItem.setStatusTip (<i>self</i>, QString&#160;<i>astatusTip</i>)</h3><p>Sets the item's status tip to the string specified by
<i>statusTip</i>.</p>
<p><b>See also</b> <a href="qstandarditem.html#statusTip">statusTip</a>(), <a href="qstandarditem.html#setToolTip">setToolTip</a>(), and <a href="qstandarditem.html#setWhatsThis">setWhatsThis</a>().</p>


<h3 class="fn"><a name="setText" />QStandardItem.setText (<i>self</i>, QString&#160;<i>atext</i>)</h3><p>Sets the item's text to the <i>text</i> specified.</p>
<p><b>See also</b> <a href="qstandarditem.html#text">text</a>(),
<a href="qstandarditem.html#setFont">setFont</a>(), and <a href="qstandarditem.html#setForeground">setForeground</a>().</p>


<h3 class="fn"><a name="setTextAlignment" />QStandardItem.setTextAlignment (<i>self</i>, <a href="qt-alignment.html">Qt.Alignment</a>&#160;<i>atextAlignment</i>)</h3><p>Sets the text alignment for the item's text to the
<i>alignment</i> specified.</p>
<p><b>See also</b> <a href="qstandarditem.html#textAlignment">textAlignment</a>().</p>


<h3 class="fn"><a name="setToolTip" />QStandardItem.setToolTip (<i>self</i>, QString&#160;<i>atoolTip</i>)</h3><p>Sets the item's tooltip to the string specified by
<i>toolTip</i>.</p>
<p><b>See also</b> <a href="qstandarditem.html#toolTip">toolTip</a>(), <a href="qstandarditem.html#setStatusTip">setStatusTip</a>(), and <a href="qstandarditem.html#setWhatsThis">setWhatsThis</a>().</p>


<h3 class="fn"><a name="setTristate" />QStandardItem.setTristate (<i>self</i>, bool&#160;<i>tristate</i>)</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><b>See also</b> <a href="qstandarditem.html#isTristate">isTristate</a>(), <a href="qstandarditem.html#setCheckable">setCheckable</a>(), and <a href="qstandarditem.html#setCheckState">setCheckState</a>().</p>


<h3 class="fn"><a name="setWhatsThis" />QStandardItem.setWhatsThis (<i>self</i>, QString&#160;<i>awhatsThis</i>)</h3><p>Sets the item's "What's This?" help to the string specified by
<i>whatsThis</i>.</p>
<p><b>See also</b> <a href="qstandarditem.html#whatsThis">whatsThis</a>(), <a href="qstandarditem.html#setStatusTip">setStatusTip</a>(), and <a href="qstandarditem.html#setToolTip">setToolTip</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#setSizeHint">setSizeHint</a>().</p>


<h3 class="fn"><a name="sortChildren" />QStandardItem.sortChildren (<i>self</i>, int&#160;<i>column</i>, <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><b>See also</b> <a href="qstandarditem.html#operator-lt">operator&lt;</a>().</p>


<h3 class="fn"><a name="statusTip" />QString QStandardItem.statusTip (<i>self</i>)</h3><p>Returns the item's status tip.</p>
<p><b>See also</b> <a href="qstandarditem.html#setStatusTip">setStatusTip</a>(), <a href="qstandarditem.html#toolTip">toolTip</a>(), and <a href="qstandarditem.html#whatsThis">whatsThis</a>().</p>


<h3 class="fn"><a name="takeChild" /><a href="qstandarditem.html">QStandardItem</a> QStandardItem.takeChild (<i>self</i>, int&#160;<i>row</i>, 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><b>See also</b> <a href="qstandarditem.html#child">child</a>(),
<a href="qstandarditem.html#takeRow">takeRow</a>(), and <a href="qstandarditem.html#takeColumn">takeColumn</a>().</p>


<h3 class="fn"><a name="takeColumn" />list-of-QStandardItem QStandardItem.takeColumn (<i>self</i>, int&#160;<i>column</i>)</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><b>See also</b> <a href="qstandarditem.html#removeColumn">removeColumn</a>(), <a href="qstandarditem.html#insertColumn">insertColumn</a>(), and <a href="qstandarditem.html#takeRow">takeRow</a>().</p>


<h3 class="fn"><a name="takeRow" />list-of-QStandardItem QStandardItem.takeRow (<i>self</i>, int&#160;<i>row</i>)</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><b>See also</b> <a href="qstandarditem.html#removeRow">removeRow</a>(), <a href="qstandarditem.html#insertRow">insertRow</a>(), and <a href="qstandarditem.html#takeColumn">takeColumn</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#setText">setText</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#setTextAlignment">setTextAlignment</a>().</p>


<h3 class="fn"><a name="toolTip" />QString QStandardItem.toolTip (<i>self</i>)</h3><p>Returns the item's tooltip.</p>
<p><b>See also</b> <a href="qstandarditem.html#setToolTip">setToolTip</a>(), <a href="qstandarditem.html#statusTip">statusTip</a>(), and <a href="qstandarditem.html#whatsThis">whatsThis</a>().</p>


<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><b>See also</b> <a href="qstandarditem.html#ItemType-enum">QStandardItem.Type</a>.</p>


<h3 class="fn"><a name="whatsThis" />QString QStandardItem.whatsThis (<i>self</i>)</h3><p>Returns the item's "What's This?" help.</p>
<p><b>See also</b> <a href="qstandarditem.html#setWhatsThis">setWhatsThis</a>(), <a href="qstandarditem.html#toolTip">toolTip</a>(), and <a href="qstandarditem.html#statusTip">statusTip</a>().</p>


<h3 class="fn"><a name="write" />QStandardItem.write (<i>self</i>, <a href="qdatastream.html">QDataStream</a>&#160;<i>out</i>)</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><b>See also</b> <a href="qstandarditem.html#read">read</a>().</p>


<h3 class="fn"><a name="__ge__" />bool QStandardItem.__ge__ (<i>self</i>, <a href="qstandarditem.html">QStandardItem</a>&#160;<i>other</i>)</h3><h3 class="fn"><a name="__lt__" />bool QStandardItem.__lt__ (<i>self</i>, <a href="qstandarditem.html">QStandardItem</a>&#160;<i>other</i>)</h3><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.10.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> 2012</td><td align="right" width="25%">Qt&#160;4.8.5</td></tr></table></div></address></body></html>