Sophie

Sophie

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

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>QListView 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">QListView Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QListView class provides a list or icon view onto a model.
<a href="#details">More...</a></p>

<p>Inherits <a href="qabstractitemview.html">QAbstractItemView</a>.</p><p>Inherited by <a href="qhelpindexwidget.html">QHelpIndexWidget</a>, <a href="qlistwidget.html">QListWidget</a> and <a href="qundoview.html">QUndoView</a>.</p><h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qlistview.html#Flow-enum">Flow</a></b> { LeftToRight, TopToBottom }</li><li><div class="fn" />enum <b><a href="qlistview.html#LayoutMode-enum">LayoutMode</a></b> { SinglePass, Batched }</li><li><div class="fn" />enum <b><a href="qlistview.html#Movement-enum">Movement</a></b> { Static, Free, Snap }</li><li><div class="fn" />enum <b><a href="qlistview.html#ResizeMode-enum">ResizeMode</a></b> { Fixed, Adjust }</li><li><div class="fn" />enum <b><a href="qlistview.html#ViewMode-enum">ViewMode</a></b> { ListMode, IconMode }</li></ul><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qlistview.html#QListView">__init__</a></b> (<i>self</i>, QWidget&#160;<i>parent</i>&#160;=&#160;None)</li><li><div class="fn" />int <b><a href="qlistview.html#batchSize">batchSize</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qlistview.html#clearPropertyFlags">clearPropertyFlags</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qlistview.html#currentChanged">currentChanged</a></b> (<i>self</i>, QModelIndex&#160;<i>current</i>, QModelIndex&#160;<i>previous</i>)</li><li><div class="fn" /><b><a href="qlistview.html#dataChanged">dataChanged</a></b> (<i>self</i>, QModelIndex&#160;<i>topLeft</i>, QModelIndex&#160;<i>bottomRight</i>)</li><li><div class="fn" /><b><a href="qlistview.html#dragLeaveEvent">dragLeaveEvent</a></b> (<i>self</i>, QDragLeaveEvent&#160;<i>e</i>)</li><li><div class="fn" /><b><a href="qlistview.html#dragMoveEvent">dragMoveEvent</a></b> (<i>self</i>, QDragMoveEvent&#160;<i>e</i>)</li><li><div class="fn" /><b><a href="qlistview.html#dropEvent">dropEvent</a></b> (<i>self</i>, QDropEvent&#160;<i>e</i>)</li><li><div class="fn" />bool <b><a href="qlistview.html#event">event</a></b> (<i>self</i>, QEvent&#160;<i>e</i>)</li><li><div class="fn" />Flow <b><a href="qlistview.html#flow">flow</a></b> (<i>self</i>)</li><li><div class="fn" />QSize <b><a href="qlistview.html#gridSize">gridSize</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qlistview.html#horizontalOffset">horizontalOffset</a></b> (<i>self</i>)</li><li><div class="fn" />QModelIndex <b><a href="qlistview.html#indexAt">indexAt</a></b> (<i>self</i>, QPoint&#160;<i>p</i>)</li><li><div class="fn" />bool <b><a href="qlistview.html#isIndexHidden">isIndexHidden</a></b> (<i>self</i>, QModelIndex&#160;<i>index</i>)</li><li><div class="fn" />bool <b><a href="qlistview.html#isRowHidden">isRowHidden</a></b> (<i>self</i>, int&#160;<i>row</i>)</li><li><div class="fn" />bool <b><a href="qlistview.html#isSelectionRectVisible">isSelectionRectVisible</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qlistview.html#isWrapping">isWrapping</a></b> (<i>self</i>)</li><li><div class="fn" />LayoutMode <b><a href="qlistview.html#layoutMode">layoutMode</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qlistview.html#modelColumn">modelColumn</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qlistview.html#mouseMoveEvent">mouseMoveEvent</a></b> (<i>self</i>, QMouseEvent&#160;<i>e</i>)</li><li><div class="fn" /><b><a href="qlistview.html#mouseReleaseEvent">mouseReleaseEvent</a></b> (<i>self</i>, QMouseEvent&#160;<i>e</i>)</li><li><div class="fn" />QModelIndex <b><a href="qlistview.html#moveCursor">moveCursor</a></b> (<i>self</i>, QAbstractItemView.CursorAction&#160;<i>cursorAction</i>, Qt.KeyboardModifiers&#160;<i>modifiers</i>)</li><li><div class="fn" />Movement <b><a href="qlistview.html#movement">movement</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qlistview.html#paintEvent">paintEvent</a></b> (<i>self</i>, QPaintEvent&#160;<i>e</i>)</li><li><div class="fn" />QRect <b><a href="qlistview.html#rectForIndex">rectForIndex</a></b> (<i>self</i>, QModelIndex&#160;<i>index</i>)</li><li><div class="fn" /><b><a href="qlistview.html#reset">reset</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qlistview.html#resizeEvent">resizeEvent</a></b> (<i>self</i>, QResizeEvent&#160;<i>e</i>)</li><li><div class="fn" />ResizeMode <b><a href="qlistview.html#resizeMode">resizeMode</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qlistview.html#rowsAboutToBeRemoved">rowsAboutToBeRemoved</a></b> (<i>self</i>, QModelIndex&#160;<i>parent</i>, int&#160;<i>start</i>, int&#160;<i>end</i>)</li><li><div class="fn" /><b><a href="qlistview.html#rowsInserted">rowsInserted</a></b> (<i>self</i>, QModelIndex&#160;<i>parent</i>, int&#160;<i>start</i>, int&#160;<i>end</i>)</li><li><div class="fn" /><b><a href="qlistview.html#scrollContentsBy">scrollContentsBy</a></b> (<i>self</i>, int&#160;<i>dx</i>, int&#160;<i>dy</i>)</li><li><div class="fn" /><b><a href="qlistview.html#scrollTo">scrollTo</a></b> (<i>self</i>, QModelIndex&#160;<i>index</i>, QAbstractItemView.ScrollHint&#160;<i>hint</i>&#160;=&#160;QAbstractItemView.EnsureVisible)</li><li><div class="fn" />list-of-QModelIndex <b><a href="qlistview.html#selectedIndexes">selectedIndexes</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qlistview.html#selectionChanged">selectionChanged</a></b> (<i>self</i>, QItemSelection&#160;<i>selected</i>, QItemSelection&#160;<i>deselected</i>)</li><li><div class="fn" /><b><a href="qlistview.html#setBatchSize">setBatchSize</a></b> (<i>self</i>, int&#160;<i>batchSize</i>)</li><li><div class="fn" /><b><a href="qlistview.html#setFlow">setFlow</a></b> (<i>self</i>, Flow&#160;<i>flow</i>)</li><li><div class="fn" /><b><a href="qlistview.html#setGridSize">setGridSize</a></b> (<i>self</i>, QSize&#160;<i>size</i>)</li><li><div class="fn" /><b><a href="qlistview.html#setLayoutMode">setLayoutMode</a></b> (<i>self</i>, LayoutMode&#160;<i>mode</i>)</li><li><div class="fn" /><b><a href="qlistview.html#setModelColumn">setModelColumn</a></b> (<i>self</i>, int&#160;<i>column</i>)</li><li><div class="fn" /><b><a href="qlistview.html#setMovement">setMovement</a></b> (<i>self</i>, Movement&#160;<i>movement</i>)</li><li><div class="fn" /><b><a href="qlistview.html#setPositionForIndex">setPositionForIndex</a></b> (<i>self</i>, QPoint&#160;<i>position</i>, QModelIndex&#160;<i>index</i>)</li><li><div class="fn" /><b><a href="qlistview.html#setResizeMode">setResizeMode</a></b> (<i>self</i>, ResizeMode&#160;<i>mode</i>)</li><li><div class="fn" /><b><a href="qlistview.html#setRootIndex">setRootIndex</a></b> (<i>self</i>, QModelIndex&#160;<i>index</i>)</li><li><div class="fn" /><b><a href="qlistview.html#setRowHidden">setRowHidden</a></b> (<i>self</i>, int&#160;<i>row</i>, bool&#160;<i>hide</i>)</li><li><div class="fn" /><b><a href="qlistview.html#setSelection">setSelection</a></b> (<i>self</i>, QRect&#160;<i>rect</i>, QItemSelectionModel.SelectionFlags&#160;<i>command</i>)</li><li><div class="fn" /><b><a href="qlistview.html#setSelectionRectVisible">setSelectionRectVisible</a></b> (<i>self</i>, bool&#160;<i>show</i>)</li><li><div class="fn" /><b><a href="qlistview.html#setSpacing">setSpacing</a></b> (<i>self</i>, int&#160;<i>space</i>)</li><li><div class="fn" /><b><a href="qlistview.html#setUniformItemSizes">setUniformItemSizes</a></b> (<i>self</i>, bool&#160;<i>enable</i>)</li><li><div class="fn" /><b><a href="qlistview.html#setViewMode">setViewMode</a></b> (<i>self</i>, ViewMode&#160;<i>mode</i>)</li><li><div class="fn" /><b><a href="qlistview.html#setWordWrap">setWordWrap</a></b> (<i>self</i>, bool&#160;<i>on</i>)</li><li><div class="fn" /><b><a href="qlistview.html#setWrapping">setWrapping</a></b> (<i>self</i>, bool&#160;<i>enable</i>)</li><li><div class="fn" />int <b><a href="qlistview.html#spacing">spacing</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qlistview.html#startDrag">startDrag</a></b> (<i>self</i>, Qt.DropActions&#160;<i>supportedActions</i>)</li><li><div class="fn" /><b><a href="qlistview.html#timerEvent">timerEvent</a></b> (<i>self</i>, QTimerEvent&#160;<i>e</i>)</li><li><div class="fn" />bool <b><a href="qlistview.html#uniformItemSizes">uniformItemSizes</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qlistview.html#updateGeometries">updateGeometries</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qlistview.html#verticalOffset">verticalOffset</a></b> (<i>self</i>)</li><li><div class="fn" />ViewMode <b><a href="qlistview.html#viewMode">viewMode</a></b> (<i>self</i>)</li><li><div class="fn" />QStyleOptionViewItem <b><a href="qlistview.html#viewOptions">viewOptions</a></b> (<i>self</i>)</li><li><div class="fn" />QRect <b><a href="qlistview.html#visualRect">visualRect</a></b> (<i>self</i>, QModelIndex&#160;<i>index</i>)</li><li><div class="fn" />QRegion <b><a href="qlistview.html#visualRegionForSelection">visualRegionForSelection</a></b> (<i>self</i>, QItemSelection&#160;<i>selection</i>)</li><li><div class="fn" />bool <b><a href="qlistview.html#wordWrap">wordWrap</a></b> (<i>self</i>)</li></ul><h3>Qt Signals</h3><ul><li><div class="fn" />void <b><a href="qlistview.html#indexesMoved">indexesMoved</a></b> (const QModelIndexList&amp;)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QListView class provides a list or icon view onto a
model.</p>
<p>A QListView presents items stored in a model, either as a simple
non-hierarchical list, or as a collection of icons. This class is
used to provide lists and icon views that were previously provided
by the <tt>QListBox</tt> and <tt>QIconView</tt> classes, but using
the more flexible approach provided by Qt's model/view
architecture.</p>
<p>The QListView class is one of the <a href="model-view.html">Model/View Classes</a> and is part of Qt's
<a href="model-view-programming.html">model/view framework</a>.</p>
<p>This view does not display horizontal or vertical headers; to
display a list of items with a horizontal header, use <a href="qtreeview.html">QTreeView</a> instead.</p>
<p>QListView implements the interfaces defined by the <a href="qabstractitemview.html">QAbstractItemView</a> class to allow it to
display data provided by models derived from the <a href="qabstractitemmodel.html">QAbstractItemModel</a> class.</p>
<p>Items in a list view can be displayed using one of two view
modes: In <a href="qlistview.html#ViewMode-enum">ListMode</a>, the
items are displayed in the form of a simple list; in <a href="qlistview.html#ViewMode-enum">IconMode</a>, the list view takes
the form of an <i>icon view</i> in which the items are displayed
with icons like files in a file manager. By default, the list view
is in <a href="qlistview.html#ViewMode-enum">ListMode</a>. To
change the view mode, use the <a href="qlistview.html#viewMode-prop">setViewMode</a>() function, and to
determine the current view mode, use <a href="qlistview.html#viewMode-prop">viewMode</a>().</p>
<p>Items in these views are laid out in the direction specified by
the <a href="qlistview.html#flow-prop">flow</a>() of the list view.
The items may be fixed in place, or allowed to move, depending on
the view's <a href="qlistview.html#movement-prop">movement</a>()
state.</p>
<p>If the items in the model cannot be completely laid out in the
direction of flow, they can be wrapped at the boundary of the view
widget; this depends on <a href="qlistview.html#isWrapping-prop">isWrapping</a>(). This property is
useful when the items are being represented by an icon view.</p>
<p>The <a href="qlistview.html#resizeMode-prop">resizeMode</a>()
and <a href="qlistview.html#layoutMode-prop">layoutMode</a>()
govern how and when the items are laid out. Items are spaced
according to their <a href="qlistview.html#spacing-prop">spacing</a>(), and can exist within a
notional grid of size specified by <a href="qlistview.html#gridSize-prop">gridSize</a>(). The items can be
rendered as large or small icons depending on their <a href="qabstractitemview.html#iconSize-prop">iconSize</a>().</p>
<table class="generic" width="100%">
<tr class="odd" valign="top">
<td><img alt="Screenshot of a Windows XP style list view" src="images/windowsxp-listview.png" /></td>
<td><img alt="Screenshot of a Macintosh style table view" src="images/macintosh-listview.png" /></td>
<td><img alt="Screenshot of a Plastique style table view" src="images/plastique-listview.png" /></td>
</tr>
<tr class="even" valign="top">
<td>A <a href="gallery-windowsxp.html">Windows XP style</a> list
view.</td>
<td>A <a href="gallery-macintosh.html">Macintosh style</a> list
view.</td>
<td>A <a href="gallery-plastique.html">Plastique style</a> list
view.</td>
</tr>
</table>
<a id="improving-performance" name="improving-performance" />
<h3>Improving Performance</h3>
<p>It is possible to give the view hints about the data it is
handling in order to improve its performance when displaying large
numbers of items. One approach that can be taken for views that are
intended to display items with equal sizes is to set the <a href="qlistview.html#uniformItemSizes-prop">uniformItemSizes</a>
property to true.</p>
<hr /><h2>Type Documentation</h2><h3 class="fn"><a name="Flow-enum" />QListView.Flow</h3><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>QListView.LeftToRight</tt></td>
<td class="topAlign"><tt>0</tt></td>
<td class="topAlign">The items are laid out in the view from the
left to the right.</td>
</tr>
<tr>
<td class="topAlign"><tt>QListView.TopToBottom</tt></td>
<td class="topAlign"><tt>1</tt></td>
<td class="topAlign">The items are laid out in the view from the
top to the bottom.</td>
</tr>
</table>


<h3 class="fn"><a name="LayoutMode-enum" />QListView.LayoutMode</h3><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>QListView.SinglePass</tt></td>
<td class="topAlign"><tt>0</tt></td>
<td class="topAlign">The items are laid out all at once.</td>
</tr>
<tr>
<td class="topAlign"><tt>QListView.Batched</tt></td>
<td class="topAlign"><tt>1</tt></td>
<td class="topAlign">The items are laid out in batches of <a href="qlistview.html#batchSize-prop">batchSize</a> items.</td>
</tr>
</table>
<p><b>See also</b> <a href="qlistview.html#batchSize-prop">batchSize</a>.</p>


<h3 class="fn"><a name="Movement-enum" />QListView.Movement</h3><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>QListView.Static</tt></td>
<td class="topAlign"><tt>0</tt></td>
<td class="topAlign">The items cannot be moved by the user.</td>
</tr>
<tr>
<td class="topAlign"><tt>QListView.Free</tt></td>
<td class="topAlign"><tt>1</tt></td>
<td class="topAlign">The items can be moved freely by the
user.</td>
</tr>
<tr>
<td class="topAlign"><tt>QListView.Snap</tt></td>
<td class="topAlign"><tt>2</tt></td>
<td class="topAlign">The items snap to the specified grid when
moved; see <a href="qlistview.html#gridSize-prop">setGridSize</a>().</td>
</tr>
</table>


<h3 class="fn"><a name="ResizeMode-enum" />QListView.ResizeMode</h3><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>QListView.Fixed</tt></td>
<td class="topAlign"><tt>0</tt></td>
<td class="topAlign">The items will only be laid out the first time
the view is shown.</td>
</tr>
<tr>
<td class="topAlign"><tt>QListView.Adjust</tt></td>
<td class="topAlign"><tt>1</tt></td>
<td class="topAlign">The items will be laid out every time the view
is resized.</td>
</tr>
</table>


<h3 class="fn"><a name="ViewMode-enum" />QListView.ViewMode</h3><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>QListView.ListMode</tt></td>
<td class="topAlign"><tt>0</tt></td>
<td class="topAlign">The items are laid out using <a href="qlistview.html#Flow-enum">TopToBottom</a> flow, with Small size
and Static movement</td>
</tr>
<tr>
<td class="topAlign"><tt>QListView.IconMode</tt></td>
<td class="topAlign"><tt>1</tt></td>
<td class="topAlign">The items are laid out using <a href="qlistview.html#Flow-enum">LeftToRight</a> flow, with Large size
and Free movement</td>
</tr>
</table>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QListView" />QListView.__init__ (<i>self</i>, <a href="qwidget.html">QWidget</a>&#160;<i>parent</i>&#160;=&#160;None)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Creates a new <a href="qlistview.html">QListView</a> with the
given <i>parent</i> to view a model. Use <a href="qabstractitemview.html#setModel">setModel</a>() to set the
model.</p>


<h3 class="fn"><a name="batchSize" />int QListView.batchSize (<i>self</i>)</h3><h3 class="fn"><a name="clearPropertyFlags" />QListView.clearPropertyFlags (<i>self</i>)</h3><p>Clears the <a href="qlistview.html">QListView</a>-specific
property flags. See <a href="qlistview.html#viewMode-prop">viewMode</a>.</p>
<p>Properties inherited from <a href="qabstractitemview.html">QAbstractItemView</a> are not covered by
the property flags. Specifically, <a href="qabstractitemview.html#dragEnabled-prop">dragEnabled</a> and
<a href="qwidget.html#acceptDrops-prop">acceptsDrops</a> are
computed by <a href="qlistview.html">QListView</a> when calling
<a href="qlistview.html#movement-prop">setMovement</a>() or
<a href="qlistview.html#viewMode-prop">setViewMode</a>().</p>


<h3 class="fn"><a name="currentChanged" />QListView.currentChanged (<i>self</i>, <a href="qmodelindex.html">QModelIndex</a>&#160;<i>current</i>, <a href="qmodelindex.html">QModelIndex</a>&#160;<i>previous</i>)</h3><p>Reimplemented from <a href="qabstractitemview.html#currentChanged">QAbstractItemView.currentChanged</a>().</p>


<h3 class="fn"><a name="dataChanged" />QListView.dataChanged (<i>self</i>, <a href="qmodelindex.html">QModelIndex</a>&#160;<i>topLeft</i>, <a href="qmodelindex.html">QModelIndex</a>&#160;<i>bottomRight</i>)</h3><p>Reimplemented from <a href="qabstractitemview.html#dataChanged">QAbstractItemView.dataChanged</a>().</p>


<h3 class="fn"><a name="dragLeaveEvent" />QListView.dragLeaveEvent (<i>self</i>, <a href="qdragleaveevent.html">QDragLeaveEvent</a>&#160;<i>e</i>)</h3><p>Reimplemented from <a href="qwidget.html#dragLeaveEvent">QWidget.dragLeaveEvent</a>().</p>


<h3 class="fn"><a name="dragMoveEvent" />QListView.dragMoveEvent (<i>self</i>, <a href="qdragmoveevent.html">QDragMoveEvent</a>&#160;<i>e</i>)</h3><p>Reimplemented from <a href="qwidget.html#dragMoveEvent">QWidget.dragMoveEvent</a>().</p>


<h3 class="fn"><a name="dropEvent" />QListView.dropEvent (<i>self</i>, <a href="qdropevent.html">QDropEvent</a>&#160;<i>e</i>)</h3><p>Reimplemented from <a href="qwidget.html#dropEvent">QWidget.dropEvent</a>().</p>


<h3 class="fn"><a name="event" />bool QListView.event (<i>self</i>, <a href="qevent.html">QEvent</a>&#160;<i>e</i>)</h3><p>Reimplemented from <a href="qobject.html#event">QObject.event</a>().</p>


<h3 class="fn"><a name="flow" /><a href="qlistview.html#Flow-enum">Flow</a> QListView.flow (<i>self</i>)</h3><h3 class="fn"><a name="gridSize" /><a href="qsize.html">QSize</a> QListView.gridSize (<i>self</i>)</h3><h3 class="fn"><a name="horizontalOffset" />int QListView.horizontalOffset (<i>self</i>)</h3><p>Reimplemented from <a href="qabstractitemview.html#horizontalOffset">QAbstractItemView.horizontalOffset</a>().</p>


<h3 class="fn"><a name="indexAt" /><a href="qmodelindex.html">QModelIndex</a> QListView.indexAt (<i>self</i>, <a href="qpoint.html">QPoint</a>&#160;<i>p</i>)</h3><p>Reimplemented from <a href="qabstractitemview.html#indexAt">QAbstractItemView.indexAt</a>().</p>


<h3 class="fn"><a name="isIndexHidden" />bool QListView.isIndexHidden (<i>self</i>, <a href="qmodelindex.html">QModelIndex</a>&#160;<i>index</i>)</h3><p>Reimplemented from <a href="qabstractitemview.html#isIndexHidden">QAbstractItemView.isIndexHidden</a>().</p>


<h3 class="fn"><a name="isRowHidden" />bool QListView.isRowHidden (<i>self</i>, int&#160;<i>row</i>)</h3><p>Returns true if the <i>row</i> is hidden; otherwise returns
false.</p>


<h3 class="fn"><a name="isSelectionRectVisible" />bool QListView.isSelectionRectVisible (<i>self</i>)</h3><h3 class="fn"><a name="isWrapping" />bool QListView.isWrapping (<i>self</i>)</h3><h3 class="fn"><a name="layoutMode" /><a href="qlistview.html#LayoutMode-enum">LayoutMode</a> QListView.layoutMode (<i>self</i>)</h3><h3 class="fn"><a name="modelColumn" />int QListView.modelColumn (<i>self</i>)</h3><h3 class="fn"><a name="mouseMoveEvent" />QListView.mouseMoveEvent (<i>self</i>, <a href="qmouseevent.html">QMouseEvent</a>&#160;<i>e</i>)</h3><p>Reimplemented from <a href="qwidget.html#mouseMoveEvent">QWidget.mouseMoveEvent</a>().</p>


<h3 class="fn"><a name="mouseReleaseEvent" />QListView.mouseReleaseEvent (<i>self</i>, <a href="qmouseevent.html">QMouseEvent</a>&#160;<i>e</i>)</h3><p>Reimplemented from <a href="qwidget.html#mouseReleaseEvent">QWidget.mouseReleaseEvent</a>().</p>


<h3 class="fn"><a name="moveCursor" /><a href="qmodelindex.html">QModelIndex</a> QListView.moveCursor (<i>self</i>, <a href="qabstractitemview.html#CursorAction-enum">QAbstractItemView.CursorAction</a>&#160;<i>cursorAction</i>, <a href="qt-keyboardmodifiers.html">Qt.KeyboardModifiers</a>&#160;<i>modifiers</i>)</h3><p>Reimplemented from <a href="qabstractitemview.html#moveCursor">QAbstractItemView.moveCursor</a>().</p>


<h3 class="fn"><a name="movement" /><a href="qlistview.html#Movement-enum">Movement</a> QListView.movement (<i>self</i>)</h3><h3 class="fn"><a name="paintEvent" />QListView.paintEvent (<i>self</i>, <a href="qpaintevent.html">QPaintEvent</a>&#160;<i>e</i>)</h3><p>Reimplemented from <a href="qwidget.html#paintEvent">QWidget.paintEvent</a>().</p>


<h3 class="fn"><a name="rectForIndex" /><a href="qrect.html">QRect</a> QListView.rectForIndex (<i>self</i>, <a href="qmodelindex.html">QModelIndex</a>&#160;<i>index</i>)</h3><p>Returns the rectangle of the item at position <i>index</i> in
the model. The rectangle is in contents coordinates.</p>
<p><b>See also</b> <a href="qlistview.html#visualRect">visualRect</a>().</p>


<h3 class="fn"><a name="reset" />QListView.reset (<i>self</i>)</h3><h3 class="fn"><a name="resizeEvent" />QListView.resizeEvent (<i>self</i>, <a href="qresizeevent.html">QResizeEvent</a>&#160;<i>e</i>)</h3><p>Reimplemented from <a href="qwidget.html#resizeEvent">QWidget.resizeEvent</a>().</p>


<h3 class="fn"><a name="resizeMode" /><a href="qlistview.html#ResizeMode-enum">ResizeMode</a> QListView.resizeMode (<i>self</i>)</h3><h3 class="fn"><a name="rowsAboutToBeRemoved" />QListView.rowsAboutToBeRemoved (<i>self</i>, <a href="qmodelindex.html">QModelIndex</a>&#160;<i>parent</i>, int&#160;<i>start</i>, int&#160;<i>end</i>)</h3><p>Reimplemented from <a href="qabstractitemview.html#rowsAboutToBeRemoved">QAbstractItemView.rowsAboutToBeRemoved</a>().</p>


<h3 class="fn"><a name="rowsInserted" />QListView.rowsInserted (<i>self</i>, <a href="qmodelindex.html">QModelIndex</a>&#160;<i>parent</i>, int&#160;<i>start</i>, int&#160;<i>end</i>)</h3><p>Reimplemented from <a href="qabstractitemview.html#rowsInserted">QAbstractItemView.rowsInserted</a>().</p>


<h3 class="fn"><a name="scrollContentsBy" />QListView.scrollContentsBy (<i>self</i>, int&#160;<i>dx</i>, int&#160;<i>dy</i>)</h3><h3 class="fn"><a name="scrollTo" />QListView.scrollTo (<i>self</i>, <a href="qmodelindex.html">QModelIndex</a>&#160;<i>index</i>, <a href="qabstractitemview.html#ScrollHint-enum">QAbstractItemView.ScrollHint</a>&#160;<i>hint</i>&#160;=&#160;QAbstractItemView.EnsureVisible)</h3><p>Reimplemented from <a href="qabstractitemview.html#scrollTo">QAbstractItemView.scrollTo</a>().</p>


<h3 class="fn"><a name="selectedIndexes" />list-of-QModelIndex QListView.selectedIndexes (<i>self</i>)</h3><p>Reimplemented from <a href="qabstractitemview.html#selectedIndexes">QAbstractItemView.selectedIndexes</a>().</p>


<h3 class="fn"><a name="selectionChanged" />QListView.selectionChanged (<i>self</i>, <a href="qitemselection.html">QItemSelection</a>&#160;<i>selected</i>, <a href="qitemselection.html">QItemSelection</a>&#160;<i>deselected</i>)</h3><p>Reimplemented from <a href="qabstractitemview.html#selectionChanged">QAbstractItemView.selectionChanged</a>().</p>


<h3 class="fn"><a name="setBatchSize" />QListView.setBatchSize (<i>self</i>, int&#160;<i>batchSize</i>)</h3><h3 class="fn"><a name="setFlow" />QListView.setFlow (<i>self</i>, <a href="qlistview.html#Flow-enum">Flow</a>&#160;<i>flow</i>)</h3><h3 class="fn"><a name="setGridSize" />QListView.setGridSize (<i>self</i>, <a href="qsize.html">QSize</a>&#160;<i>size</i>)</h3><h3 class="fn"><a name="setLayoutMode" />QListView.setLayoutMode (<i>self</i>, <a href="qlistview.html#LayoutMode-enum">LayoutMode</a>&#160;<i>mode</i>)</h3><h3 class="fn"><a name="setModelColumn" />QListView.setModelColumn (<i>self</i>, int&#160;<i>column</i>)</h3><h3 class="fn"><a name="setMovement" />QListView.setMovement (<i>self</i>, <a href="qlistview.html#Movement-enum">Movement</a>&#160;<i>movement</i>)</h3><h3 class="fn"><a name="setPositionForIndex" />QListView.setPositionForIndex (<i>self</i>, <a href="qpoint.html">QPoint</a>&#160;<i>position</i>, <a href="qmodelindex.html">QModelIndex</a>&#160;<i>index</i>)</h3><p>Sets the contents position of the item at <i>index</i> in the
model to the given <i>position</i>. If the list view's movement
mode is Static or its view mode is <a href="qml-listview.html">ListView</a>, this function will have no
effect.</p>
<p>This function was introduced in Qt 4.1.</p>


<h3 class="fn"><a name="setResizeMode" />QListView.setResizeMode (<i>self</i>, <a href="qlistview.html#ResizeMode-enum">ResizeMode</a>&#160;<i>mode</i>)</h3><h3 class="fn"><a name="setRootIndex" />QListView.setRootIndex (<i>self</i>, <a href="qmodelindex.html">QModelIndex</a>&#160;<i>index</i>)</h3><h3 class="fn"><a name="setRowHidden" />QListView.setRowHidden (<i>self</i>, int&#160;<i>row</i>, bool&#160;<i>hide</i>)</h3><p>If <i>hide</i> is true, the given <i>row</i> will be hidden;
otherwise the <i>row</i> will be shown.</p>
<p><b>See also</b> <a href="qlistview.html#isRowHidden">isRowHidden</a>().</p>


<h3 class="fn"><a name="setSelection" />QListView.setSelection (<i>self</i>, <a href="qrect.html">QRect</a>&#160;<i>rect</i>, <a href="qitemselectionmodel-selectionflags.html">QItemSelectionModel.SelectionFlags</a>&#160;<i>command</i>)</h3><p>Reimplemented from <a href="qabstractitemview.html#setSelection">QAbstractItemView.setSelection</a>().</p>


<h3 class="fn"><a name="setSelectionRectVisible" />QListView.setSelectionRectVisible (<i>self</i>, bool&#160;<i>show</i>)</h3><h3 class="fn"><a name="setSpacing" />QListView.setSpacing (<i>self</i>, int&#160;<i>space</i>)</h3><h3 class="fn"><a name="setUniformItemSizes" />QListView.setUniformItemSizes (<i>self</i>, bool&#160;<i>enable</i>)</h3><h3 class="fn"><a name="setViewMode" />QListView.setViewMode (<i>self</i>, <a href="qlistview.html#ViewMode-enum">ViewMode</a>&#160;<i>mode</i>)</h3><h3 class="fn"><a name="setWordWrap" />QListView.setWordWrap (<i>self</i>, bool&#160;<i>on</i>)</h3><h3 class="fn"><a name="setWrapping" />QListView.setWrapping (<i>self</i>, bool&#160;<i>enable</i>)</h3><h3 class="fn"><a name="spacing" />int QListView.spacing (<i>self</i>)</h3><h3 class="fn"><a name="startDrag" />QListView.startDrag (<i>self</i>, <a href="qt-dropactions.html">Qt.DropActions</a>&#160;<i>supportedActions</i>)</h3><p>Reimplemented from <a href="qabstractitemview.html#startDrag">QAbstractItemView.startDrag</a>().</p>


<h3 class="fn"><a name="timerEvent" />QListView.timerEvent (<i>self</i>, <a href="qtimerevent.html">QTimerEvent</a>&#160;<i>e</i>)</h3><p>Reimplemented from <a href="qobject.html#timerEvent">QObject.timerEvent</a>().</p>


<h3 class="fn"><a name="uniformItemSizes" />bool QListView.uniformItemSizes (<i>self</i>)</h3><h3 class="fn"><a name="updateGeometries" />QListView.updateGeometries (<i>self</i>)</h3><p>Reimplemented from <a href="qabstractitemview.html#updateGeometries">QAbstractItemView.updateGeometries</a>().</p>


<h3 class="fn"><a name="verticalOffset" />int QListView.verticalOffset (<i>self</i>)</h3><p>Reimplemented from <a href="qabstractitemview.html#verticalOffset">QAbstractItemView.verticalOffset</a>().</p>


<h3 class="fn"><a name="viewMode" /><a href="qlistview.html#ViewMode-enum">ViewMode</a> QListView.viewMode (<i>self</i>)</h3><h3 class="fn"><a name="viewOptions" /><a href="qstyleoptionviewitem.html">QStyleOptionViewItem</a> QListView.viewOptions (<i>self</i>)</h3><p>Reimplemented from <a href="qabstractitemview.html#viewOptions">QAbstractItemView.viewOptions</a>().</p>


<h3 class="fn"><a name="visualRect" /><a href="qrect.html">QRect</a> QListView.visualRect (<i>self</i>, <a href="qmodelindex.html">QModelIndex</a>&#160;<i>index</i>)</h3><p>Reimplemented from <a href="qabstractitemview.html#visualRect">QAbstractItemView.visualRect</a>().</p>


<h3 class="fn"><a name="visualRegionForSelection" /><a href="qregion.html">QRegion</a> QListView.visualRegionForSelection (<i>self</i>, <a href="qitemselection.html">QItemSelection</a>&#160;<i>selection</i>)</h3><p>Reimplemented from <a href="qabstractitemview.html#visualRegionForSelection">QAbstractItemView.visualRegionForSelection</a>().</p>
<p>Since 4.7, the returned region only contains rectangles
intersecting (or included in) the viewport.</p>
<h3 class="fn"><a name="wordWrap" />bool QListView.wordWrap (<i>self</i>)</h3><hr /><h2>Qt Signal Documentation</h2><h3 class="fn"><a name="indexesMoved" />void indexesMoved (const QModelIndexList&amp;)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when the specified <i>indexes</i> are
moved in the view.</p>
<p>This function was introduced in Qt 4.2.</p>


<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>