File: qlistwidgetitem.html

package info (click to toggle)
python-qt4 4.0.1-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 18,632 kB
  • ctags: 2,639
  • sloc: python: 29,409; sh: 5,646; cpp: 3,168; xml: 149; makefile: 109
file content (97 lines) | stat: -rw-r--r-- 22,810 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
<?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>QListWidgetItem 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">QListWidgetItem Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QListWidgetItem class provides an item for use with the <a href="qlistwidget.html">QListWidget</a> item view class. <a href="#details">More...</a></p>
<h3>Methods</h3><ul><li><div class="fn" /><b><a href="qlistwidgetitem.html#QListWidgetItem">__init__</a></b> (<i>self</i>, QListWidget&#160;<i>view</i>&#160;=&#160;None, int&#160;<i>type</i>&#160;=&#160;QListWidgetItem.Type)</li><li><div class="fn" /><b><a href="qlistwidgetitem.html#QListWidgetItem-2">__init__</a></b> (<i>self</i>, QString&#160;<i>text</i>, QListWidget&#160;<i>view</i>&#160;=&#160;None, int&#160;<i>type</i>&#160;=&#160;QListWidgetItem.Type)</li><li><div class="fn" /><b><a href="qlistwidgetitem.html#QListWidgetItem-3">__init__</a></b> (<i>self</i>, QIcon&#160;<i>icon</i>, QString&#160;<i>text</i>, QListWidget&#160;<i>view</i>&#160;=&#160;None, int&#160;<i>type</i>&#160;=&#160;QListWidgetItem.Type)</li><li><div class="fn" /><b><a href="qlistwidgetitem.html#QListWidgetItem-4">__init__</a></b> (<i>self</i>, QListWidgetItem&#160;<i>other</i>)</li><li><div class="fn" />QColor <b><a href="qlistwidgetitem.html#backgroundColor">backgroundColor</a></b> (<i>self</i>)</li><li><div class="fn" />Qt.CheckState <b><a href="qlistwidgetitem.html#checkState">checkState</a></b> (<i>self</i>)</li><li><div class="fn" />QListWidgetItem <b><a href="qlistwidgetitem.html#clone">clone</a></b> (<i>self</i>)</li><li><div class="fn" />QVariant <b><a href="qlistwidgetitem.html#data">data</a></b> (<i>self</i>, int&#160;<i>role</i>)</li><li><div class="fn" />Qt.ItemFlags <b><a href="qlistwidgetitem.html#flags">flags</a></b> (<i>self</i>)</li><li><div class="fn" />QFont <b><a href="qlistwidgetitem.html#font">font</a></b> (<i>self</i>)</li><li><div class="fn" />QIcon <b><a href="qlistwidgetitem.html#icon">icon</a></b> (<i>self</i>)</li><li><div class="fn" />QListWidget <b><a href="qlistwidgetitem.html#listWidget">listWidget</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qlistwidgetitem.html#read">read</a></b> (<i>self</i>, QDataStream&#160;<i>in</i>)</li><li><div class="fn" /><b><a href="qlistwidgetitem.html#setBackgroundColor">setBackgroundColor</a></b> (<i>self</i>, QColor&#160;<i>color</i>)</li><li><div class="fn" /><b><a href="qlistwidgetitem.html#setCheckState">setCheckState</a></b> (<i>self</i>, Qt.CheckState&#160;<i>state</i>)</li><li><div class="fn" /><b><a href="qlistwidgetitem.html#setData">setData</a></b> (<i>self</i>, int&#160;<i>role</i>, QVariant&#160;<i>value</i>)</li><li><div class="fn" /><b><a href="qlistwidgetitem.html#setFlags">setFlags</a></b> (<i>self</i>, Qt.ItemFlags&#160;<i>aflags</i>)</li><li><div class="fn" /><b><a href="qlistwidgetitem.html#setFont">setFont</a></b> (<i>self</i>, QFont&#160;<i>afont</i>)</li><li><div class="fn" /><b><a href="qlistwidgetitem.html#setIcon">setIcon</a></b> (<i>self</i>, QIcon&#160;<i>aicon</i>)</li><li><div class="fn" /><b><a href="qlistwidgetitem.html#setSizeHint">setSizeHint</a></b> (<i>self</i>, QSize&#160;<i>size</i>)</li><li><div class="fn" /><b><a href="qlistwidgetitem.html#setStatusTip">setStatusTip</a></b> (<i>self</i>, QString&#160;<i>astatusTip</i>)</li><li><div class="fn" /><b><a href="qlistwidgetitem.html#setText">setText</a></b> (<i>self</i>, QString&#160;<i>atext</i>)</li><li><div class="fn" /><b><a href="qlistwidgetitem.html#setTextAlignment">setTextAlignment</a></b> (<i>self</i>, int&#160;<i>alignment</i>)</li><li><div class="fn" /><b><a href="qlistwidgetitem.html#setTextColor">setTextColor</a></b> (<i>self</i>, QColor&#160;<i>color</i>)</li><li><div class="fn" /><b><a href="qlistwidgetitem.html#setToolTip">setToolTip</a></b> (<i>self</i>, QString&#160;<i>atoolTip</i>)</li><li><div class="fn" /><b><a href="qlistwidgetitem.html#setWhatsThis">setWhatsThis</a></b> (<i>self</i>, QString&#160;<i>awhatsThis</i>)</li><li><div class="fn" />QSize <b><a href="qlistwidgetitem.html#sizeHint">sizeHint</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qlistwidgetitem.html#statusTip">statusTip</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qlistwidgetitem.html#text">text</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qlistwidgetitem.html#textAlignment">textAlignment</a></b> (<i>self</i>)</li><li><div class="fn" />QColor <b><a href="qlistwidgetitem.html#textColor">textColor</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qlistwidgetitem.html#toolTip">toolTip</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qlistwidgetitem.html#type">type</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qlistwidgetitem.html#whatsThis">whatsThis</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qlistwidgetitem.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="qlistwidgetitem.html#__lt__">__lt__</a></b> (<i>self</i>, QListWidgetItem&#160;<i>other</i>)</li></ul><h3>Static Members</h3><ul><li><div class="fn" />int <b><a href="qlistwidgetitem.html#Type-var">Type</a></b></li><li><div class="fn" />int <b><a href="qlistwidgetitem.html#UserType-var">UserType</a></b></li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QListWidgetItem class provides an item for use with the <a href="qlistwidget.html">QListWidget</a> item view class.</p>
<p>QListWidgetItem is used to represent items in a list provided by the <a href="qlistwidget.html">QListWidget</a> class. Each item can hold several pieces of information, and will display these appropriately.</p>
<p>The item view convenience classes use a classic item-based interface rather than a pure model/view approach. For a more flexible list view widget, consider using the <a href="qlistview.html">QListView</a> class with a standard model.</p>
<p>List items can be automatically inserted into a list when they are constructed by specifying the list widget:</p>
<pre>
        new QListWidgetItem(tr("Hazel"), listWidget);
</pre>
<p>They can also be created without a parent widget, and later inserted into a list (see <a href="qlistwidget.html#insertItem">QListWidget.insertItem</a>()).</p>
<p>List items are typically used to display <a href="qlistwidgetitem.html#text">text</a>() and an <a href="qlistwidgetitem.html#icon">icon</a>(). These are set with the <a href="qlistwidgetitem.html#setText">setText</a>() and <a href="qlistwidgetitem.html#setIcon">setIcon</a>() functions. The appearance of the text can be customized with <a href="qlistwidgetitem.html#setFont">setFont</a>(), <a href="qlistwidgetitem.html#setTextColor">setTextColor</a>(), and <a href="qlistwidgetitem.html#setBackgroundColor">setBackgroundColor</a>(). List items can be aligned using the setAlignment() function. Tooltips, status tips and "What's This?" help can be added to list items with <a href="qlistwidgetitem.html#setToolTip">setToolTip</a>(), <a href="qlistwidgetitem.html#setStatusTip">setStatusTip</a>(), and <a href="qlistwidgetitem.html#setWhatsThis">setWhatsThis</a>().</p>
<p>By default, items are enabled, selectable, checkable, and can be the source of a drag and drop operation. Each item's flags can be changed by calling <a href="qlistwidgetitem.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 setChecked() function. The corresponding checked() function indicates whether the item is currently checked.</p>
<p>The isItemHidden() function can be used to determine whether the item is hidden. Items can be hidden with setItemHidden().</p>
<p>See also <a href="qlistwidget.html">QListWidget</a>, <a href="model-view-programming.html">Model/View Programming</a>, <a href="qtreewidgetitem.html">QTreeWidgetItem</a>, and <a href="qtablewidgetitem.html">QTableWidgetItem</a>.</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QListWidgetItem" />QListWidgetItem.__init__ (<i>self</i>, <a href="qlistwidget.html">QListWidget</a>&#160;<i>view</i>&#160;=&#160;None, int&#160;<i>type</i>&#160;=&#160;QListWidgetItem.Type)</h3><p>The <i>view</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs an empty list widget item of the specified <i>type</i> with the given <i>parent</i>. If the parent is not specified, the item will need to be inserted into a list widget with <a href="qlistwidget.html#insertItem">QListWidget.insertItem</a>().</p>
<p>See also <a href="qlistwidgetitem.html#type">type</a>().</p>
<h3 class="fn"><a name="QListWidgetItem-2" />QListWidgetItem.__init__ (<i>self</i>, <a href="qstring.html">QString</a>&#160;<i>text</i>, <a href="qlistwidget.html">QListWidget</a>&#160;<i>view</i>&#160;=&#160;None, int&#160;<i>type</i>&#160;=&#160;QListWidgetItem.Type)</h3><p>The <i>view</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs an empty list widget item of the specified <i>type</i> with the given <i>text</i> and <i>parent</i>. If the parent is not specified, the item will need to be inserted into a list widget with <a href="qlistwidget.html#insertItem">QListWidget.insertItem</a>().</p>
<p>See also <a href="qlistwidgetitem.html#type">type</a>().</p>
<h3 class="fn"><a name="QListWidgetItem-3" />QListWidgetItem.__init__ (<i>self</i>, <a href="qicon.html">QIcon</a>&#160;<i>icon</i>, <a href="qstring.html">QString</a>&#160;<i>text</i>, <a href="qlistwidget.html">QListWidget</a>&#160;<i>view</i>&#160;=&#160;None, int&#160;<i>type</i>&#160;=&#160;QListWidgetItem.Type)</h3><p>The <i>view</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs an empty list widget item of the specified <i>type</i> with the given <i>icon</i>, <i>text</i> and <i>parent</i>. If the parent is not specified, the item will need to be inserted into a list widget with <a href="qlistwidget.html#insertItem">QListWidget.insertItem</a>().</p>
<p>See also <a href="qlistwidgetitem.html#type">type</a>().</p>
<h3 class="fn"><a name="QListWidgetItem-4" />QListWidgetItem.__init__ (<i>self</i>, <a href="qlistwidgetitem.html">QListWidgetItem</a>&#160;<i>other</i>)</h3><p>Constructs a copy of <i>other</i>. Note that <a href="qlistwidgetitem.html#type">type</a>() and <a href="qlistwidgetitem.html#listWidget">listWidget</a>() are not copied.</p>
<p>This function is useful when reimplementing <a href="qlistwidgetitem.html#clone">clone</a>().</p>
<p>This function was introduced in Qt 4.1.</p>
<p>See also <a href="qlistwidgetitem.html#data">data</a>() and <a href="qlistwidgetitem.html#flags">flags</a>().</p>
<h3 class="fn"><a name="backgroundColor" /><a href="qcolor.html">QColor</a> QListWidgetItem.backgroundColor (<i>self</i>)</h3><p>Returns the color used to display the list item's background.</p>
<p>See also <a href="qlistwidgetitem.html#setBackgroundColor">setBackgroundColor</a>() and <a href="qlistwidgetitem.html#textColor">textColor</a>().</p>
<h3 class="fn"><a name="checkState" /><a href="qt.html#CheckState-enum">Qt.CheckState</a> QListWidgetItem.checkState (<i>self</i>)</h3><p>Returns the checked state of the list item (see <a href="qt.html#CheckState-enum">Qt.CheckState</a>.</p>
<p>See also <a href="qlistwidgetitem.html#setCheckState">setCheckState</a>() and <a href="qlistwidgetitem.html#flags">flags</a>().</p>
<h3 class="fn"><a name="clone" /><a href="qlistwidgetitem.html">QListWidgetItem</a> QListWidgetItem.clone (<i>self</i>)</h3><p>Creates an exact copy of the item.</p>
<h3 class="fn"><a name="data" /><a href="qvariant.html">QVariant</a> QListWidgetItem.data (<i>self</i>, int&#160;<i>role</i>)</h3><p>This function returns the item's data for a given <i>role</i> (see {<a href="qt.html#ItemDataRole-enum">Qt.ItemDataRole</a>}). Reimplement this function if you need extra roles or special behavior for certain roles.</p>
<p>See also <a href="qlistwidgetitem.html#setData">setData</a>().</p>
<h3 class="fn"><a name="flags" /><a href="qt-itemflags.html">Qt.ItemFlags</a> QListWidgetItem.flags (<i>self</i>)</h3><p>Returns the item flags for this item (see {<a href="qt.html#ItemFlag-enum">Qt.ItemFlags</a>}).</p>
<p>See also <a href="qlistwidgetitem.html#setFlags">setFlags</a>().</p>
<h3 class="fn"><a name="font" /><a href="qfont.html">QFont</a> QListWidgetItem.font (<i>self</i>)</h3><p>Returns the font used to display this list item's text.</p>
<p>See also <a href="qlistwidgetitem.html#setFont">setFont</a>().</p>
<h3 class="fn"><a name="icon" /><a href="qicon.html">QIcon</a> QListWidgetItem.icon (<i>self</i>)</h3><p>Returns the list item's icon.</p>
<p>See also <a href="qlistwidgetitem.html#setIcon">setIcon</a>() and <a href="qabstractitemview.html#iconSize-prop">iconSize</a>.</p>
<h3 class="fn"><a name="listWidget" /><a href="qlistwidget.html">QListWidget</a> QListWidgetItem.listWidget (<i>self</i>)</h3><p>Returns the list widget that contains the item.</p>
<h3 class="fn"><a name="read" />QListWidgetItem.read (<i>self</i>, <a href="qdatastream.html">QDataStream</a>&#160;<i>in</i>)</h3><p>Reads the item from stream <i>in</i>.</p>
<p>See also <a href="qlistwidgetitem.html#write">write</a>().</p>
<h3 class="fn"><a name="setBackgroundColor" />QListWidgetItem.setBackgroundColor (<i>self</i>, <a href="qcolor.html">QColor</a>&#160;<i>color</i>)</h3><p>Sets the background color of the list item to the given <i>color</i>.</p>
<p>See also <a href="qlistwidgetitem.html#backgroundColor">backgroundColor</a>() and <a href="qlistwidgetitem.html#setTextColor">setTextColor</a>().</p>
<h3 class="fn"><a name="setCheckState" />QListWidgetItem.setCheckState (<i>self</i>, <a href="qt.html#CheckState-enum">Qt.CheckState</a>&#160;<i>state</i>)</h3><p>Sets the check state of the list item to <i>state</i>.</p>
<p>See also <a href="qlistwidgetitem.html#checkState">checkState</a>().</p>
<h3 class="fn"><a name="setData" />QListWidgetItem.setData (<i>self</i>, int&#160;<i>role</i>, <a href="qvariant.html">QVariant</a>&#160;<i>value</i>)</h3><p>This function sets the data for a given <i>role</i> to the given <i>value</i> (see <a href="qt.html#ItemDataRole-enum">Qt.ItemDataRole</a>). Reimplement this function if you need extra roles or special behavior for certain roles.</p>
<p>See also <a href="qt.html#ItemDataRole-enum">Qt.ItemDataRole</a>, <a href="qlistwidgetitem.html#data">data</a>(), and itemData().</p>
<h3 class="fn"><a name="setFlags" />QListWidgetItem.setFlags (<i>self</i>, <a href="qt-itemflags.html">Qt.ItemFlags</a>&#160;<i>aflags</i>)</h3><p>Sets the item flags for the list item to <i>flags</i> (see <a href="qt.html#ItemFlag-enum">Qt.ItemFlags</a>).</p>
<p>See also <a href="qlistwidgetitem.html#flags">flags</a>().</p>
<h3 class="fn"><a name="setFont" />QListWidgetItem.setFont (<i>self</i>, <a href="qfont.html">QFont</a>&#160;<i>afont</i>)</h3><p>Sets the font used when painting the item to the given <i>font</i>.</p>
<p>See also <a href="qlistwidgetitem.html#font">font</a>().</p>
<h3 class="fn"><a name="setIcon" />QListWidgetItem.setIcon (<i>self</i>, <a href="qicon.html">QIcon</a>&#160;<i>aicon</i>)</h3><p>Sets the icon for the list item to the given <i>icon</i>.</p>
<p>See also <a href="qlistwidgetitem.html#icon">icon</a>(), <a href="qlistwidgetitem.html#text">text</a>(), and <a href="qabstractitemview.html#iconSize-prop">iconSize</a>.</p>
<h3 class="fn"><a name="setSizeHint" />QListWidgetItem.setSizeHint (<i>self</i>, <a href="qsize.html">QSize</a>&#160;<i>size</i>)</h3><p>Sets the size hint for the list 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>See also <a href="qlistwidgetitem.html#sizeHint">sizeHint</a>().</p>
<h3 class="fn"><a name="setStatusTip" />QListWidgetItem.setStatusTip (<i>self</i>, <a href="qstring.html">QString</a>&#160;<i>astatusTip</i>)</h3><p>Sets the status tip for the list item to the text specified by <i>statusTip</i>.</p>
<p>See also <a href="qlistwidgetitem.html#statusTip">statusTip</a>(), <a href="qlistwidgetitem.html#setToolTip">setToolTip</a>(), and <a href="qlistwidgetitem.html#setWhatsThis">setWhatsThis</a>().</p>
<h3 class="fn"><a name="setText" />QListWidgetItem.setText (<i>self</i>, <a href="qstring.html">QString</a>&#160;<i>atext</i>)</h3><p>Sets the text for the list widget item's to the given <i>text</i>.</p>
<p>See also <a href="qlistwidgetitem.html#text">text</a>().</p>
<h3 class="fn"><a name="setTextAlignment" />QListWidgetItem.setTextAlignment (<i>self</i>, int&#160;<i>alignment</i>)</h3><p>Sets the list item's text alignment to <i>alignment</i> (see <a href="qt.html#AlignmentFlag-enum">Qt.AlignmentFlag</a>).</p>
<p>See also <a href="qlistwidgetitem.html#textAlignment">textAlignment</a>().</p>
<h3 class="fn"><a name="setTextColor" />QListWidgetItem.setTextColor (<i>self</i>, <a href="qcolor.html">QColor</a>&#160;<i>color</i>)</h3><p>Sets the text color for the list item to the given <i>color</i>.</p>
<p>See also <a href="qlistwidgetitem.html#textColor">textColor</a>() and <a href="qlistwidgetitem.html#setBackgroundColor">setBackgroundColor</a>().</p>
<h3 class="fn"><a name="setToolTip" />QListWidgetItem.setToolTip (<i>self</i>, <a href="qstring.html">QString</a>&#160;<i>atoolTip</i>)</h3><p>Sets the tooltip for the list item to the text specified by <i>toolTip</i>.</p>
<p>See also <a href="qlistwidgetitem.html#toolTip">toolTip</a>(), <a href="qlistwidgetitem.html#setStatusTip">setStatusTip</a>(), and <a href="qlistwidgetitem.html#setWhatsThis">setWhatsThis</a>().</p>
<h3 class="fn"><a name="setWhatsThis" />QListWidgetItem.setWhatsThis (<i>self</i>, <a href="qstring.html">QString</a>&#160;<i>awhatsThis</i>)</h3><p>Sets the "What's This?" help for the list item to the text specified by <i>whatsThis</i>.</p>
<p>See also <a href="qlistwidgetitem.html#whatsThis">whatsThis</a>(), <a href="qlistwidgetitem.html#setStatusTip">setStatusTip</a>(), and <a href="qlistwidgetitem.html#setToolTip">setToolTip</a>().</p>
<h3 class="fn"><a name="sizeHint" /><a href="qsize.html">QSize</a> QListWidgetItem.sizeHint (<i>self</i>)</h3><p>Returns the size hint set for the list item.</p>
<p>This function was introduced in Qt 4.1.</p>
<p>See also <a href="qlistwidgetitem.html#setSizeHint">setSizeHint</a>().</p>
<h3 class="fn"><a name="statusTip" /><a href="qstring.html">QString</a> QListWidgetItem.statusTip (<i>self</i>)</h3><p>Returns the list item's status tip.</p>
<p>See also <a href="qlistwidgetitem.html#setStatusTip">setStatusTip</a>().</p>
<h3 class="fn"><a name="text" /><a href="qstring.html">QString</a> QListWidgetItem.text (<i>self</i>)</h3><p>Returns the list item's text.</p>
<p>See also <a href="qlistwidgetitem.html#setText">setText</a>().</p>
<h3 class="fn"><a name="textAlignment" />int QListWidgetItem.textAlignment (<i>self</i>)</h3><p>Returns the text alignment for the list item (see <a href="qt.html#AlignmentFlag-enum">Qt.AlignmentFlag</a>).</p>
<p>See also <a href="qlistwidgetitem.html#setTextAlignment">setTextAlignment</a>().</p>
<h3 class="fn"><a name="textColor" /><a href="qcolor.html">QColor</a> QListWidgetItem.textColor (<i>self</i>)</h3><p>Returns the used to display the list item's text.</p>
<p>See also <a href="qlistwidgetitem.html#setTextColor">setTextColor</a>() and <a href="qlistwidgetitem.html#backgroundColor">backgroundColor</a>().</p>
<h3 class="fn"><a name="toolTip" /><a href="qstring.html">QString</a> QListWidgetItem.toolTip (<i>self</i>)</h3><p>Returns the list item's tooltip.</p>
<p>See also <a href="qlistwidgetitem.html#setToolTip">setToolTip</a>(), <a href="qlistwidgetitem.html#statusTip">statusTip</a>(), and <a href="qlistwidgetitem.html#whatsThis">whatsThis</a>().</p>
<h3 class="fn"><a name="type" />int QListWidgetItem.type (<i>self</i>)</h3><p>Returns the type passed to the <a href="qlistwidgetitem.html">QListWidgetItem</a> constructor.</p>
<h3 class="fn"><a name="whatsThis" /><a href="qstring.html">QString</a> QListWidgetItem.whatsThis (<i>self</i>)</h3><p>Returns the list item's "What's This?" help text.</p>
<p>See also <a href="qlistwidgetitem.html#setWhatsThis">setWhatsThis</a>(), <a href="qlistwidgetitem.html#statusTip">statusTip</a>(), and <a href="qlistwidgetitem.html#toolTip">toolTip</a>().</p>
<h3 class="fn"><a name="write" />QListWidgetItem.write (<i>self</i>, <a href="qdatastream.html">QDataStream</a>&#160;<i>out</i>)</h3><p>Writes the item to stream <i>out</i>.</p>
<p>See also <a href="qlistwidgetitem.html#read">read</a>().</p>
<h3 class="fn"><a name="__lt__" />bool QListWidgetItem.__lt__ (<i>self</i>, <a href="qlistwidgetitem.html">QListWidgetItem</a>&#160;<i>other</i>)</h3><hr /><h2>Member Documentation</h2><h3 class="fn"><a name="Type-var" />int Type</h3><p>This member should be treated as a constant.</p><p>The default type for list widget items.</p>
<p>See also <a href="qlistwidgetitem.html#UserType-var">UserType</a> and <a href="qlistwidgetitem.html#type">type</a>().</p>
<h3 class="fn"><a name="UserType-var" />int UserType</h3><p>This member should be treated as a constant.</p><p>The minimum value for custom types. Values below UserType are reserved by Qt.</p>
<p>See also <a href="qlistwidgetitem.html#Type-var">Type</a> and <a href="qlistwidgetitem.html#type">type</a>().</p>
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td width="25%">PyQt&#160;4.0.1 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.trolltech.com">Trolltech&#160;AS</a> 2006</td><td align="right" width="25%">Qt&#160;4.1.4</td></tr></table></div></address></body></html>