<?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>QTableWidgetItem 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">  </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QTableWidgetItem Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QTableWidgetItem class provides an item for use with the <a href="qtablewidget.html">QTableWidget</a> class. <a href="#details">More...</a></p> <h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qtablewidgetitem.html#ItemType-enum">ItemType</a></b> { Type, UserType }</li></ul><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qtablewidgetitem.html#QTableWidgetItem">__init__</a></b> (<i>self</i>, int <i>type</i> = QTableWidgetItem.Type)</li><li><div class="fn" /><b><a href="qtablewidgetitem.html#QTableWidgetItem-2">__init__</a></b> (<i>self</i>, QString <i>text</i>, int <i>type</i> = QTableWidgetItem.Type)</li><li><div class="fn" /><b><a href="qtablewidgetitem.html#QTableWidgetItem-3">__init__</a></b> (<i>self</i>, QIcon <i>icon</i>, QString <i>text</i>, int <i>type</i> = QTableWidgetItem.Type)</li><li><div class="fn" /><b><a href="qtablewidgetitem.html#QTableWidgetItem-4">__init__</a></b> (<i>self</i>, QTableWidgetItem <i>other</i>)</li><li><div class="fn" />QBrush <b><a href="qtablewidgetitem.html#background">background</a></b> (<i>self</i>)</li><li><div class="fn" />QColor <b><a href="qtablewidgetitem.html#backgroundColor">backgroundColor</a></b> (<i>self</i>)</li><li><div class="fn" />Qt.CheckState <b><a href="qtablewidgetitem.html#checkState">checkState</a></b> (<i>self</i>)</li><li><div class="fn" />QTableWidgetItem <b><a href="qtablewidgetitem.html#clone">clone</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qtablewidgetitem.html#column">column</a></b> (<i>self</i>)</li><li><div class="fn" />QVariant <b><a href="qtablewidgetitem.html#data">data</a></b> (<i>self</i>, int <i>role</i>)</li><li><div class="fn" />Qt.ItemFlags <b><a href="qtablewidgetitem.html#flags">flags</a></b> (<i>self</i>)</li><li><div class="fn" />QFont <b><a href="qtablewidgetitem.html#font">font</a></b> (<i>self</i>)</li><li><div class="fn" />QBrush <b><a href="qtablewidgetitem.html#foreground">foreground</a></b> (<i>self</i>)</li><li><div class="fn" />QIcon <b><a href="qtablewidgetitem.html#icon">icon</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qtablewidgetitem.html#isSelected">isSelected</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qtablewidgetitem.html#read">read</a></b> (<i>self</i>, QDataStream <i>in</i>)</li><li><div class="fn" />int <b><a href="qtablewidgetitem.html#row">row</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qtablewidgetitem.html#setBackground">setBackground</a></b> (<i>self</i>, QBrush <i>brush</i>)</li><li><div class="fn" /><b><a href="qtablewidgetitem.html#setBackgroundColor">setBackgroundColor</a></b> (<i>self</i>, QColor <i>color</i>)</li><li><div class="fn" /><b><a href="qtablewidgetitem.html#setCheckState">setCheckState</a></b> (<i>self</i>, Qt.CheckState <i>state</i>)</li><li><div class="fn" /><b><a href="qtablewidgetitem.html#setData">setData</a></b> (<i>self</i>, int <i>role</i>, QVariant <i>value</i>)</li><li><div class="fn" /><b><a href="qtablewidgetitem.html#setFlags">setFlags</a></b> (<i>self</i>, Qt.ItemFlags <i>aflags</i>)</li><li><div class="fn" /><b><a href="qtablewidgetitem.html#setFont">setFont</a></b> (<i>self</i>, QFont <i>afont</i>)</li><li><div class="fn" /><b><a href="qtablewidgetitem.html#setForeground">setForeground</a></b> (<i>self</i>, QBrush <i>brush</i>)</li><li><div class="fn" /><b><a href="qtablewidgetitem.html#setIcon">setIcon</a></b> (<i>self</i>, QIcon <i>aicon</i>)</li><li><div class="fn" /><b><a href="qtablewidgetitem.html#setSelected">setSelected</a></b> (<i>self</i>, bool <i>aselect</i>)</li><li><div class="fn" /><b><a href="qtablewidgetitem.html#setSizeHint">setSizeHint</a></b> (<i>self</i>, QSize <i>size</i>)</li><li><div class="fn" /><b><a href="qtablewidgetitem.html#setStatusTip">setStatusTip</a></b> (<i>self</i>, QString <i>astatusTip</i>)</li><li><div class="fn" /><b><a href="qtablewidgetitem.html#setText">setText</a></b> (<i>self</i>, QString <i>atext</i>)</li><li><div class="fn" /><b><a href="qtablewidgetitem.html#setTextAlignment">setTextAlignment</a></b> (<i>self</i>, int <i>alignment</i>)</li><li><div class="fn" /><b><a href="qtablewidgetitem.html#setTextColor">setTextColor</a></b> (<i>self</i>, QColor <i>color</i>)</li><li><div class="fn" /><b><a href="qtablewidgetitem.html#setToolTip">setToolTip</a></b> (<i>self</i>, QString <i>atoolTip</i>)</li><li><div class="fn" /><b><a href="qtablewidgetitem.html#setWhatsThis">setWhatsThis</a></b> (<i>self</i>, QString <i>awhatsThis</i>)</li><li><div class="fn" />QSize <b><a href="qtablewidgetitem.html#sizeHint">sizeHint</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qtablewidgetitem.html#statusTip">statusTip</a></b> (<i>self</i>)</li><li><div class="fn" />QTableWidget <b><a href="qtablewidgetitem.html#tableWidget">tableWidget</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qtablewidgetitem.html#text">text</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qtablewidgetitem.html#textAlignment">textAlignment</a></b> (<i>self</i>)</li><li><div class="fn" />QColor <b><a href="qtablewidgetitem.html#textColor">textColor</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qtablewidgetitem.html#toolTip">toolTip</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qtablewidgetitem.html#type">type</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qtablewidgetitem.html#whatsThis">whatsThis</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qtablewidgetitem.html#write">write</a></b> (<i>self</i>, QDataStream <i>out</i>)</li></ul><h3>Special Methods</h3><ul><li><div class="fn" />bool <b><a href="qtablewidgetitem.html#__ge__">__ge__</a></b> (<i>self</i>, QTableWidgetItem <i>other</i>)</li><li><div class="fn" />bool <b><a href="qtablewidgetitem.html#__lt__">__lt__</a></b> (<i>self</i>, QTableWidgetItem <i>other</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QTableWidgetItem class provides an item for use with the <a href="qtablewidget.html">QTableWidget</a> class.</p> <p>Table items are used to hold pieces of information for table widgets. Items usually contain text, icons, or checkboxes</p> <p>The QTableWidgetItem class is a convenience class that replaces the <tt>QTableItem</tt> class in Qt 3. It provides an item for use with the <a href="qtablewidget.html">QTableWidget</a> class.</p> <p>Top-level items are constructed without a parent then inserted at the position specified by a pair of row and column numbers:</p> <pre class="cpp"> <span class="type">QTableWidgetItem</span> <span class="operator">*</span>newItem <span class="operator">=</span> <span class="keyword">new</span> <span class="type">QTableWidgetItem</span>(tr(<span class="string">"%1"</span>)<span class="operator">.</span>arg( pow(row<span class="operator">,</span> column<span class="operator">+</span><span class="number">1</span>))); tableWidget<span class="operator">-</span><span class="operator">></span>setItem(row<span class="operator">,</span> column<span class="operator">,</span> newItem); </pre> <p>Each item can have its own background brush which is set with the <a href="qtablewidgetitem.html#setBackground">setBackground</a>() function. The current background brush can be found with <a href="qtablewidgetitem.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="qtablewidgetitem.html#setFont">setFont</a>() and <a href="qtablewidgetitem.html#setForeground">setForeground</a>() functions, and read with <a href="qtablewidgetitem.html#font">font</a>() and <a href="qtablewidgetitem.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="qtablewidgetitem.html#setFlags">setFlags</a>() with the appropriate value (see <a href="qt.html#ItemFlag-enum">Qt.ItemFlags</a>). Checkable items can be checked and unchecked with the <a href="qtablewidgetitem.html#setCheckState">setCheckState</a>() function. The corresponding <a href="qtablewidgetitem.html#checkState">checkState</a>() function indicates whether the item is currently checked.</p> <a id="subclassing" name="subclassing" /> <h3>Subclassing</h3> <p>When subclassing QTableWidgetItem to provide custom items, it is possible to define new types for them so that they can be distinguished from standard items. The constructors for subclasses that require this feature need to call the base class constructor with a new type value equal to or greater than <a href="qtablewidgetitem.html#ItemType-enum">UserType</a>.</p> <hr /><h2>Type Documentation</h2><h3 class="fn"><a name="ItemType-enum" />QTableWidgetItem.ItemType</h3><p>This enum describes the types that are used to describe table widget 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>QTableWidgetItem.Type</tt></td> <td class="topAlign"><tt>0</tt></td> <td class="topAlign">The default type for table widget items.</td> </tr> <tr> <td class="topAlign"><tt>QTableWidgetItem.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="qtablewidgetitem.html">QTableWidgetItem</a> subclasses to ensure that custom items are treated specially.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#type">type</a>().</p> <hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QTableWidgetItem" />QTableWidgetItem.__init__ (<i>self</i>, int <i>type</i> = QTableWidgetItem.Type)</h3><p>Constructs a table item of the specified <i>type</i> that does not belong to any table.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#type">type</a>().</p> <h3 class="fn"><a name="QTableWidgetItem-2" />QTableWidgetItem.__init__ (<i>self</i>, QString <i>text</i>, int <i>type</i> = QTableWidgetItem.Type)</h3><p>Constructs a table item with the given <i>text</i>.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#type">type</a>().</p> <h3 class="fn"><a name="QTableWidgetItem-3" />QTableWidgetItem.__init__ (<i>self</i>, <a href="qicon.html">QIcon</a> <i>icon</i>, QString <i>text</i>, int <i>type</i> = QTableWidgetItem.Type)</h3><p>Constructs a table item with the given <i>icon</i> and <i>text</i>.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#type">type</a>().</p> <h3 class="fn"><a name="QTableWidgetItem-4" />QTableWidgetItem.__init__ (<i>self</i>, <a href="qtablewidgetitem.html">QTableWidgetItem</a> <i>other</i>)</h3><p>Constructs a copy of <i>other</i>. Note that <a href="qtablewidgetitem.html#type">type</a>() and <a href="qtablewidgetitem.html#tableWidget">tableWidget</a>() are not copied.</p> <p>This function is useful when reimplementing <a href="qtablewidgetitem.html#clone">clone</a>().</p> <p>This function was introduced in Qt 4.1.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#data">data</a>() and <a href="qtablewidgetitem.html#flags">flags</a>().</p> <h3 class="fn"><a name="background" /><a href="qbrush.html">QBrush</a> QTableWidgetItem.background (<i>self</i>)</h3><p>Returns the brush used to render the item's background.</p> <p>This function was introduced in Qt 4.2.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#setBackground">setBackground</a>() and <a href="qtablewidgetitem.html#foreground">foreground</a>().</p> <h3 class="fn"><a name="backgroundColor" /><a href="qcolor.html">QColor</a> QTableWidgetItem.backgroundColor (<i>self</i>)</h3><h3 class="fn"><a name="checkState" /><a href="qt.html#CheckState-enum">Qt.CheckState</a> QTableWidgetItem.checkState (<i>self</i>)</h3><p>Returns the checked state of the table item.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#setCheckState">setCheckState</a>() and <a href="qtablewidgetitem.html#flags">flags</a>().</p> <h3 class="fn"><a name="clone" /><a href="qtablewidgetitem.html">QTableWidgetItem</a> QTableWidgetItem.clone (<i>self</i>)</h3><p>Creates a copy of the item.</p> <h3 class="fn"><a name="column" />int QTableWidgetItem.column (<i>self</i>)</h3><p>Returns the column of the item in the table. If the item is not in a table, this function will return -1.</p> <p>This function was introduced in Qt 4.2.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#row">row</a>().</p> <h3 class="fn"><a name="data" />QVariant QTableWidgetItem.data (<i>self</i>, int <i>role</i>)</h3><p>Returns the item's data for the given <i>role</i>.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#setData">setData</a>().</p> <h3 class="fn"><a name="flags" /><a href="qt-itemflags.html">Qt.ItemFlags</a> QTableWidgetItem.flags (<i>self</i>)</h3><p>Returns the flags used to describe the item. These determine whether the item can be checked, edited, and selected.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#setFlags">setFlags</a>().</p> <h3 class="fn"><a name="font" /><a href="qfont.html">QFont</a> QTableWidgetItem.font (<i>self</i>)</h3><p>Returns the font used to render the item's text.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#setFont">setFont</a>().</p> <h3 class="fn"><a name="foreground" /><a href="qbrush.html">QBrush</a> QTableWidgetItem.foreground (<i>self</i>)</h3><p>Returns the brush used to render the item's foreground (e.g. text).</p> <p>This function was introduced in Qt 4.2.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#setForeground">setForeground</a>() and <a href="qtablewidgetitem.html#background">background</a>().</p> <h3 class="fn"><a name="icon" /><a href="qicon.html">QIcon</a> QTableWidgetItem.icon (<i>self</i>)</h3><p>Returns the item's icon.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#setIcon">setIcon</a>() and <a href="qabstractitemview.html#iconSize-prop">iconSize</a>.</p> <h3 class="fn"><a name="isSelected" />bool QTableWidgetItem.isSelected (<i>self</i>)</h3><p>Returns true if the item is selected, otherwise returns false.</p> <p>This function was introduced in Qt 4.2.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#setSelected">setSelected</a>().</p> <h3 class="fn"><a name="read" />QTableWidgetItem.read (<i>self</i>, <a href="qdatastream.html">QDataStream</a> <i>in</i>)</h3><p>Reads the item from stream <i>in</i>.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#write">write</a>().</p> <h3 class="fn"><a name="row" />int QTableWidgetItem.row (<i>self</i>)</h3><p>Returns the row of the item in the table. If the item is not in a table, this function will return -1.</p> <p>This function was introduced in Qt 4.2.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#column">column</a>().</p> <h3 class="fn"><a name="setBackground" />QTableWidgetItem.setBackground (<i>self</i>, <a href="qbrush.html">QBrush</a> <i>brush</i>)</h3><p>Sets the item's background brush to the specified <i>brush</i>.</p> <p>This function was introduced in Qt 4.2.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#background">background</a>() and <a href="qtablewidgetitem.html#setForeground">setForeground</a>().</p> <h3 class="fn"><a name="setBackgroundColor" />QTableWidgetItem.setBackgroundColor (<i>self</i>, <a href="qcolor.html">QColor</a> <i>color</i>)</h3><h3 class="fn"><a name="setCheckState" />QTableWidgetItem.setCheckState (<i>self</i>, <a href="qt.html#CheckState-enum">Qt.CheckState</a> <i>state</i>)</h3><p>Sets the check state of the table item to be <i>state</i>.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#checkState">checkState</a>().</p> <h3 class="fn"><a name="setData" />QTableWidgetItem.setData (<i>self</i>, int <i>role</i>, QVariant <i>value</i>)</h3><p>Sets the item's data for the given <i>role</i> to the specified <i>value</i>.</p> <p><b>See also</b> <a href="qt.html#ItemDataRole-enum">Qt.ItemDataRole</a> and <a href="qtablewidgetitem.html#data">data</a>().</p> <h3 class="fn"><a name="setFlags" />QTableWidgetItem.setFlags (<i>self</i>, <a href="qt-itemflags.html">Qt.ItemFlags</a> <i>aflags</i>)</h3><p>Sets the flags for the item to the given <i>flags</i>. These determine whether the item can be selected or modified.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#flags">flags</a>().</p> <h3 class="fn"><a name="setFont" />QTableWidgetItem.setFont (<i>self</i>, <a href="qfont.html">QFont</a> <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="qtablewidgetitem.html#font">font</a>(), <a href="qtablewidgetitem.html#setText">setText</a>(), and <a href="qtablewidgetitem.html#setForeground">setForeground</a>().</p> <h3 class="fn"><a name="setForeground" />QTableWidgetItem.setForeground (<i>self</i>, <a href="qbrush.html">QBrush</a> <i>brush</i>)</h3><p>Sets the item's foreground brush to the specified <i>brush</i>.</p> <p>This function was introduced in Qt 4.2.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#foreground">foreground</a>() and <a href="qtablewidgetitem.html#setBackground">setBackground</a>().</p> <h3 class="fn"><a name="setIcon" />QTableWidgetItem.setIcon (<i>self</i>, <a href="qicon.html">QIcon</a> <i>aicon</i>)</h3><p>Sets the item's icon to the <i>icon</i> specified.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#icon">icon</a>(), <a href="qtablewidgetitem.html#setText">setText</a>(), and <a href="qabstractitemview.html#iconSize-prop">iconSize</a>.</p> <h3 class="fn"><a name="setSelected" />QTableWidgetItem.setSelected (<i>self</i>, bool <i>aselect</i>)</h3><p>Sets the selected state of the item to <i>select</i>.</p> <p>This function was introduced in Qt 4.2.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#isSelected">isSelected</a>().</p> <h3 class="fn"><a name="setSizeHint" />QTableWidgetItem.setSizeHint (<i>self</i>, <a href="qsize.html">QSize</a> <i>size</i>)</h3><p>Sets the size hint for the table 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>This function was introduced in Qt 4.1.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#sizeHint">sizeHint</a>().</p> <h3 class="fn"><a name="setStatusTip" />QTableWidgetItem.setStatusTip (<i>self</i>, QString <i>astatusTip</i>)</h3><p>Sets the status tip for the table item to the text specified by <i>statusTip</i>. <a href="qtablewidget.html">QTableWidget</a> mouse tracking needs to be enabled for this feature to work.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#statusTip">statusTip</a>(), <a href="qtablewidgetitem.html#setToolTip">setToolTip</a>(), and <a href="qtablewidgetitem.html#setWhatsThis">setWhatsThis</a>().</p> <h3 class="fn"><a name="setText" />QTableWidgetItem.setText (<i>self</i>, QString <i>atext</i>)</h3><p>Sets the item's text to the <i>text</i> specified.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#text">text</a>(), <a href="qtablewidgetitem.html#setFont">setFont</a>(), and <a href="qtablewidgetitem.html#setForeground">setForeground</a>().</p> <h3 class="fn"><a name="setTextAlignment" />QTableWidgetItem.setTextAlignment (<i>self</i>, int <i>alignment</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="qtablewidgetitem.html#textAlignment">textAlignment</a>() and <a href="qt.html#AlignmentFlag-enum">Qt.Alignment</a>.</p> <h3 class="fn"><a name="setTextColor" />QTableWidgetItem.setTextColor (<i>self</i>, <a href="qcolor.html">QColor</a> <i>color</i>)</h3><h3 class="fn"><a name="setToolTip" />QTableWidgetItem.setToolTip (<i>self</i>, QString <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="qtablewidgetitem.html#toolTip">toolTip</a>(), <a href="qtablewidgetitem.html#setStatusTip">setStatusTip</a>(), and <a href="qtablewidgetitem.html#setWhatsThis">setWhatsThis</a>().</p> <h3 class="fn"><a name="setWhatsThis" />QTableWidgetItem.setWhatsThis (<i>self</i>, QString <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="qtablewidgetitem.html#whatsThis">whatsThis</a>(), <a href="qtablewidgetitem.html#setStatusTip">setStatusTip</a>(), and <a href="qtablewidgetitem.html#setToolTip">setToolTip</a>().</p> <h3 class="fn"><a name="sizeHint" /><a href="qsize.html">QSize</a> QTableWidgetItem.sizeHint (<i>self</i>)</h3><p>Returns the size hint set for the table item.</p> <p>This function was introduced in Qt 4.1.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#setSizeHint">setSizeHint</a>().</p> <h3 class="fn"><a name="statusTip" />QString QTableWidgetItem.statusTip (<i>self</i>)</h3><p>Returns the item's status tip.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#setStatusTip">setStatusTip</a>().</p> <h3 class="fn"><a name="tableWidget" /><a href="qtablewidget.html">QTableWidget</a> QTableWidgetItem.tableWidget (<i>self</i>)</h3><p>Returns the table widget that contains the item.</p> <h3 class="fn"><a name="text" />QString QTableWidgetItem.text (<i>self</i>)</h3><p>Returns the item's text.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#setText">setText</a>().</p> <h3 class="fn"><a name="textAlignment" />int QTableWidgetItem.textAlignment (<i>self</i>)</h3><p>Returns the text alignment for the item's text.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#setTextAlignment">setTextAlignment</a>() and <a href="qt.html#AlignmentFlag-enum">Qt.Alignment</a>.</p> <h3 class="fn"><a name="textColor" /><a href="qcolor.html">QColor</a> QTableWidgetItem.textColor (<i>self</i>)</h3><h3 class="fn"><a name="toolTip" />QString QTableWidgetItem.toolTip (<i>self</i>)</h3><p>Returns the item's tooltip.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#setToolTip">setToolTip</a>().</p> <h3 class="fn"><a name="type" />int QTableWidgetItem.type (<i>self</i>)</h3><p>Returns the type passed to the <a href="qtablewidgetitem.html">QTableWidgetItem</a> constructor.</p> <h3 class="fn"><a name="whatsThis" />QString QTableWidgetItem.whatsThis (<i>self</i>)</h3><p>Returns the item's "What's This?" help.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#setWhatsThis">setWhatsThis</a>().</p> <h3 class="fn"><a name="write" />QTableWidgetItem.write (<i>self</i>, <a href="qdatastream.html">QDataStream</a> <i>out</i>)</h3><p>Writes the item to stream <i>out</i>.</p> <p><b>See also</b> <a href="qtablewidgetitem.html#read">read</a>().</p> <h3 class="fn"><a name="__ge__" />bool QTableWidgetItem.__ge__ (<i>self</i>, <a href="qtablewidgetitem.html">QTableWidgetItem</a> <i>other</i>)</h3><h3 class="fn"><a name="__lt__" />bool QTableWidgetItem.__lt__ (<i>self</i>, <a href="qtablewidgetitem.html">QTableWidgetItem</a> <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 4.10.3 for X11</td><td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com">Riverbank Computing Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2012</td><td align="right" width="25%">Qt 4.8.5</td></tr></table></div></address></body></html>