Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 1dd17e0d683ef79b4bb6872bbf359d7f > files > 5671

qt4-doc-4.8.7-26.2.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qlistview.cpp -->
  <title>Qt 4.8: QListView Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/style.css" />
  <script src="scripts/jquery.js" type="text/javascript"></script>
  <script src="scripts/functions.js" type="text/javascript"></script>
  <link rel="stylesheet" type="text/css" href="style/superfish.css" />
  <link rel="stylesheet" type="text/css" href="style/narrow.css" />
  <!--[if IE]>
<meta name="MSSmartTagsPreventParsing" content="true">
<meta http-equiv="imagetoolbar" content="no">
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie6.css">
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie7.css">
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/style_ie8.css">
<![endif]-->

<script src="scripts/superfish.js" type="text/javascript"></script>
<script src="scripts/narrow.js" type="text/javascript"></script>

</head>
<body class="" onload="CheckEmptyAndLoadList();">
 <div class="header" id="qtdocheader">
    <div class="content"> 
    <div id="nav-logo">
      <a href="index.html">Home</a></div>
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
    <div id="narrowsearch"></div>
    <div id="nav-topright">
      <ul>
        <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li>
        <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li>
        <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/">
          DOC</a></li>
        <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li>
      </ul>
    </div>
    <div id="shortCut">
      <ul>
        <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li>
        <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS        </a></li>
      </ul>
     </div>
 <ul class="sf-menu" id="narrowmenu"> 
             <li><a href="#">API Lookup</a> 
                 <ul> 
                     <li><a href="classes.html">Class index</a></li> 
           <li><a href="functions.html">Function index</a></li> 
           <li><a href="modules.html">Modules</a></li> 
           <li><a href="namespaces.html">Namespaces</a></li> 
           <li><a href="qtglobal.html">Global Declarations</a></li> 
           <li><a href="qdeclarativeelements.html">QML elements</a></li> 
             </ul> 
             </li> 
             <li><a href="#">Qt Topics</a> 
                 <ul> 
                        <li><a href="qt-basic-concepts.html">Programming with Qt</a></li>  
                        <li><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li>  
                        <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li>  
                        <li><a href="supported-platforms.html">Supported Platforms</a></li>  
                        <li><a href="technology-apis.html">Qt and Key Technologies</a></li>  
                        <li><a href="best-practices.html">How-To's and Best Practices</a></li>  
              </ul> 
                 </li> 
                 <li><a href="#">Examples</a> 
                     <ul> 
                       <li><a href="all-examples.html">Examples</a></li> 
                       <li><a href="tutorials.html">Tutorials</a></li> 
                       <li><a href="demos.html">Demos</a></li> 
                       <li><a href="qdeclarativeexamples.html">QML Examples</a></li> 
                </ul> 
                     </li> 
                 </ul> 
    </div>
  </div>
  <div class="wrapper">
    <div class="hd">
      <span></span>
    </div>
    <div class="bd group">
      <div class="sidebar">
        <div class="searchlabel">
          Search index:</div>
        <div class="search" id="sidebarsearch">
          <form id="qtdocsearch" action="" onsubmit="return false;">
            <fieldset>
              <input type="text" name="searchstring" id="pageType" value="" />
 <div id="resultdialog"> 
 <a href="#" id="resultclose">Close</a> 
 <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> 
 <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span>&nbsp;results:</p> 
 <ul id="resultlist" class="all"> 
 </ul> 
 </div> 
            </fieldset>
          </form>
        </div>
        <div class="box first bottombar" id="lookup">
          <h2 title="API Lookup"><span></span>
            API Lookup</h2>
          <div  id="list001" class="list">
          <ul id="ul001" >
              <li class="defaultLink"><a href="classes.html">Class index</a></li>
              <li class="defaultLink"><a href="functions.html">Function index</a></li>
              <li class="defaultLink"><a href="modules.html">Modules</a></li>
              <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
              <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
              <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
            </ul> 
          </div>
        </div>
        <div class="box bottombar" id="topics">
          <h2 title="Qt Topics"><span></span>
            Qt Topics</h2>
          <div id="list002" class="list">
            <ul id="ul002" >
               <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> 
               <li class="defaultLink"><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li> 
               <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> 
               <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li>  
               <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> 
               <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> 
            </ul>  
          </div>
        </div>
        <div class="box" id="examples">
          <h2 title="Examples"><span></span>
            Examples</h2>
          <div id="list003" class="list">
        <ul id="ul003">
              <li class="defaultLink"><a href="all-examples.html">Examples</a></li>
              <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
              <li class="defaultLink"><a href="demos.html">Demos</a></li>
              <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
            </ul> 
          </div>
        </div>
      </div>
      <div class="wrap">
        <div class="toolbar">
          <div class="breadcrumb toolblock">
            <ul>
              <li class="first"><a href="index.html">Home</a></li>
              <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtgui.html">QtGui</a></li>
<li>QListView</li>
            </ul>
          </div>
          <div class="toolbuttons toolblock">
            <ul>
              <li id="smallA" class="t_button">A</li>
              <li id="medA" class="t_button active">A</li>
              <li id="bigA" class="t_button">A</li>
              <li id="print" class="t_button"><a href="javascript:this.print();">
                <span>Print</span></a></li>
            </ul>
        </div>
        </div>
        <div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
<li class="level2"><a href="#improving-performance">Improving Performance</a></li>
</ul>
</div>
<h1 class="title">QListView Class Reference</h1>
<!-- $$$QListView-brief -->
<p>The QListView class provides a list or icon view onto a model. <a href="#details">More...</a></p>
<!-- @@@QListView -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QListView&gt;</span></pre><p><b>Inherits: </b><a href="qabstractitemview.html">QAbstractItemView</a>.</p>
<p><b>Inherited by: </b><a href="qhelpindexwidget.html">QHelpIndexWidget</a>, <a href="qlistwidget.html">QListWidget</a>, and <a href="qundoview.html">QUndoView</a>.</p>
<ul>
<li><a href="qlistview-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#Flow-enum">Flow</a></b> { LeftToRight, TopToBottom }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#LayoutMode-enum">LayoutMode</a></b> { SinglePass, Batched }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#Movement-enum">Movement</a></b> { Static, Free, Snap }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#ResizeMode-enum">ResizeMode</a></b> { Fixed, Adjust }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#ViewMode-enum">ViewMode</a></b> { ListMode, IconMode }</td></tr>
</table>
<a name="properties"></a>
<h2>Properties</h2>
<table class="propsummary">
<tr><td class="topAlign"><ul>
<li class="fn"><b><a href="qlistview.html#batchSize-prop">batchSize</a></b> : int</li>
<li class="fn"><b><a href="qlistview.html#flow-prop">flow</a></b> : Flow</li>
<li class="fn"><b><a href="qlistview.html#gridSize-prop">gridSize</a></b> : QSize</li>
<li class="fn"><b><a href="qlistview.html#isWrapping-prop">isWrapping</a></b> : bool</li>
<li class="fn"><b><a href="qlistview.html#layoutMode-prop">layoutMode</a></b> : LayoutMode</li>
<li class="fn"><b><a href="qlistview.html#modelColumn-prop">modelColumn</a></b> : int</li>
<li class="fn"><b><a href="qlistview.html#movement-prop">movement</a></b> : Movement</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="qlistview.html#resizeMode-prop">resizeMode</a></b> : ResizeMode</li>
<li class="fn"><b><a href="qlistview.html#selectionRectVisible-prop">selectionRectVisible</a></b> : bool</li>
<li class="fn"><b><a href="qlistview.html#spacing-prop">spacing</a></b> : int</li>
<li class="fn"><b><a href="qlistview.html#uniformItemSizes-prop">uniformItemSizes</a></b> : bool</li>
<li class="fn"><b><a href="qlistview.html#viewMode-prop">viewMode</a></b> : ViewMode</li>
<li class="fn"><b><a href="qlistview.html#wordWrap-prop">wordWrap</a></b> : bool</li>
</ul>
</td></tr>
</table>
<ul>
<li class="fn">16 properties inherited from <a href="qabstractitemview.html#properties">QAbstractItemView</a></li>
<li class="fn">2 properties inherited from <a href="qabstractscrollarea.html#properties">QAbstractScrollArea</a></li>
<li class="fn">6 properties inherited from <a href="qframe.html#properties">QFrame</a></li>
<li class="fn">58 properties inherited from <a href="qwidget.html#properties">QWidget</a></li>
<li class="fn">1 property inherited from <a href="qobject.html#properties">QObject</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#QListView">QListView</a></b> ( QWidget * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#dtor.QListView">~QListView</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#batchSize-prop">batchSize</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#clearPropertyFlags">clearPropertyFlags</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Flow </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#flow-prop">flow</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QSize </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#gridSize-prop">gridSize</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#isRowHidden">isRowHidden</a></b> ( int <i>row</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#selectionRectVisible-prop">isSelectionRectVisible</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#isWrapping-prop">isWrapping</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> LayoutMode </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#layoutMode-prop">layoutMode</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#modelColumn-prop">modelColumn</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Movement </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#movement-prop">movement</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> ResizeMode </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#resizeMode-prop">resizeMode</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#batchSize-prop">setBatchSize</a></b> ( int <i>batchSize</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#flow-prop">setFlow</a></b> ( Flow <i>flow</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#gridSize-prop">setGridSize</a></b> ( const QSize &amp; <i>size</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#layoutMode-prop">setLayoutMode</a></b> ( LayoutMode <i>mode</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#modelColumn-prop">setModelColumn</a></b> ( int <i>column</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#movement-prop">setMovement</a></b> ( Movement <i>movement</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#resizeMode-prop">setResizeMode</a></b> ( ResizeMode <i>mode</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#setRowHidden">setRowHidden</a></b> ( int <i>row</i>, bool <i>hide</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#selectionRectVisible-prop">setSelectionRectVisible</a></b> ( bool <i>show</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#spacing-prop">setSpacing</a></b> ( int <i>space</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#uniformItemSizes-prop">setUniformItemSizes</a></b> ( bool <i>enable</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#viewMode-prop">setViewMode</a></b> ( ViewMode <i>mode</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#wordWrap-prop">setWordWrap</a></b> ( bool <i>on</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#isWrapping-prop">setWrapping</a></b> ( bool <i>enable</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#spacing-prop">spacing</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#uniformItemSizes-prop">uniformItemSizes</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> ViewMode </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#viewMode-prop">viewMode</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#wordWrap-prop">wordWrap</a></b> () const</td></tr>
</table>
<a name="reimplemented-public-functions"></a>
<h2>Reimplemented Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual QModelIndex </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#indexAt">indexAt</a></b> ( const QPoint &amp; <i>p</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#scrollTo">scrollTo</a></b> ( const QModelIndex &amp; <i>index</i>, ScrollHint <i>hint</i> = EnsureVisible )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QRect </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#visualRect">visualRect</a></b> ( const QModelIndex &amp; <i>index</i> ) const</td></tr>
</table>
<ul>
<li class="fn">57 public functions inherited from <a href="qabstractitemview.html#public-functions">QAbstractItemView</a></li>
<li class="fn">17 public functions inherited from <a href="qabstractscrollarea.html#public-functions">QAbstractScrollArea</a></li>
<li class="fn">14 public functions inherited from <a href="qframe.html#public-functions">QFrame</a></li>
<li class="fn">221 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
<li class="fn">29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
<li class="fn">13 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<a name="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#indexesMoved">indexesMoved</a></b> ( const QModelIndexList &amp; <i>indexes</i> )</td></tr>
</table>
<ul>
<li class="fn">6 signals inherited from <a href="qabstractitemview.html#signals">QAbstractItemView</a></li>
<li class="fn">1 signal inherited from <a href="qwidget.html#signals">QWidget</a></li>
<li class="fn">1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
</ul>
<a name="protected-functions"></a>
<h2>Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QRect </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#rectForIndex">rectForIndex</a></b> ( const QModelIndex &amp; <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#setPositionForIndex">setPositionForIndex</a></b> ( const QPoint &amp; <i>position</i>, const QModelIndex &amp; <i>index</i> )</td></tr>
</table>
<a name="reimplemented-protected-functions"></a>
<h2>Reimplemented Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#currentChanged">currentChanged</a></b> ( const QModelIndex &amp; <i>current</i>, const QModelIndex &amp; <i>previous</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#dataChanged">dataChanged</a></b> ( const QModelIndex &amp; <i>topLeft</i>, const QModelIndex &amp; <i>bottomRight</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#dragLeaveEvent">dragLeaveEvent</a></b> ( QDragLeaveEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#dragMoveEvent">dragMoveEvent</a></b> ( QDragMoveEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#dropEvent">dropEvent</a></b> ( QDropEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#event">event</a></b> ( QEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#horizontalOffset">horizontalOffset</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#isIndexHidden">isIndexHidden</a></b> ( const QModelIndex &amp; <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#mouseMoveEvent">mouseMoveEvent</a></b> ( QMouseEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#mouseReleaseEvent">mouseReleaseEvent</a></b> ( QMouseEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QModelIndex </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#moveCursor">moveCursor</a></b> ( CursorAction <i>cursorAction</i>, Qt::KeyboardModifiers <i>modifiers</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#paintEvent">paintEvent</a></b> ( QPaintEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#resizeEvent">resizeEvent</a></b> ( QResizeEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#rowsAboutToBeRemoved">rowsAboutToBeRemoved</a></b> ( const QModelIndex &amp; <i>parent</i>, int <i>start</i>, int <i>end</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#rowsInserted">rowsInserted</a></b> ( const QModelIndex &amp; <i>parent</i>, int <i>start</i>, int <i>end</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QModelIndexList </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#selectedIndexes">selectedIndexes</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#selectionChanged">selectionChanged</a></b> ( const QItemSelection &amp; <i>selected</i>, const QItemSelection &amp; <i>deselected</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#setSelection">setSelection</a></b> ( const QRect &amp; <i>rect</i>, QItemSelectionModel::SelectionFlags <i>command</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#startDrag">startDrag</a></b> ( Qt::DropActions <i>supportedActions</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#timerEvent">timerEvent</a></b> ( QTimerEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#updateGeometries">updateGeometries</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#verticalOffset">verticalOffset</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QStyleOptionViewItem </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#viewOptions">viewOptions</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QRegion </td><td class="memItemRight bottomAlign"><b><a href="qlistview.html#visualRegionForSelection">visualRegionForSelection</a></b> ( const QItemSelection &amp; <i>selection</i> ) const</td></tr>
</table>
<ul>
<li class="fn">36 protected functions inherited from <a href="qabstractitemview.html#protected-functions">QAbstractItemView</a></li>
<li class="fn">18 protected functions inherited from <a href="qabstractscrollarea.html#protected-functions">QAbstractScrollArea</a></li>
<li class="fn">3 protected functions inherited from <a href="qframe.html#protected-functions">QFrame</a></li>
<li class="fn">37 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
<li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
<li class="fn">1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">9 public slots inherited from <a href="qabstractitemview.html#public-slots">QAbstractItemView</a></li>
<li class="fn">19 public slots inherited from <a href="qwidget.html#public-slots">QWidget</a></li>
<li class="fn">1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
<li class="fn">4 static public members inherited from <a href="qwidget.html#static-public-members">QWidget</a></li>
<li class="fn">7 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
<li class="fn">9 protected slots inherited from <a href="qabstractitemview.html#protected-slots">QAbstractItemView</a></li>
<li class="fn">1 protected slot inherited from <a href="qabstractscrollarea.html#protected-slots">QAbstractScrollArea</a></li>
<li class="fn">1 protected slot inherited from <a href="qwidget.html#protected-slots">QWidget</a></li>
</ul>
<a name="details"></a>
<!-- $$$QListView-description -->
<div class="descr">
<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 valign="top" class="odd"><td ><img src="images/windowsxp-listview.png" alt="Screenshot of a Windows XP style list view" /></td><td ><img src="images/macintosh-listview.png" alt="Screenshot of a Macintosh style table view" /></td><td ><img src="images/plastique-listview.png" alt="Screenshot of a Plastique style table view" /></td></tr>
<tr valign="top" class="even"><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 name="improving-performance"></a>
<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>
</div>
<p><b>See also </b><a href="model-view-programming.html#view-classes">View Classes</a>, <a href="qtreeview.html">QTreeView</a>, <a href="qtableview.html">QTableView</a>, and <a href="qlistwidget.html">QListWidget</a>.</p>
<!-- @@@QListView -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$Flow$$$LeftToRight$$$TopToBottom -->
<h3 class="fn"><a name="Flow-enum"></a>enum QListView::<span class="name">Flow</span></h3>
<table class="valuelist"><tr valign="top" class="odd"><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>
<!-- @@@Flow -->
<!-- $$$LayoutMode$$$SinglePass$$$Batched -->
<h3 class="fn"><a name="LayoutMode-enum"></a>enum QListView::<span class="name">LayoutMode</span></h3>
<table class="valuelist"><tr valign="top" class="odd"><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>
<!-- @@@LayoutMode -->
<!-- $$$Movement$$$Static$$$Free$$$Snap -->
<h3 class="fn"><a name="Movement-enum"></a>enum QListView::<span class="name">Movement</span></h3>
<table class="valuelist"><tr valign="top" class="odd"><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>
<!-- @@@Movement -->
<!-- $$$ResizeMode$$$Fixed$$$Adjust -->
<h3 class="fn"><a name="ResizeMode-enum"></a>enum QListView::<span class="name">ResizeMode</span></h3>
<table class="valuelist"><tr valign="top" class="odd"><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>
<!-- @@@ResizeMode -->
<!-- $$$ViewMode$$$ListMode$$$IconMode -->
<h3 class="fn"><a name="ViewMode-enum"></a>enum QListView::<span class="name">ViewMode</span></h3>
<table class="valuelist"><tr valign="top" class="odd"><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>
<!-- @@@ViewMode -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$batchSize-prop$$$batchSize$$$setBatchSizeint -->
<h3 class="fn"><a name="batchSize-prop"></a><span class="name">batchSize</span> : <span class="type">int</span></h3>
<p>This property holds the number of items laid out in each batch if layoutMode is set to Batched.</p>
<p>The default value is 100.</p>
<p>This property was introduced in Qt 4.2.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>batchSize</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBatchSize</b></span> ( int <i>batchSize</i> )</td></tr>
</table>
<!-- @@@batchSize -->
<!-- $$$flow-prop$$$flow$$$setFlowFlow -->
<h3 class="fn"><a name="flow-prop"></a><span class="name">flow</span> : <span class="type"><a href="qlistview.html#Flow-enum">Flow</a></span></h3>
<p>This property holds which direction the items layout should flow.</p>
<p>If this property is <a href="qlistview.html#Flow-enum">LeftToRight</a>, the items will be laid out left to right. If the <a href="qlistview.html#isWrapping-prop">isWrapping</a> property is true, the layout will wrap when it reaches the right side of the visible area. If this property is <a href="qlistview.html#Flow-enum">TopToBottom</a>, the items will be laid out from the top of the visible area, wrapping when it reaches the bottom.</p>
<p>Setting this property when the view is visible will cause the items to be laid out again.</p>
<p>By default, this property is set to <a href="qlistview.html#Flow-enum">TopToBottom</a>.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> Flow </td><td class="memItemRight bottomAlign"><span class="name"><b>flow</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFlow</b></span> ( Flow <i>flow</i> )</td></tr>
</table>
<p><b>See also </b><a href="qlistview.html#viewMode-prop">viewMode</a>.</p>
<!-- @@@flow -->
<!-- $$$gridSize-prop$$$gridSize$$$setGridSizeconstQSize& -->
<h3 class="fn"><a name="gridSize-prop"></a><span class="name">gridSize</span> : <span class="type"><a href="qsize.html">QSize</a></span></h3>
<p>This property holds the size of the layout grid.</p>
<p>This property is the size of the grid in which the items are laid out. The default is an empty size which means that there is no grid and the layout is not done in a grid. Setting this property to a non-empty size switches on the grid layout. (When a grid layout is in force the <a href="qlistview.html#spacing-prop">spacing</a> property is ignored.)</p>
<p>Setting this property when the view is visible will cause the items to be laid out again.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>gridSize</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setGridSize</b></span> ( const QSize &amp; <i>size</i> )</td></tr>
</table>
<p><b>See also </b><a href="qlistview.html#viewMode-prop">viewMode</a>.</p>
<!-- @@@gridSize -->
<!-- $$$isWrapping-prop$$$isWrapping$$$setWrappingbool -->
<h3 class="fn"><a name="isWrapping-prop"></a><span class="name">isWrapping</span> : <span class="type">bool</span></h3>
<p>This property holds whether the items layout should wrap.</p>
<p>This property holds whether the layout should wrap when there is no more space in the visible area. The point at which the layout wraps depends on the <a href="qlistview.html#flow-prop">flow</a> property.</p>
<p>Setting this property when the view is visible will cause the items to be laid out again.</p>
<p>By default, this property is false.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isWrapping</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setWrapping</b></span> ( bool <i>enable</i> )</td></tr>
</table>
<p><b>See also </b><a href="qlistview.html#viewMode-prop">viewMode</a>.</p>
<!-- @@@isWrapping -->
<!-- $$$layoutMode-prop$$$layoutMode$$$setLayoutModeLayoutMode -->
<h3 class="fn"><a name="layoutMode-prop"></a><span class="name">layoutMode</span> : <span class="type"><a href="qlistview.html#LayoutMode-enum">LayoutMode</a></span></h3>
<p>This property determines whether the layout of items should happen immediately or be delayed.</p>
<p>This property holds the layout mode for the items. When the mode is <a href="qlistview.html#LayoutMode-enum">SinglePass</a> (the default), the items are laid out all in one go. When the mode is <a href="qlistview.html#LayoutMode-enum">Batched</a>, the items are laid out in batches of <a href="qlistview.html#batchSize-prop">batchSize</a> items, while processing events. This makes it possible to instantly view and interact with the visible items while the rest are being laid out.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> LayoutMode </td><td class="memItemRight bottomAlign"><span class="name"><b>layoutMode</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLayoutMode</b></span> ( LayoutMode <i>mode</i> )</td></tr>
</table>
<p><b>See also </b><a href="qlistview.html#viewMode-prop">viewMode</a>.</p>
<!-- @@@layoutMode -->
<!-- $$$modelColumn-prop$$$modelColumn$$$setModelColumnint -->
<h3 class="fn"><a name="modelColumn-prop"></a><span class="name">modelColumn</span> : <span class="type">int</span></h3>
<p>This property holds the column in the model that is visible.</p>
<p>By default, this property contains 0, indicating that the first column in the model will be shown.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>modelColumn</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setModelColumn</b></span> ( int <i>column</i> )</td></tr>
</table>
<!-- @@@modelColumn -->
<!-- $$$movement-prop$$$movement$$$setMovementMovement -->
<h3 class="fn"><a name="movement-prop"></a><span class="name">movement</span> : <span class="type"><a href="qlistview.html#Movement-enum">Movement</a></span></h3>
<p>This property holds whether the items can be moved freely, are snapped to a grid, or cannot be moved at all.</p>
<p>This property determines how the user can move the items in the view. <a href="qlistview.html#Movement-enum">Static</a> means that the items can't be moved the user. <a href="qlistview.html#Movement-enum">Free</a> means that the user can drag and drop the items to any position in the view. <a href="qlistview.html#Movement-enum">Snap</a> means that the user can drag and drop the items, but only to the positions in a notional grid signified by the <a href="qlistview.html#gridSize-prop">gridSize</a> property.</p>
<p>Setting this property when the view is visible will cause the items to be laid out again.</p>
<p>By default, this property is set to <a href="qlistview.html#Movement-enum">Static</a>.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> Movement </td><td class="memItemRight bottomAlign"><span class="name"><b>movement</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMovement</b></span> ( Movement <i>movement</i> )</td></tr>
</table>
<p><b>See also </b><a href="qlistview.html#gridSize-prop">gridSize</a>, <a href="qlistview.html#resizeMode-prop">resizeMode</a>, and <a href="qlistview.html#viewMode-prop">viewMode</a>.</p>
<!-- @@@movement -->
<!-- $$$resizeMode-prop$$$resizeMode$$$setResizeModeResizeMode -->
<h3 class="fn"><a name="resizeMode-prop"></a><span class="name">resizeMode</span> : <span class="type"><a href="qlistview.html#ResizeMode-enum">ResizeMode</a></span></h3>
<p>This property holds whether the items are laid out again when the view is resized.</p>
<p>If this property is <a href="qlistview.html#ResizeMode-enum">Adjust</a>, the items will be laid out again when the view is resized. If the value is <a href="qlistview.html#ResizeMode-enum">Fixed</a>, the items will not be laid out when the view is resized.</p>
<p>By default, this property is set to <a href="qlistview.html#ResizeMode-enum">Fixed</a>.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> ResizeMode </td><td class="memItemRight bottomAlign"><span class="name"><b>resizeMode</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setResizeMode</b></span> ( ResizeMode <i>mode</i> )</td></tr>
</table>
<p><b>See also </b><a href="qlistview.html#movement-prop">movement</a>, <a href="qlistview.html#gridSize-prop">gridSize</a>, and <a href="qlistview.html#viewMode-prop">viewMode</a>.</p>
<!-- @@@resizeMode -->
<!-- $$$selectionRectVisible-prop$$$isSelectionRectVisible$$$setSelectionRectVisiblebool -->
<h3 class="fn"><a name="selectionRectVisible-prop"></a><span class="name">selectionRectVisible</span> : <span class="type">bool</span></h3>
<p>This property holds if the selection rectangle should be visible.</p>
<p>If this property is true then the selection rectangle is visible; otherwise it will be hidden.</p>
<p><b>Note:</b> The selection rectangle will only be visible if the selection mode is in a mode where more than one item can be selected; i.e&#x2e;, it will not draw a selection rectangle if the selection mode is <a href="qabstractitemview.html#SelectionMode-enum">QAbstractItemView::SingleSelection</a>.</p>
<p>By default, this property is false.</p>
<p>This property was introduced in Qt 4.3.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isSelectionRectVisible</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSelectionRectVisible</b></span> ( bool <i>show</i> )</td></tr>
</table>
<!-- @@@selectionRectVisible -->
<!-- $$$spacing-prop$$$spacing$$$setSpacingint -->
<h3 class="fn"><a name="spacing-prop"></a><span class="name">spacing</span> : <span class="type">int</span></h3>
<p>This property holds the space around the items in the layout.</p>
<p>This property is the size of the empty space that is padded around an item in the layout.</p>
<p>Setting this property when the view is visible will cause the items to be laid out again.</p>
<p>By default, this property contains a value of 0.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>spacing</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpacing</b></span> ( int <i>space</i> )</td></tr>
</table>
<p><b>See also </b><a href="qlistview.html#viewMode-prop">viewMode</a>.</p>
<!-- @@@spacing -->
<!-- $$$uniformItemSizes-prop$$$uniformItemSizes$$$setUniformItemSizesbool -->
<h3 class="fn"><a name="uniformItemSizes-prop"></a><span class="name">uniformItemSizes</span> : <span class="type">bool</span></h3>
<p>This property holds whether all items in the listview have the same size.</p>
<p>This property should only be set to true if it is guaranteed that all items in the view have the same size. This enables the view to do some optimizations for performance purposes.</p>
<p>By default, this property is false.</p>
<p>This property was introduced in Qt 4.1.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>uniformItemSizes</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setUniformItemSizes</b></span> ( bool <i>enable</i> )</td></tr>
</table>
<!-- @@@uniformItemSizes -->
<!-- $$$viewMode-prop$$$viewMode$$$setViewModeViewMode -->
<h3 class="fn"><a name="viewMode-prop"></a><span class="name">viewMode</span> : <span class="type"><a href="qlistview.html#ViewMode-enum">ViewMode</a></span></h3>
<p>This property holds the view mode of the QListView.</p>
<p>This property will change the other unset properties to conform with the set view mode. <a href="qlistview.html">QListView</a>-specific properties that have already been set will not be changed, unless <a href="qlistview.html#clearPropertyFlags">clearPropertyFlags</a>() has been called.</p>
<p>Setting the view mode will enable or disable drag and drop based on the selected movement. For <a href="qlistview.html#ViewMode-enum">ListMode</a>, the default movement is <a href="qlistview.html#Movement-enum">Static</a> (drag and drop disabled); for <a href="qlistview.html#ViewMode-enum">IconMode</a>, the default movement is <a href="qlistview.html#Movement-enum">Free</a> (drag and drop enabled).</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> ViewMode </td><td class="memItemRight bottomAlign"><span class="name"><b>viewMode</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setViewMode</b></span> ( ViewMode <i>mode</i> )</td></tr>
</table>
<p><b>See also </b><a href="qlistview.html#isWrapping-prop">isWrapping</a>, <a href="qlistview.html#spacing-prop">spacing</a>, <a href="qlistview.html#gridSize-prop">gridSize</a>, <a href="qlistview.html#flow-prop">flow</a>, <a href="qlistview.html#movement-prop">movement</a>, and <a href="qlistview.html#resizeMode-prop">resizeMode</a>.</p>
<!-- @@@viewMode -->
<!-- $$$wordWrap-prop$$$wordWrap$$$setWordWrapbool -->
<h3 class="fn"><a name="wordWrap-prop"></a><span class="name">wordWrap</span> : <span class="type">bool</span></h3>
<p>This property holds the item text word-wrapping policy.</p>
<p>If this property is true then the item text is wrapped where necessary at word-breaks; otherwise it is not wrapped at all. This property is false by default.</p>
<p>Please note that even if wrapping is enabled, the cell will not be expanded to make room for the text. It will print ellipsis for text that cannot be shown, according to the view's <a href="qabstractitemview.html#textElideMode-prop">textElideMode</a>.</p>
<p>This property was introduced in Qt 4.2.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>wordWrap</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setWordWrap</b></span> ( bool <i>on</i> )</td></tr>
</table>
<!-- @@@wordWrap -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QListView[overload1]$$$QListViewQWidget* -->
<h3 class="fn"><a name="QListView"></a>QListView::<span class="name">QListView</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0 )</h3>
<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>
<!-- @@@QListView -->
<!-- $$$~QListView[overload1]$$$~QListView -->
<h3 class="fn"><a name="dtor.QListView"></a>QListView::<span class="name">~QListView</span> ()</h3>
<p>Destroys the view.</p>
<!-- @@@~QListView -->
<!-- $$$clearPropertyFlags[overload1]$$$clearPropertyFlags -->
<h3 class="fn"><a name="clearPropertyFlags"></a><span class="type">void</span> QListView::<span class="name">clearPropertyFlags</span> ()</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>
<!-- @@@clearPropertyFlags -->
<!-- $$$currentChanged[overload1]$$$currentChangedconstQModelIndex&constQModelIndex& -->
<h3 class="fn"><a name="currentChanged"></a><span class="type">void</span> QListView::<span class="name">currentChanged</span> ( const <span class="type"><a href="qmodelindex.html">QModelIndex</a></span> &amp; <i>current</i>, const <span class="type"><a href="qmodelindex.html">QModelIndex</a></span> &amp; <i>previous</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#currentChanged">QAbstractItemView::currentChanged</a>().</p>
<!-- @@@currentChanged -->
<!-- $$$dataChanged[overload1]$$$dataChangedconstQModelIndex&constQModelIndex& -->
<h3 class="fn"><a name="dataChanged"></a><span class="type">void</span> QListView::<span class="name">dataChanged</span> ( const <span class="type"><a href="qmodelindex.html">QModelIndex</a></span> &amp; <i>topLeft</i>, const <span class="type"><a href="qmodelindex.html">QModelIndex</a></span> &amp; <i>bottomRight</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#dataChanged">QAbstractItemView::dataChanged</a>().</p>
<!-- @@@dataChanged -->
<!-- $$$dragLeaveEvent[overload1]$$$dragLeaveEventQDragLeaveEvent* -->
<h3 class="fn"><a name="dragLeaveEvent"></a><span class="type">void</span> QListView::<span class="name">dragLeaveEvent</span> ( <span class="type"><a href="qdragleaveevent.html">QDragLeaveEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#dragLeaveEvent">QWidget::dragLeaveEvent</a>().</p>
<!-- @@@dragLeaveEvent -->
<!-- $$$dragMoveEvent[overload1]$$$dragMoveEventQDragMoveEvent* -->
<h3 class="fn"><a name="dragMoveEvent"></a><span class="type">void</span> QListView::<span class="name">dragMoveEvent</span> ( <span class="type"><a href="qdragmoveevent.html">QDragMoveEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#dragMoveEvent">QWidget::dragMoveEvent</a>().</p>
<!-- @@@dragMoveEvent -->
<!-- $$$dropEvent[overload1]$$$dropEventQDropEvent* -->
<h3 class="fn"><a name="dropEvent"></a><span class="type">void</span> QListView::<span class="name">dropEvent</span> ( <span class="type"><a href="qdropevent.html">QDropEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#dropEvent">QWidget::dropEvent</a>().</p>
<!-- @@@dropEvent -->
<!-- $$$event[overload1]$$$eventQEvent* -->
<h3 class="fn"><a name="event"></a><span class="type">bool</span> QListView::<span class="name">event</span> ( <span class="type"><a href="qevent.html">QEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qobject.html#event">QObject::event</a>().</p>
<!-- @@@event -->
<!-- $$$horizontalOffset[overload1]$$$horizontalOffset -->
<h3 class="fn"><a name="horizontalOffset"></a><span class="type">int</span> QListView::<span class="name">horizontalOffset</span> () const<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#horizontalOffset">QAbstractItemView::horizontalOffset</a>().</p>
<!-- @@@horizontalOffset -->
<!-- $$$indexAt[overload1]$$$indexAtconstQPoint& -->
<h3 class="fn"><a name="indexAt"></a><span class="type"><a href="qmodelindex.html">QModelIndex</a></span> QListView::<span class="name">indexAt</span> ( const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>p</i> ) const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#indexAt">QAbstractItemView::indexAt</a>().</p>
<!-- @@@indexAt -->
<!-- $$$indexesMoved[overload1]$$$indexesMovedconstQModelIndexList& -->
<h3 class="fn"><a name="indexesMoved"></a><span class="type">void</span> QListView::<span class="name">indexesMoved</span> ( const <span class="type"><a href="qmodelindex.html#QModelIndexList-typedef">QModelIndexList</a></span> &amp; <i>indexes</i> )<tt> [signal]</tt></h3>
<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>
<!-- @@@indexesMoved -->
<!-- $$$isIndexHidden[overload1]$$$isIndexHiddenconstQModelIndex& -->
<h3 class="fn"><a name="isIndexHidden"></a><span class="type">bool</span> QListView::<span class="name">isIndexHidden</span> ( const <span class="type"><a href="qmodelindex.html">QModelIndex</a></span> &amp; <i>index</i> ) const<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#isIndexHidden">QAbstractItemView::isIndexHidden</a>().</p>
<!-- @@@isIndexHidden -->
<!-- $$$isRowHidden[overload1]$$$isRowHiddenint -->
<h3 class="fn"><a name="isRowHidden"></a><span class="type">bool</span> QListView::<span class="name">isRowHidden</span> ( <span class="type">int</span> <i>row</i> ) const</h3>
<p>Returns true if the <i>row</i> is hidden; otherwise returns false.</p>
<!-- @@@isRowHidden -->
<!-- $$$mouseMoveEvent[overload1]$$$mouseMoveEventQMouseEvent* -->
<h3 class="fn"><a name="mouseMoveEvent"></a><span class="type">void</span> QListView::<span class="name">mouseMoveEvent</span> ( <span class="type"><a href="qmouseevent.html">QMouseEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#mouseMoveEvent">QWidget::mouseMoveEvent</a>().</p>
<!-- @@@mouseMoveEvent -->
<!-- $$$mouseReleaseEvent[overload1]$$$mouseReleaseEventQMouseEvent* -->
<h3 class="fn"><a name="mouseReleaseEvent"></a><span class="type">void</span> QListView::<span class="name">mouseReleaseEvent</span> ( <span class="type"><a href="qmouseevent.html">QMouseEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#mouseReleaseEvent">QWidget::mouseReleaseEvent</a>().</p>
<!-- @@@mouseReleaseEvent -->
<!-- $$$moveCursor[overload1]$$$moveCursorCursorActionQt::KeyboardModifiers -->
<h3 class="fn"><a name="moveCursor"></a><span class="type"><a href="qmodelindex.html">QModelIndex</a></span> QListView::<span class="name">moveCursor</span> ( <span class="type"><a href="qabstractitemview.html#CursorAction-enum">CursorAction</a></span> <i>cursorAction</i>, <span class="type"><a href="qt.html#KeyboardModifier-enum">Qt::KeyboardModifiers</a></span> <i>modifiers</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#moveCursor">QAbstractItemView::moveCursor</a>().</p>
<!-- @@@moveCursor -->
<!-- $$$paintEvent[overload1]$$$paintEventQPaintEvent* -->
<h3 class="fn"><a name="paintEvent"></a><span class="type">void</span> QListView::<span class="name">paintEvent</span> ( <span class="type"><a href="qpaintevent.html">QPaintEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#paintEvent">QWidget::paintEvent</a>().</p>
<!-- @@@paintEvent -->
<!-- $$$rectForIndex[overload1]$$$rectForIndexconstQModelIndex& -->
<h3 class="fn"><a name="rectForIndex"></a><span class="type"><a href="qrect.html">QRect</a></span> QListView::<span class="name">rectForIndex</span> ( const <span class="type"><a href="qmodelindex.html">QModelIndex</a></span> &amp; <i>index</i> ) const<tt> [protected]</tt></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>
<!-- @@@rectForIndex -->
<!-- $$$resizeEvent[overload1]$$$resizeEventQResizeEvent* -->
<h3 class="fn"><a name="resizeEvent"></a><span class="type">void</span> QListView::<span class="name">resizeEvent</span> ( <span class="type"><a href="qresizeevent.html">QResizeEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#resizeEvent">QWidget::resizeEvent</a>().</p>
<!-- @@@resizeEvent -->
<!-- $$$rowsAboutToBeRemoved[overload1]$$$rowsAboutToBeRemovedconstQModelIndex&intint -->
<h3 class="fn"><a name="rowsAboutToBeRemoved"></a><span class="type">void</span> QListView::<span class="name">rowsAboutToBeRemoved</span> ( const <span class="type"><a href="qmodelindex.html">QModelIndex</a></span> &amp; <i>parent</i>, <span class="type">int</span> <i>start</i>, <span class="type">int</span> <i>end</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#rowsAboutToBeRemoved">QAbstractItemView::rowsAboutToBeRemoved</a>().</p>
<!-- @@@rowsAboutToBeRemoved -->
<!-- $$$rowsInserted[overload1]$$$rowsInsertedconstQModelIndex&intint -->
<h3 class="fn"><a name="rowsInserted"></a><span class="type">void</span> QListView::<span class="name">rowsInserted</span> ( const <span class="type"><a href="qmodelindex.html">QModelIndex</a></span> &amp; <i>parent</i>, <span class="type">int</span> <i>start</i>, <span class="type">int</span> <i>end</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#rowsInserted">QAbstractItemView::rowsInserted</a>().</p>
<!-- @@@rowsInserted -->
<!-- $$$scrollTo[overload1]$$$scrollToconstQModelIndex&ScrollHint -->
<h3 class="fn"><a name="scrollTo"></a><span class="type">void</span> QListView::<span class="name">scrollTo</span> ( const <span class="type"><a href="qmodelindex.html">QModelIndex</a></span> &amp; <i>index</i>, <span class="type"><a href="qabstractitemview.html#ScrollHint-enum">ScrollHint</a></span> <i>hint</i> = EnsureVisible )<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#scrollTo">QAbstractItemView::scrollTo</a>().</p>
<!-- @@@scrollTo -->
<!-- $$$selectedIndexes[overload1]$$$selectedIndexes -->
<h3 class="fn"><a name="selectedIndexes"></a><span class="type"><a href="qmodelindex.html#QModelIndexList-typedef">QModelIndexList</a></span> QListView::<span class="name">selectedIndexes</span> () const<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#selectedIndexes">QAbstractItemView::selectedIndexes</a>().</p>
<!-- @@@selectedIndexes -->
<!-- $$$selectionChanged[overload1]$$$selectionChangedconstQItemSelection&constQItemSelection& -->
<h3 class="fn"><a name="selectionChanged"></a><span class="type">void</span> QListView::<span class="name">selectionChanged</span> ( const <span class="type"><a href="qitemselection.html">QItemSelection</a></span> &amp; <i>selected</i>, const <span class="type"><a href="qitemselection.html">QItemSelection</a></span> &amp; <i>deselected</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#selectionChanged">QAbstractItemView::selectionChanged</a>().</p>
<!-- @@@selectionChanged -->
<!-- $$$setPositionForIndex[overload1]$$$setPositionForIndexconstQPoint&constQModelIndex& -->
<h3 class="fn"><a name="setPositionForIndex"></a><span class="type">void</span> QListView::<span class="name">setPositionForIndex</span> ( const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>position</i>, const <span class="type"><a href="qmodelindex.html">QModelIndex</a></span> &amp; <i>index</i> )<tt> [protected]</tt></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>
<!-- @@@setPositionForIndex -->
<!-- $$$setRowHidden[overload1]$$$setRowHiddenintbool -->
<h3 class="fn"><a name="setRowHidden"></a><span class="type">void</span> QListView::<span class="name">setRowHidden</span> ( <span class="type">int</span> <i>row</i>, <span class="type">bool</span> <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>
<!-- @@@setRowHidden -->
<!-- $$$setSelection[overload1]$$$setSelectionconstQRect&QItemSelectionModel::SelectionFlags -->
<h3 class="fn"><a name="setSelection"></a><span class="type">void</span> QListView::<span class="name">setSelection</span> ( const <span class="type"><a href="qrect.html">QRect</a></span> &amp; <i>rect</i>, <span class="type"><a href="qitemselectionmodel.html#SelectionFlag-enum">QItemSelectionModel::SelectionFlags</a></span> <i>command</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#setSelection">QAbstractItemView::setSelection</a>().</p>
<!-- @@@setSelection -->
<!-- $$$startDrag[overload1]$$$startDragQt::DropActions -->
<h3 class="fn"><a name="startDrag"></a><span class="type">void</span> QListView::<span class="name">startDrag</span> ( <span class="type"><a href="qt.html#DropAction-enum">Qt::DropActions</a></span> <i>supportedActions</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#startDrag">QAbstractItemView::startDrag</a>().</p>
<!-- @@@startDrag -->
<!-- $$$timerEvent[overload1]$$$timerEventQTimerEvent* -->
<h3 class="fn"><a name="timerEvent"></a><span class="type">void</span> QListView::<span class="name">timerEvent</span> ( <span class="type"><a href="qtimerevent.html">QTimerEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qobject.html#timerEvent">QObject::timerEvent</a>().</p>
<!-- @@@timerEvent -->
<!-- $$$updateGeometries[overload1]$$$updateGeometries -->
<h3 class="fn"><a name="updateGeometries"></a><span class="type">void</span> QListView::<span class="name">updateGeometries</span> ()<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#updateGeometries">QAbstractItemView::updateGeometries</a>().</p>
<!-- @@@updateGeometries -->
<!-- $$$verticalOffset[overload1]$$$verticalOffset -->
<h3 class="fn"><a name="verticalOffset"></a><span class="type">int</span> QListView::<span class="name">verticalOffset</span> () const<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#verticalOffset">QAbstractItemView::verticalOffset</a>().</p>
<!-- @@@verticalOffset -->
<!-- $$$viewOptions[overload1]$$$viewOptions -->
<h3 class="fn"><a name="viewOptions"></a><span class="type"><a href="qstyleoptionviewitem.html">QStyleOptionViewItem</a></span> QListView::<span class="name">viewOptions</span> () const<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#viewOptions">QAbstractItemView::viewOptions</a>().</p>
<!-- @@@viewOptions -->
<!-- $$$visualRect[overload1]$$$visualRectconstQModelIndex& -->
<h3 class="fn"><a name="visualRect"></a><span class="type"><a href="qrect.html">QRect</a></span> QListView::<span class="name">visualRect</span> ( const <span class="type"><a href="qmodelindex.html">QModelIndex</a></span> &amp; <i>index</i> ) const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#visualRect">QAbstractItemView::visualRect</a>().</p>
<!-- @@@visualRect -->
<!-- $$$visualRegionForSelection[overload1]$$$visualRegionForSelectionconstQItemSelection& -->
<h3 class="fn"><a name="visualRegionForSelection"></a><span class="type"><a href="qregion.html">QRegion</a></span> QListView::<span class="name">visualRegionForSelection</span> ( const <span class="type"><a href="qitemselection.html">QItemSelection</a></span> &amp; <i>selection</i> ) const<tt> [virtual protected]</tt></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>
<!-- @@@visualRegionForSelection -->
</div>
      </div>
    </div>
    </div> 
    <div class="ft">
      <span></span>
    </div>
  </div> 
  <div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2015 The Qt Company Ltd.
      Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      Qt and respective logos are trademarks of The Qt Company Ltd 
      in Finland and/or other countries worldwide. All other trademarks are property
      of their respective owners. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
  </div>

  <script src="scripts/functions.js" type="text/javascript"></script>
</body>
</html>