Sophie

Sophie

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

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" />
<!-- q3iconview.cpp -->
  <title>Qt 4.8: Q3IconView 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>Qt3SupportLight</li>
<li>Q3IconView</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="#public-slots">Public Slots</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="#protected-slots">Protected Slots</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
<li class="level2"><a href="#drag-and-drop">Drag and Drop</a></li>
</ul>
</div>
<h1 class="title">Q3IconView Class Reference</h1>
<!-- $$$Q3IconView-brief -->
<p>The Q3IconView class provides an area with movable labelled icons. <a href="#details">More...</a></p>
<!-- @@@Q3IconView -->
<pre class="cpp"> <span class="preprocessor">#include &lt;Q3IconView&gt;</span></pre><p><b>This class is part of the Qt 3 support library.</b> It is provided to keep old source code working. We strongly advise against using it in new code. See <a href="porting4.html#qiconview">Porting to Qt 4</a> for more information.</p>
<p><b>Inherits: </b><a href="q3scrollview.html">Q3ScrollView</a>.</p>
<ul>
<li><a href="q3iconview-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="q3iconview.html#Arrangement-enum">Arrangement</a></b> { LeftToRight, TopToBottom }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#ComparisonFlags-typedef">ComparisonFlags</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#ItemTextPos-enum">ItemTextPos</a></b> { Bottom, Right }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.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="q3iconview.html#SelectionMode-enum">SelectionMode</a></b> { Single, Multi, Extended, NoSelection }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#StringComparisonMode-enum">StringComparisonMode</a></b> { CaseSensitive, ExactMatch, BeginsWith, EndsWith, Contains }</td></tr>
</table>
<a name="properties"></a>
<h2>Properties</h2>
<table class="propsummary">
<tr><td class="topAlign"><ul>
<li class="fn"><b><a href="q3iconview.html#arrangement-prop">arrangement</a></b> : Arrangement</li>
<li class="fn"><b><a href="q3iconview.html#autoArrange-prop">autoArrange</a></b> : bool</li>
<li class="fn"><b><a href="q3iconview.html#count-prop">count</a></b> : const uint</li>
<li class="fn"><b><a href="q3iconview.html#gridX-prop">gridX</a></b> : int</li>
<li class="fn"><b><a href="q3iconview.html#gridY-prop">gridY</a></b> : int</li>
<li class="fn"><b><a href="q3iconview.html#itemTextBackground-prop">itemTextBackground</a></b> : QBrush</li>
<li class="fn"><b><a href="q3iconview.html#itemTextPos-prop">itemTextPos</a></b> : ItemTextPos</li>
<li class="fn"><b><a href="q3iconview.html#itemsMovable-prop">itemsMovable</a></b> : bool</li>
<li class="fn"><b><a href="q3iconview.html#maxItemTextLength-prop">maxItemTextLength</a></b> : int</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="q3iconview.html#maxItemWidth-prop">maxItemWidth</a></b> : int</li>
<li class="fn"><b><a href="q3iconview.html#resizeMode-prop">resizeMode</a></b> : ResizeMode</li>
<li class="fn"><b><a href="q3iconview.html#selectionMode-prop">selectionMode</a></b> : SelectionMode</li>
<li class="fn"><b><a href="q3iconview.html#showToolTips-prop">showToolTips</a></b> : bool</li>
<li class="fn"><b><a href="q3iconview.html#sortDirection-prop">sortDirection</a></b> : const bool</li>
<li class="fn"><b><a href="q3iconview.html#sorting-prop">sorting</a></b> : const bool</li>
<li class="fn"><b><a href="q3iconview.html#spacing-prop">spacing</a></b> : int</li>
<li class="fn"><b><a href="q3iconview.html#wordWrapIconText-prop">wordWrapIconText</a></b> : bool</li>
</ul>
</td></tr>
</table>
<ul>
<li class="fn">10 properties inherited from <a href="q3scrollview.html#properties">Q3ScrollView</a></li>
<li class="fn">2 properties inherited from <a href="q3frame.html#properties">Q3Frame</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="q3iconview.html#Q3IconView">Q3IconView</a></b> ( QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0, Qt::WindowFlags <i>f</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#dtor.Q3IconView">~Q3IconView</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Arrangement </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#arrangement-prop">arrangement</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#autoArrange-prop">autoArrange</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#clear">clear</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#clearSelection">clearSelection</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> uint </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#count-prop">count</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Q3IconViewItem * </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#currentItem">currentItem</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#ensureItemVisible">ensureItemVisible</a></b> ( Q3IconViewItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Q3IconViewItem * </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#findFirstVisibleItem">findFirstVisibleItem</a></b> ( const QRect &amp; <i>r</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Q3IconViewItem * </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#findItem">findItem</a></b> ( const QPoint &amp; <i>pos</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Q3IconViewItem * </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#findItem-3">findItem</a></b> ( const QString &amp; <i>text</i>, ComparisonFlags <i>compare</i> = BeginsWith | Qt::CaseSensitive ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Q3IconViewItem * </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#findLastVisibleItem">findLastVisibleItem</a></b> ( const QRect &amp; <i>r</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Q3IconViewItem * </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#firstItem">firstItem</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#gridX-prop">gridX</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#gridY-prop">gridY</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#index">index</a></b> ( const Q3IconViewItem * <i>item</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#insertItem">insertItem</a></b> ( Q3IconViewItem * <i>item</i>, Q3IconViewItem * <i>after</i> = 0L )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#invertSelection">invertSelection</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#isRenaming">isRenaming</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QBrush </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#itemTextBackground-prop">itemTextBackground</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> ItemTextPos </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#itemTextPos-prop">itemTextPos</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#itemsMovable-prop">itemsMovable</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Q3IconViewItem * </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#lastItem">lastItem</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#maxItemTextLength-prop">maxItemTextLength</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#maxItemWidth-prop">maxItemWidth</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#repaintItem">repaintItem</a></b> ( Q3IconViewItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#repaintSelectedItems">repaintSelectedItems</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> ResizeMode </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#resizeMode-prop">resizeMode</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#selectAll">selectAll</a></b> ( bool <i>select</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> SelectionMode </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#selectionMode-prop">selectionMode</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#arrangement-prop">setArrangement</a></b> ( Arrangement <i>am</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#autoArrange-prop">setAutoArrange</a></b> ( bool <i>b</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#setCurrentItem">setCurrentItem</a></b> ( Q3IconViewItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#gridX-prop">setGridX</a></b> ( int <i>rx</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#gridY-prop">setGridY</a></b> ( int <i>ry</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#itemTextBackground-prop">setItemTextBackground</a></b> ( const QBrush &amp; <i>b</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#itemTextPos-prop">setItemTextPos</a></b> ( ItemTextPos <i>pos</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#itemsMovable-prop">setItemsMovable</a></b> ( bool <i>b</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#maxItemTextLength-prop">setMaxItemTextLength</a></b> ( int <i>w</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#maxItemWidth-prop">setMaxItemWidth</a></b> ( int <i>w</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#resizeMode-prop">setResizeMode</a></b> ( ResizeMode <i>am</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#setSelected">setSelected</a></b> ( Q3IconViewItem * <i>item</i>, bool <i>s</i>, bool <i>cb</i> = false )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#selectionMode-prop">setSelectionMode</a></b> ( SelectionMode <i>m</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#showToolTips-prop">setShowToolTips</a></b> ( bool <i>b</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#setSorting">setSorting</a></b> ( bool <i>sort</i>, bool <i>ascending</i> = true )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#spacing-prop">setSpacing</a></b> ( int <i>sp</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#wordWrapIconText-prop">setWordWrapIconText</a></b> ( bool <i>b</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#showToolTips-prop">showToolTips</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#sort">sort</a></b> ( bool <i>ascending</i> = true )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#sortDirection-prop">sortDirection</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#sorting-prop">sorting</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#spacing-prop">spacing</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#takeItem">takeItem</a></b> ( Q3IconViewItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#wordWrapIconText-prop">wordWrapIconText</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 bool </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#eventFilter">eventFilter</a></b> ( QObject * <i>o</i>, QEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QVariant </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#inputMethodQuery">inputMethodQuery</a></b> ( Qt::InputMethodQuery <i>query</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSize </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#minimumSizeHint">minimumSizeHint</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#showEvent">showEvent</a></b> ( QShowEvent * )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSize </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#sizeHint">sizeHint</a></b> () const</td></tr>
</table>
<ul>
<li class="fn">49 public functions inherited from <a href="q3scrollview.html#public-functions">Q3ScrollView</a></li>
<li class="fn">4 public functions inherited from <a href="q3frame.html#public-functions">Q3Frame</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="public-slots"></a>
<h2>Public Slots</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#arrangeItemsInGrid">arrangeItemsInGrid</a></b> ( const QSize &amp; <i>grid</i>, bool <i>update</i> = true )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#arrangeItemsInGrid-2">arrangeItemsInGrid</a></b> ( bool <i>update</i> = true )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#setContentsPos">setContentsPos</a></b> ( int <i>x</i>, int <i>y</i> )</td></tr>
</table>
<ul>
<li class="fn">8 public slots inherited from <a href="q3scrollview.html#public-slots">Q3ScrollView</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>
</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="q3iconview.html#clicked">clicked</a></b> ( Q3IconViewItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#clicked-2">clicked</a></b> ( Q3IconViewItem * <i>item</i>, const QPoint &amp; <i>pos</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#contextMenuRequested">contextMenuRequested</a></b> ( Q3IconViewItem * <i>item</i>, const QPoint &amp; <i>pos</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#currentChanged">currentChanged</a></b> ( Q3IconViewItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#doubleClicked">doubleClicked</a></b> ( Q3IconViewItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#dropped">dropped</a></b> ( QDropEvent * <i>e</i>, const Q3ValueList&lt;Q3IconDragItem&gt; &amp; <i>lst</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#itemRenamed">itemRenamed</a></b> ( Q3IconViewItem * <i>item</i>, const QString &amp; <i>name</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#itemRenamed-2">itemRenamed</a></b> ( Q3IconViewItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#mouseButtonClicked">mouseButtonClicked</a></b> ( int <i>button</i>, Q3IconViewItem * <i>item</i>, const QPoint &amp; <i>pos</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#mouseButtonPressed">mouseButtonPressed</a></b> ( int <i>button</i>, Q3IconViewItem * <i>item</i>, const QPoint &amp; <i>pos</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#moved">moved</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#onItem">onItem</a></b> ( Q3IconViewItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#onViewport">onViewport</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#pressed">pressed</a></b> ( Q3IconViewItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#pressed-2">pressed</a></b> ( Q3IconViewItem * <i>item</i>, const QPoint &amp; <i>pos</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#returnPressed">returnPressed</a></b> ( Q3IconViewItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#rightButtonClicked">rightButtonClicked</a></b> ( Q3IconViewItem * <i>item</i>, const QPoint &amp; <i>pos</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#rightButtonPressed">rightButtonPressed</a></b> ( Q3IconViewItem * <i>item</i>, const QPoint &amp; <i>pos</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#selectionChanged">selectionChanged</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#selectionChanged-2">selectionChanged</a></b> ( Q3IconViewItem * <i>item</i> )</td></tr>
</table>
<ul>
<li class="fn">5 signals inherited from <a href="q3scrollview.html#signals">Q3ScrollView</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"> virtual Q3DragObject * </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#dragObject">dragObject</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#drawBackground">drawBackground</a></b> ( QPainter * <i>p</i>, const QRect &amp; <i>r</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#drawRubber">drawRubber</a></b> ( QPainter * <i>p</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#emitSelectionChanged">emitSelectionChanged</a></b> ( Q3IconViewItem * <i>i</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#insertInGrid">insertInGrid</a></b> ( Q3IconViewItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Q3IconViewItem * </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#makeRowLayout">makeRowLayout</a></b> ( Q3IconViewItem * <i>begin</i>, int &amp; <i>y</i>, bool &amp; <i>changed</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#startDrag">startDrag</a></b> ()</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="q3iconview.html#changeEvent">changeEvent</a></b> ( QEvent * <i>ev</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#contentsContextMenuEvent">contentsContextMenuEvent</a></b> ( QContextMenuEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#contentsDragEnterEvent">contentsDragEnterEvent</a></b> ( QDragEnterEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#contentsDragLeaveEvent">contentsDragLeaveEvent</a></b> ( QDragLeaveEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#contentsDragMoveEvent">contentsDragMoveEvent</a></b> ( QDragMoveEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#contentsDropEvent">contentsDropEvent</a></b> ( QDropEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#contentsMouseDoubleClickEvent">contentsMouseDoubleClickEvent</a></b> ( QMouseEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#contentsMouseMoveEvent">contentsMouseMoveEvent</a></b> ( QMouseEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#contentsMousePressEvent">contentsMousePressEvent</a></b> ( QMouseEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#contentsMouseReleaseEvent">contentsMouseReleaseEvent</a></b> ( QMouseEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#drawContents">drawContents</a></b> ( QPainter * <i>p</i>, int <i>cx</i>, int <i>cy</i>, int <i>cw</i>, int <i>ch</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#enterEvent">enterEvent</a></b> ( QEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#focusInEvent">focusInEvent</a></b> ( QFocusEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#focusOutEvent">focusOutEvent</a></b> ( QFocusEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#keyPressEvent">keyPressEvent</a></b> ( QKeyEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#resizeEvent">resizeEvent</a></b> ( QResizeEvent * <i>e</i> )</td></tr>
</table>
<ul>
<li class="fn">26 protected functions inherited from <a href="q3scrollview.html#protected-functions">Q3ScrollView</a></li>
<li class="fn">5 protected functions inherited from <a href="q3frame.html#protected-functions">Q3Frame</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>
<a name="protected-slots"></a>
<h2>Protected Slots</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#adjustItems">adjustItems</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#doAutoScroll">doAutoScroll</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3iconview.html#slotUpdate">slotUpdate</a></b> ()</td></tr>
</table>
<ul>
<li class="fn">1 protected slot inherited from <a href="qwidget.html#protected-slots">QWidget</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<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>
</ul>
<a name="details"></a>
<!-- $$$Q3IconView-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The Q3IconView class provides an area with movable labelled icons.</p>
<p>A Q3IconView can display and manage a grid or other 2D layout of labelled icons. Each labelled icon is a <a href="q3iconviewitem.html">Q3IconViewItem</a>. Items (Q3IconViewItems) can be added or deleted at any time; items can be moved within the Q3IconView. Single or multiple items can be selected. Items can be renamed in-place. Q3IconView also supports <a href="#draganddrop">drag and drop</a>.</p>
<p>Each item contains a label string, a pixmap or picture (the icon itself) and optionally a sort key. The sort key is used for sorting the items and defaults to the label string. The label string can be displayed below or to the right of the icon (see <a href="q3iconview.html#ItemTextPos-enum">ItemTextPos</a>).</p>
<p>The simplest way to create a Q3IconView is to create a Q3IconView object and create some Q3IconViewItems with the Q3IconView as their parent, set the icon view's geometry and show it. For example:</p>
<pre class="cpp"> <span class="type">Q3IconView</span> <span class="operator">*</span>iv <span class="operator">=</span> <span class="keyword">new</span> <span class="type">Q3IconView</span>(<span class="keyword">this</span>);
 <span class="type"><a href="qdir.html">QDir</a></span> dir(path<span class="operator">,</span> <span class="string">&quot;*.xpm&quot;</span>);
 <span class="keyword">for</span> (<span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> i <span class="operator">=</span> <span class="number">0</span>; i <span class="operator">&lt;</span> dir<span class="operator">.</span>count(); i<span class="operator">+</span><span class="operator">+</span>) {
     (<span class="type">void</span>) <span class="keyword">new</span> <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span>(iv<span class="operator">,</span> dir<span class="operator">[</span>i<span class="operator">]</span><span class="operator">,</span> <span class="type"><a href="qpixmap.html">QPixmap</a></span>(path <span class="operator">+</span> dir<span class="operator">[</span>i<span class="operator">]</span>));
 }
 iv<span class="operator">-</span><span class="operator">&gt;</span>resize(<span class="number">600</span><span class="operator">,</span> <span class="number">400</span>);
 iv<span class="operator">-</span><span class="operator">&gt;</span><a href="qwidget.html#show">show</a>();</pre>
<p>The <a href="q3iconviewitem.html">Q3IconViewItem</a> call passes a pointer to the Q3IconView we wish to populate, along with the label text and a <a href="qpixmap.html">QPixmap</a>.</p>
<p>When an item is inserted the Q3IconView allocates a position for it. Existing items are rearranged if <a href="q3iconview.html#autoArrange-prop">autoArrange</a>() is true. The default arrangement is <a href="q3iconview.html#Arrangement-enum">LeftToRight</a> -- the Q3IconView fills up the <i>left-most</i> column from top to bottom, then moves one column <i>right</i> and fills that from top to bottom and so on. The arrangement can be modified with any of the following approaches:</p>
<ul>
<li>Call <a href="q3iconview.html#arrangement-prop">setArrangement</a>(), e.g&#x2e; with <a href="q3iconview.html#Arrangement-enum">TopToBottom</a> which will fill the <i>top-most</i> row from left to right, then moves one row <i>down</i> and fills that row from left to right and so on.</li>
<li>Construct each <a href="q3iconviewitem.html">Q3IconViewItem</a> using a constructor which allows you to specify which item the new one is to follow.</li>
<li>Call <a href="q3iconview.html#setSorting">setSorting</a>() or <a href="q3iconview.html#sort">sort</a>() to sort the items.</li>
</ul>
<p>The spacing between items is set with <a href="q3iconview.html#spacing-prop">setSpacing</a>(). Items can be laid out using a fixed grid using <a href="q3iconview.html#gridX-prop">setGridX</a>() and <a href="q3iconview.html#gridY-prop">setGridY</a>(); by default the Q3IconView calculates a grid dynamically. The position of items' label text is set with <a href="q3iconview.html#itemTextPos-prop">setItemTextPos</a>(). The text's background can be set with <a href="q3iconview.html#itemTextBackground-prop">setItemTextBackground</a>(). The maximum width of an item and of its text are set with <a href="q3iconview.html#maxItemWidth-prop">setMaxItemWidth</a>() and <a href="q3iconview.html#maxItemTextLength-prop">setMaxItemTextLength</a>(). The label text will be word-wrapped if it is too long; this is controlled by <a href="q3iconview.html#wordWrapIconText-prop">setWordWrapIconText</a>(). If the label text is truncated, the user can still see the entire text in a tool tip if they hover the mouse over the item. This is controlled with <a href="q3iconview.html#showToolTips-prop">setShowToolTips</a>().</p>
<p>Items which are <a href="q3iconviewitem.html#isSelectable">selectable</a> may be selected depending on the <a href="q3iconview.html#SelectionMode-enum">SelectionMode</a>; the default is <a href="q3iconview.html#SelectionMode-enum">Single</a>. Because Q3IconView offers multiple selection it must display keyboard focus and selection state separately. Therefore there are functions to set the selection state of an item (<a href="q3iconview.html#setSelected">setSelected</a>()) and to select which item displays keyboard focus (<a href="q3iconview.html#setCurrentItem">setCurrentItem</a>()). When multiple items may be selected the icon view provides a rubberband, too.</p>
<p>When in-place renaming is enabled (it is disabled by default), the user may change the item's label. They do this by selecting the item (single clicking it or navigating to it with the arrow keys), then single clicking it (or pressing F2), and entering their text. If no key has been set with <a href="q3iconviewitem.html#setKey">Q3IconViewItem::setKey</a>() the new text will also serve as the key. (See <a href="q3iconviewitem.html#setRenameEnabled">Q3IconViewItem::setRenameEnabled</a>().)</p>
<p>You can control whether users can move items themselves with <a href="q3iconview.html#itemsMovable-prop">setItemsMovable</a>().</p>
<p>Because the internal structure used to store the icon view items is linear, no iterator class is needed to iterate over all the items. Instead we iterate by getting the first item from the <i>icon view</i> and then each subsequent (<a href="q3iconviewitem.html#nextItem">Q3IconViewItem::nextItem</a>()) from each <i>item</i> in turn:</p>
<pre class="cpp"> <span class="keyword">for</span> (<span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> <span class="operator">*</span>item <span class="operator">=</span> iv<span class="operator">-</span><span class="operator">&gt;</span>firstItem(); item; item <span class="operator">=</span> item<span class="operator">-</span><span class="operator">&gt;</span>nextItem())
     do_something(item);</pre>
<p>Q3IconView also provides <a href="q3iconview.html#currentItem">currentItem</a>(). You can search for an item using <a href="q3iconview.html#findItem">findItem</a>() (searching by position or for label text) and with <a href="q3iconview.html#findFirstVisibleItem">findFirstVisibleItem</a>() and <a href="q3iconview.html#findLastVisibleItem">findLastVisibleItem</a>(). The number of items is returned by <a href="q3iconview.html#count-prop">count</a>(). An item can be removed from an icon view using <a href="q3iconview.html#takeItem">takeItem</a>(); to delete an item use <tt>delete</tt>. All the items can be deleted with <a href="q3iconview.html#clear">clear</a>().</p>
<p>The Q3IconView emits a wide range of useful signals, including <a href="q3iconview.html#selectionChanged">selectionChanged</a>(), <a href="q3iconview.html#currentChanged">currentChanged</a>(), <a href="q3iconview.html#clicked">clicked</a>(), <a href="q3iconview.html#moved">moved</a>() and <a href="q3iconview.html#itemRenamed">itemRenamed</a>().</p>
<a name="draganddrop"></a><a name="drag-and-drop"></a>
<h3>Drag and Drop</h3>
<p>Q3IconView supports the drag and drop of items within the Q3IconView itself. It also supports the drag and drop of items out of or into the Q3IconView and drag and drop onto items themselves. The drag and drop of items outside the Q3IconView can be achieved in a simple way with basic functionality, or in a more sophisticated way which provides more power and control.</p>
<p>The simple approach to dragging items out of the icon view is to subclass Q3IconView and reimplement <a href="q3iconview.html#dragObject">Q3IconView::dragObject</a>().</p>
<pre class="cpp"> <span class="type"><a href="q3dragobject.html">Q3DragObject</a></span> <span class="operator">*</span>MyIconView<span class="operator">::</span><a href="q3iconview.html#dragObject">dragObject</a>()
 {
     <span class="keyword">return</span> <span class="keyword">new</span> <span class="type"><a href="q3textdrag.html">Q3TextDrag</a></span>(currentItem()<span class="operator">-</span><span class="operator">&gt;</span>text()<span class="operator">,</span> <span class="keyword">this</span>);
 }</pre>
<p>In this example we create a <a href="q3textdrag.html">Q3TextDrag</a> object, (derived from <a href="q3dragobject.html">Q3DragObject</a>), containing the item's label and return it as the drag object. We could just as easily have created a <a href="q3imagedrag.html">Q3ImageDrag</a> from the item's pixmap and returned that instead.</p>
<p>Q3IconViews and their Q3IconViewItems can also be the targets of drag and drops. To make the Q3IconView itself able to accept drops connect to the <a href="q3iconview.html#dropped">dropped</a>() signal. When a drop occurs this signal will be emitted with a QDragEvent and a <a href="qlinkedlist.html">QLinkedList</a> of Q3IconDragItems. To make a <a href="q3iconviewitem.html">Q3IconViewItem</a> into a drop target subclass <a href="q3iconviewitem.html">Q3IconViewItem</a> and reimplement <a href="q3iconviewitem.html#acceptDrop">Q3IconViewItem::acceptDrop</a>() and <a href="q3iconviewitem.html#dropped">Q3IconViewItem::dropped</a>().</p>
<pre class="cpp"> <span class="type">bool</span> MyIconViewItem<span class="operator">::</span>acceptDrop(<span class="keyword">const</span> <span class="type"><a href="qmimesource.html">QMimeSource</a></span> <span class="operator">*</span>mime) <span class="keyword">const</span>
 {
     <span class="keyword">if</span> (mime<span class="operator">-</span><span class="operator">&gt;</span>provides(<span class="string">&quot;text/plain&quot;</span>))
         <span class="keyword">return</span> <span class="keyword">true</span>;
     <span class="keyword">return</span> <span class="keyword">false</span>;
 }

 <span class="type">void</span> MyIconViewItem<span class="operator">::</span><a href="q3iconview.html#dropped">dropped</a>(<span class="type"><a href="qdropevent.html">QDropEvent</a></span> <span class="operator">*</span>evt<span class="operator">,</span> <span class="keyword">const</span> <span class="type"><a href="q3valuelist.html">Q3ValueList</a></span><span class="operator">&lt;</span><span class="type"><a href="q3icondragitem.html">Q3IconDragItem</a></span><span class="operator">&gt;</span><span class="operator">&amp;</span>)
 {
     <span class="type"><a href="qstring.html">QString</a></span> label;
     <span class="keyword">if</span> (<span class="type"><a href="q3textdrag.html">Q3TextDrag</a></span><span class="operator">::</span>decode(evt<span class="operator">,</span> label))
         setText(label);
 }</pre>
<p>If you want to use extended drag-and-drop or have drag shapes drawn you must take a more sophisticated approach.</p>
<p>The first part is starting drags -- you should use a <a href="q3icondrag.html">Q3IconDrag</a> (or a class derived from it) for the drag object. In <a href="q3iconview.html#dragObject">dragObject</a>() create the drag object, populate it with Q3IconDragItems and return it. Normally such a drag should offer each selected item's data. So in <a href="q3iconview.html#dragObject">dragObject</a>() you should iterate over all the items, and create a <a href="q3icondragitem.html">Q3IconDragItem</a> for each selected item, and append these items with <a href="q3icondrag.html#append">Q3IconDrag::append</a>() to the <a href="q3icondrag.html">Q3IconDrag</a> object. You can use <a href="q3icondragitem.html#setData">Q3IconDragItem::setData</a>() to set the data of each item that should be dragged. If you want to offer the data in additional mime-types, it's best to use a class derived from <a href="q3icondrag.html">Q3IconDrag</a>, which implements additional encoding and decoding functions.</p>
<p>When a drag enters the icon view, there is little to do. Simply connect to the <a href="q3iconview.html#dropped">dropped</a>() signal and reimplement <a href="q3iconviewitem.html#acceptDrop">Q3IconViewItem::acceptDrop</a>() and <a href="q3iconviewitem.html#dropped">Q3IconViewItem::dropped</a>(). If you've used a <a href="q3icondrag.html">Q3IconDrag</a> (or a subclass of it) the second argument to the dropped signal contains a <a href="qlinkedlist.html">QLinkedList</a> of Q3IconDragItems -- you can access their data by calling <a href="q3icondragitem.html#data">Q3IconDragItem::data</a>() on each one.</p>
<p>For an example implementation of complex drag-and-drop look at the fileiconview example (qt/examples/fileiconview).</p>
</div>
<p><b>See also </b><a href="q3iconviewitem.html#setDragEnabled">Q3IconViewItem::setDragEnabled</a>(), <a href="q3iconviewitem.html#setDropEnabled">Q3IconViewItem::setDropEnabled</a>(), <a href="q3iconviewitem.html#acceptDrop">Q3IconViewItem::acceptDrop</a>(), and <a href="q3iconviewitem.html#dropped">Q3IconViewItem::dropped</a>().</p>
<!-- @@@Q3IconView -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$Arrangement$$$LeftToRight$$$TopToBottom -->
<h3 class="fn"><a name="Arrangement-enum"></a>enum Q3IconView::<span class="name">Arrangement</span></h3>
<p>This enum type determines in which direction the items flow when the view runs out of space.</p>
<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>Q3IconView::LeftToRight</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">Items which don't fit into the view go further down (you get a vertical scroll bar)</td></tr>
<tr><td class="topAlign"><tt>Q3IconView::TopToBottom</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">Items which don't fit into the view go further right (you get a horizontal scroll bar)</td></tr>
</table>
<!-- @@@Arrangement -->
<!-- $$$ComparisonFlags -->
<h3 class="fn"><a name="ComparisonFlags-typedef"></a>typedef Q3IconView::<span class="name">ComparisonFlags</span></h3>
<p>This typedef is used in <a href="q3iconview.html" class="compat">Q3IconView</a>'s API for values that are OR'd combinations of <a href="q3iconview.html#StringComparisonMode-enum">StringComparisonMode</a> values.</p>
<p><b>See also </b><a href="q3iconview.html#StringComparisonMode-enum">StringComparisonMode</a>.</p>
<!-- @@@ComparisonFlags -->
<!-- $$$ItemTextPos$$$Bottom$$$Right -->
<h3 class="fn"><a name="ItemTextPos-enum"></a>enum Q3IconView::<span class="name">ItemTextPos</span></h3>
<p>This enum type specifies the position of the item text in relation to the icon.</p>
<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>Q3IconView::Bottom</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The text is drawn below the icon.</td></tr>
<tr><td class="topAlign"><tt>Q3IconView::Right</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The text is drawn to the right of the icon.</td></tr>
</table>
<!-- @@@ItemTextPos -->
<!-- $$$ResizeMode$$$Fixed$$$Adjust -->
<h3 class="fn"><a name="ResizeMode-enum"></a>enum Q3IconView::<span class="name">ResizeMode</span></h3>
<p>This enum type is used to tell <a href="q3iconview.html" class="compat">Q3IconView</a> how it should treat the positions of its icons when the widget is resized. The modes are:</p>
<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>Q3IconView::Fixed</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The icons' positions are not changed.</td></tr>
<tr><td class="topAlign"><tt>Q3IconView::Adjust</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The icons' positions are adjusted to be within the new geometry, if possible.</td></tr>
</table>
<!-- @@@ResizeMode -->
<!-- $$$SelectionMode$$$Single$$$Multi$$$Extended$$$NoSelection -->
<h3 class="fn"><a name="SelectionMode-enum"></a>enum Q3IconView::<span class="name">SelectionMode</span></h3>
<p>This enumerated type is used by <a href="q3iconview.html" class="compat">Q3IconView</a> to indicate how it reacts to selection by the user. It has four values:</p>
<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>Q3IconView::Single</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">When the user selects an item, any already-selected item becomes unselected and the user cannot unselect the selected item. This means that the user can never clear the selection. (The application programmer can, using <a href="q3iconview.html#clearSelection">Q3IconView::clearSelection</a>().)</td></tr>
<tr><td class="topAlign"><tt>Q3IconView::Multi</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">When the user selects an item, e.g&#x2e; by navigating to it with the keyboard arrow keys or by clicking it, the selection status of that item is toggled and the other items are left alone.</td></tr>
<tr><td class="topAlign"><tt>Q3IconView::Extended</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">When the user selects an item the selection is cleared and the new item selected. However, if the user presses the Ctrl key when clicking on an item, the clicked item gets toggled and all other items are left untouched. If the user presses the Shift key while clicking on an item, all items between the current item and the clicked item get selected or unselected, depending on the state of the clicked item. Also, multiple items can be selected by dragging the mouse while the left mouse button stays pressed.</td></tr>
<tr><td class="topAlign"><tt>Q3IconView::NoSelection</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">Items cannot be selected.</td></tr>
</table>
<p>To summarize: <tt>Single</tt> is a real single-selection icon view; <tt>Multi</tt> a real multi-selection icon view; <tt>Extended</tt> is an icon view in which users can select multiple items but usually want to select either just one or a range of contiguous items; and <tt>NoSelection</tt> mode is for an icon view where the user can look but not touch.</p>
<!-- @@@SelectionMode -->
<!-- $$$StringComparisonMode$$$CaseSensitive$$$BeginsWith$$$EndsWith$$$Contains$$$ExactMatch -->
<h3 class="fn"><a name="StringComparisonMode-enum"></a>enum Q3IconView::<span class="name">StringComparisonMode</span></h3>
<p>This enum type is used to set the string comparison mode when searching for an item. We'll refer to the string being searched as the 'target' string.</p>
<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>Q3IconView::CaseSensitive</tt></td><td class="topAlign"><tt>0x00001</tt></td><td class="topAlign">The strings must match case sensitively.</td></tr>
<tr><td class="topAlign"><tt>Q3IconView::ExactMatch</tt></td><td class="topAlign"><tt>0x00010</tt></td><td class="topAlign">The target and search strings must match exactly.</td></tr>
<tr><td class="topAlign"><tt>Q3IconView::BeginsWith</tt></td><td class="topAlign"><tt>0x00002</tt></td><td class="topAlign">The target string begins with the search string.</td></tr>
<tr><td class="topAlign"><tt>Q3IconView::EndsWith</tt></td><td class="topAlign"><tt>0x00004</tt></td><td class="topAlign">The target string ends with the search string.</td></tr>
<tr><td class="topAlign"><tt>Q3IconView::Contains</tt></td><td class="topAlign"><tt>0x00008</tt></td><td class="topAlign">The target string contains the search string.</td></tr>
</table>
<p>If you OR these flags together (excluding <tt>CaseSensitive</tt>), the search criteria be applied in the following order: <tt>ExactMatch</tt>, <tt>BeginsWith</tt>, <tt>EndsWith</tt>, <tt>Contains</tt>.</p>
<p>Matching is case-insensitive unless <tt>CaseSensitive</tt> is set. <tt>CaseSensitive</tt> can be OR-ed with any combination of the other flags.</p>
<p><b>See also </b><a href="q3iconview.html#ComparisonFlags-typedef">ComparisonFlags</a>.</p>
<!-- @@@StringComparisonMode -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$arrangement-prop$$$arrangement$$$setArrangementArrangement -->
<h3 class="fn"><a name="arrangement-prop"></a><span class="name">arrangement</span> : <span class="type"><a href="q3iconview.html#Arrangement-enum">Arrangement</a></span></h3>
<p>This property holds the arrangement mode of the icon view.</p>
<p>This can be <a href="q3iconview.html#Arrangement-enum">LeftToRight</a> or <a href="q3iconview.html#Arrangement-enum">TopToBottom</a>. The default is <a href="q3iconview.html#Arrangement-enum">LeftToRight</a>.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> Arrangement </td><td class="memItemRight bottomAlign"><span class="name"><b>arrangement</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setArrangement</b></span> ( Arrangement <i>am</i> )</td></tr>
</table>
<!-- @@@arrangement -->
<!-- $$$autoArrange-prop$$$autoArrange$$$setAutoArrangebool -->
<h3 class="fn"><a name="autoArrange-prop"></a><span class="name">autoArrange</span> : <span class="type">bool</span></h3>
<p>This property holds whether the icon view rearranges its items when a new item is inserted.</p>
<p>The default is true.</p>
<p>Note that if the icon view is not visible at the time of insertion, <a href="q3iconview.html" class="compat">Q3IconView</a> defers all position-related work until it is shown and then calls <a href="q3iconview.html#arrangeItemsInGrid">arrangeItemsInGrid</a>().</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>autoArrange</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAutoArrange</b></span> ( bool <i>b</i> )</td></tr>
</table>
<!-- @@@autoArrange -->
<!-- $$$count-prop$$$count -->
<h3 class="fn"><a name="count-prop"></a><span class="name">count</span> : const <span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span></h3>
<p>This property holds the number of items in the icon view.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> uint </td><td class="memItemRight bottomAlign"><span class="name"><b>count</b></span> () const</td></tr>
</table>
<!-- @@@count -->
<!-- $$$gridX-prop$$$gridX$$$setGridXint -->
<h3 class="fn"><a name="gridX-prop"></a><span class="name">gridX</span> : <span class="type">int</span></h3>
<p>This property holds the horizontal grid of the icon view.</p>
<p>If the value is -1, (the default), <a href="q3iconview.html" class="compat">Q3IconView</a> computes suitable column widths based on the icon view's contents.</p>
<p>Note that setting a grid width overrides <a href="q3iconview.html#maxItemWidth-prop">setMaxItemWidth</a>().</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>gridX</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setGridX</b></span> ( int <i>rx</i> )</td></tr>
</table>
<!-- @@@gridX -->
<!-- $$$gridY-prop$$$gridY$$$setGridYint -->
<h3 class="fn"><a name="gridY-prop"></a><span class="name">gridY</span> : <span class="type">int</span></h3>
<p>This property holds the vertical grid of the icon view.</p>
<p>If the value is -1, (the default), <a href="q3iconview.html" class="compat">Q3IconView</a> computes suitable column heights based on the icon view's contents.</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>gridY</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setGridY</b></span> ( int <i>ry</i> )</td></tr>
</table>
<!-- @@@gridY -->
<!-- $$$itemTextBackground-prop$$$itemTextBackground$$$setItemTextBackgroundconstQBrush& -->
<h3 class="fn"><a name="itemTextBackground-prop"></a><span class="name">itemTextBackground</span> : <span class="type"><a href="qbrush.html">QBrush</a></span></h3>
<p>This property holds the brush to use when drawing the background of an item's text.</p>
<p>By default this brush is set to <a href="qt.html#BrushStyle-enum">Qt::NoBrush</a>, meaning that only the normal icon view background is used.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QBrush </td><td class="memItemRight bottomAlign"><span class="name"><b>itemTextBackground</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setItemTextBackground</b></span> ( const QBrush &amp; <i>b</i> )</td></tr>
</table>
<!-- @@@itemTextBackground -->
<!-- $$$itemTextPos-prop$$$itemTextPos$$$setItemTextPosItemTextPos -->
<h3 class="fn"><a name="itemTextPos-prop"></a><span class="name">itemTextPos</span> : <span class="type"><a href="q3iconview.html#ItemTextPos-enum">ItemTextPos</a></span></h3>
<p>This property holds the position where the text of each item is drawn.</p>
<p>Valid values are <a href="q3iconview.html#ItemTextPos-enum">Bottom</a> or <a href="q3iconview.html#ItemTextPos-enum">Right</a>. The default is <a href="q3iconview.html#ItemTextPos-enum">Bottom</a>.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> ItemTextPos </td><td class="memItemRight bottomAlign"><span class="name"><b>itemTextPos</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setItemTextPos</b></span> ( ItemTextPos <i>pos</i> )</td></tr>
</table>
<!-- @@@itemTextPos -->
<!-- $$$itemsMovable-prop$$$itemsMovable$$$setItemsMovablebool -->
<h3 class="fn"><a name="itemsMovable-prop"></a><span class="name">itemsMovable</span> : <span class="type">bool</span></h3>
<p>This property holds whether the user is allowed to move items around in the icon view.</p>
<p>The default is true.</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>itemsMovable</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setItemsMovable</b></span> ( bool <i>b</i> )</td></tr>
</table>
<!-- @@@itemsMovable -->
<!-- $$$maxItemTextLength-prop$$$maxItemTextLength$$$setMaxItemTextLengthint -->
<h3 class="fn"><a name="maxItemTextLength-prop"></a><span class="name">maxItemTextLength</span> : <span class="type">int</span></h3>
<p>This property holds the maximum length (in characters) that an item's text may have.</p>
<p>The default is 255 characters.</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>maxItemTextLength</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMaxItemTextLength</b></span> ( int <i>w</i> )</td></tr>
</table>
<!-- @@@maxItemTextLength -->
<!-- $$$maxItemWidth-prop$$$maxItemWidth$$$setMaxItemWidthint -->
<h3 class="fn"><a name="maxItemWidth-prop"></a><span class="name">maxItemWidth</span> : <span class="type">int</span></h3>
<p>This property holds the maximum width that an item may have.</p>
<p>The default is 100 pixels.</p>
<p>Note that if the <a href="q3iconview.html#gridX-prop">gridX</a>() value is set <a href="q3iconview.html" class="compat">Q3IconView</a> will ignore this property.</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>maxItemWidth</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMaxItemWidth</b></span> ( int <i>w</i> )</td></tr>
</table>
<!-- @@@maxItemWidth -->
<!-- $$$resizeMode-prop$$$resizeMode$$$setResizeModeResizeMode -->
<h3 class="fn"><a name="resizeMode-prop"></a><span class="name">resizeMode</span> : <span class="type"><a href="q3iconview.html#ResizeMode-enum">ResizeMode</a></span></h3>
<p>This property holds the resize mode of the icon view.</p>
<p>This can be <a href="q3iconview.html#ResizeMode-enum">Fixed</a> or <a href="q3iconview.html#ResizeMode-enum">Adjust</a>. The default is <a href="q3iconview.html#ResizeMode-enum">Fixed</a>. See <a href="q3iconview.html#ResizeMode-enum">ResizeMode</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"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setResizeMode</b></span> ( ResizeMode <i>am</i> )</td></tr>
</table>
<!-- @@@resizeMode -->
<!-- $$$selectionMode-prop$$$selectionMode$$$setSelectionModeSelectionMode -->
<h3 class="fn"><a name="selectionMode-prop"></a><span class="name">selectionMode</span> : <span class="type"><a href="q3iconview.html#SelectionMode-enum">SelectionMode</a></span></h3>
<p>This property holds the selection mode of the icon view.</p>
<p>This can be <a href="q3iconview.html#SelectionMode-enum">Single</a> (the default), <a href="q3iconview.html#SelectionMode-enum">Extended</a>, <a href="q3iconview.html#SelectionMode-enum">Multi</a> or <a href="q3iconview.html#SelectionMode-enum">NoSelection</a>.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> SelectionMode </td><td class="memItemRight bottomAlign"><span class="name"><b>selectionMode</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSelectionMode</b></span> ( SelectionMode <i>m</i> )</td></tr>
</table>
<!-- @@@selectionMode -->
<!-- $$$showToolTips-prop$$$showToolTips$$$setShowToolTipsbool -->
<h3 class="fn"><a name="showToolTips-prop"></a><span class="name">showToolTips</span> : <span class="type">bool</span></h3>
<p>This property holds whether the icon view will display a tool tip with the complete text for any truncated item text.</p>
<p>The default is true. Note that this has no effect if <a href="q3iconview.html#wordWrapIconText-prop">setWordWrapIconText</a>() is true, as it is by default.</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>showToolTips</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShowToolTips</b></span> ( bool <i>b</i> )</td></tr>
</table>
<!-- @@@showToolTips -->
<!-- $$$sortDirection-prop$$$sortDirection -->
<h3 class="fn"><a name="sortDirection-prop"></a><span class="name">sortDirection</span> : const <span class="type">bool</span></h3>
<p>This property holds whether the sort direction for inserting new items is ascending;.</p>
<p>The default is true (i.e&#x2e; ascending). This sort direction is only meaningful if both <a href="q3iconview.html#sorting-prop">sorting</a>() and <a href="q3iconview.html#autoArrange-prop">autoArrange</a>() are true.</p>
<p>To set the sort direction, use <a href="q3iconview.html#setSorting">setSorting</a>()</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>sortDirection</b></span> () const</td></tr>
</table>
<!-- @@@sortDirection -->
<!-- $$$sorting-prop$$$sorting -->
<h3 class="fn"><a name="sorting-prop"></a><span class="name">sorting</span> : const <span class="type">bool</span></h3>
<p>This property holds whether the icon view sorts on insertion.</p>
<p>The default is false, i.e&#x2e; no sorting on insertion.</p>
<p>To set the sorting, use <a href="q3iconview.html#setSorting">setSorting</a>().</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>sorting</b></span> () const</td></tr>
</table>
<!-- @@@sorting -->
<!-- $$$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 in pixels between icon view items.</p>
<p>The default is 5 pixels.</p>
<p>Negative values for spacing are illegal.</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"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpacing</b></span> ( int <i>sp</i> )</td></tr>
</table>
<!-- @@@spacing -->
<!-- $$$wordWrapIconText-prop$$$wordWrapIconText$$$setWordWrapIconTextbool -->
<h3 class="fn"><a name="wordWrapIconText-prop"></a><span class="name">wordWrapIconText</span> : <span class="type">bool</span></h3>
<p>This property holds whether the item text will be word-wrapped if it is too long.</p>
<p>The default is true.</p>
<p>If this property is false, icon text that is too long is truncated, and an ellipsis (..&#x2e;) appended to indicate that truncation has occurred. The full text can still be seen by the user if they hover the mouse because the full text is shown in a tooltip; see <a href="q3iconview.html#showToolTips-prop">setShowToolTips</a>().</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>wordWrapIconText</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setWordWrapIconText</b></span> ( bool <i>b</i> )</td></tr>
</table>
<!-- @@@wordWrapIconText -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$Q3IconView[overload1]$$$Q3IconViewQWidget*constchar*Qt::WindowFlags -->
<h3 class="fn"><a name="Q3IconView"></a>Q3IconView::<span class="name">Q3IconView</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0, const <span class="type">char</span> * <i>name</i> = 0, <span class="type"><a href="qt.html#WindowType-enum">Qt::WindowFlags</a></span> <i>f</i> = 0 )</h3>
<p>Constructs an empty icon view called <i>name</i>, with parent <i>parent</i> and using the widget flags <i>f</i>.</p>
<!-- @@@Q3IconView -->
<!-- $$$~Q3IconView[overload1]$$$~Q3IconView -->
<h3 class="fn"><a name="dtor.Q3IconView"></a>Q3IconView::<span class="name">~Q3IconView</span> ()<tt> [virtual]</tt></h3>
<p>Destroys the icon view and deletes all items.</p>
<!-- @@@~Q3IconView -->
<!-- $$$adjustItems[overload1]$$$adjustItems -->
<h3 class="fn"><a name="adjustItems"></a><span class="type">void</span> Q3IconView::<span class="name">adjustItems</span> ()<tt> [virtual protected slot]</tt></h3>
<p>Adjusts the positions of the items to the geometry of the icon view.</p>
<!-- @@@adjustItems -->
<!-- $$$arrangeItemsInGrid[overload1]$$$arrangeItemsInGridconstQSize&bool -->
<h3 class="fn"><a name="arrangeItemsInGrid"></a><span class="type">void</span> Q3IconView::<span class="name">arrangeItemsInGrid</span> ( const <span class="type"><a href="qsize.html">QSize</a></span> &amp; <i>grid</i>, <span class="type">bool</span> <i>update</i> = true )<tt> [virtual slot]</tt></h3>
<p>This variant uses <i>grid</i> instead of (<a href="q3iconview.html#gridX-prop">gridX</a>(), <a href="q3iconview.html#gridY-prop">gridY</a>()). If <i>grid</i> is invalid (see <a href="qsize.html#isValid">QSize::isValid</a>()), arrangeItemsInGrid() calculates a valid grid itself and uses that.</p>
<p>If <i>update</i> is true (the default) the viewport is repainted.</p>
<!-- @@@arrangeItemsInGrid -->
<!-- $$$arrangeItemsInGrid$$$arrangeItemsInGridbool -->
<h3 class="fn"><a name="arrangeItemsInGrid-2"></a><span class="type">void</span> Q3IconView::<span class="name">arrangeItemsInGrid</span> ( <span class="type">bool</span> <i>update</i> = true )<tt> [virtual slot]</tt></h3>
<p>This is an overloaded function.</p>
<p>Arranges all the items in the grid specified by <a href="q3iconview.html#gridX-prop">gridX</a>() and <a href="q3iconview.html#gridY-prop">gridY</a>().</p>
<p>Even if <a href="q3iconview.html#sorting-prop">sorting</a>() is enabled, the items are not sorted by this function. If you want to sort or rearrange the items, use iconview-&gt;sort(iconview-&gt;<a href="q3iconview.html#sortDirection-prop">sortDirection</a>()).</p>
<p>If <i>update</i> is true (the default), the viewport is repainted as well.</p>
<p><b>See also </b><a href="q3iconview.html#gridX-prop">Q3IconView::setGridX</a>(), <a href="q3iconview.html#gridY-prop">Q3IconView::setGridY</a>(), and <a href="q3iconview.html#sort">Q3IconView::sort</a>().</p>
<!-- @@@arrangeItemsInGrid -->
<!-- $$$changeEvent[overload1]$$$changeEventQEvent* -->
<h3 class="fn"><a name="changeEvent"></a><span class="type">void</span> Q3IconView::<span class="name">changeEvent</span> ( <span class="type"><a href="qevent.html">QEvent</a></span> * <i>ev</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#changeEvent">QWidget::changeEvent</a>().</p>
<!-- @@@changeEvent -->
<!-- $$$clear[overload1]$$$clear -->
<h3 class="fn"><a name="clear"></a><span class="type">void</span> Q3IconView::<span class="name">clear</span> ()<tt> [virtual]</tt></h3>
<p>Clears the icon view. All items are deleted.</p>
<!-- @@@clear -->
<!-- $$$clearSelection[overload1]$$$clearSelection -->
<h3 class="fn"><a name="clearSelection"></a><span class="type">void</span> Q3IconView::<span class="name">clearSelection</span> ()<tt> [virtual]</tt></h3>
<p>Unselects all the items.</p>
<!-- @@@clearSelection -->
<!-- $$$clicked[overload1]$$$clickedQ3IconViewItem* -->
<h3 class="fn"><a name="clicked"></a><span class="type">void</span> Q3IconView::<span class="name">clicked</span> ( <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>item</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the user clicks any mouse button. If <i>item</i> is non-null, the cursor is on <i>item</i>. If <i>item</i> is null, the mouse cursor isn't on any item.</p>
<p><b>See also </b><a href="q3iconview.html#mouseButtonClicked">mouseButtonClicked</a>(), <a href="q3iconview.html#rightButtonClicked">rightButtonClicked</a>(), and <a href="q3iconview.html#pressed">pressed</a>().</p>
<!-- @@@clicked -->
<!-- $$$clicked$$$clickedQ3IconViewItem*constQPoint& -->
<h3 class="fn"><a name="clicked-2"></a><span class="type">void</span> Q3IconView::<span class="name">clicked</span> ( <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>item</i>, const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>pos</i> )<tt> [signal]</tt></h3>
<p>This is an overloaded function.</p>
<p>This signal is emitted when the user clicks any mouse button on an icon view item. <i>item</i> is a pointer to the item that has been clicked.</p>
<p><i>pos</i> is the position of the mouse cursor in the global coordinate system (<a href="qmouseevent.html#globalPos">QMouseEvent::globalPos</a>()). (If the click's press and release differ by a pixel or two, <i>pos</i> is the position at release time.)</p>
<p><b>See also </b><a href="q3iconview.html#mouseButtonClicked">mouseButtonClicked</a>(), <a href="q3iconview.html#rightButtonClicked">rightButtonClicked</a>(), and <a href="q3iconview.html#pressed">pressed</a>().</p>
<!-- @@@clicked -->
<!-- $$$contentsContextMenuEvent[overload1]$$$contentsContextMenuEventQContextMenuEvent* -->
<h3 class="fn"><a name="contentsContextMenuEvent"></a><span class="type">void</span> Q3IconView::<span class="name">contentsContextMenuEvent</span> ( <span class="type"><a href="qcontextmenuevent.html">QContextMenuEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="q3scrollview.html#contentsContextMenuEvent">Q3ScrollView::contentsContextMenuEvent</a>().</p>
<!-- @@@contentsContextMenuEvent -->
<!-- $$$contentsDragEnterEvent[overload1]$$$contentsDragEnterEventQDragEnterEvent* -->
<h3 class="fn"><a name="contentsDragEnterEvent"></a><span class="type">void</span> Q3IconView::<span class="name">contentsDragEnterEvent</span> ( <span class="type"><a href="qdragenterevent.html">QDragEnterEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="q3scrollview.html#contentsDragEnterEvent">Q3ScrollView::contentsDragEnterEvent</a>().</p>
<!-- @@@contentsDragEnterEvent -->
<!-- $$$contentsDragLeaveEvent[overload1]$$$contentsDragLeaveEventQDragLeaveEvent* -->
<h3 class="fn"><a name="contentsDragLeaveEvent"></a><span class="type">void</span> Q3IconView::<span class="name">contentsDragLeaveEvent</span> ( <span class="type"><a href="qdragleaveevent.html">QDragLeaveEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="q3scrollview.html#contentsDragLeaveEvent">Q3ScrollView::contentsDragLeaveEvent</a>().</p>
<!-- @@@contentsDragLeaveEvent -->
<!-- $$$contentsDragMoveEvent[overload1]$$$contentsDragMoveEventQDragMoveEvent* -->
<h3 class="fn"><a name="contentsDragMoveEvent"></a><span class="type">void</span> Q3IconView::<span class="name">contentsDragMoveEvent</span> ( <span class="type"><a href="qdragmoveevent.html">QDragMoveEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="q3scrollview.html#contentsDragMoveEvent">Q3ScrollView::contentsDragMoveEvent</a>().</p>
<!-- @@@contentsDragMoveEvent -->
<!-- $$$contentsDropEvent[overload1]$$$contentsDropEventQDropEvent* -->
<h3 class="fn"><a name="contentsDropEvent"></a><span class="type">void</span> Q3IconView::<span class="name">contentsDropEvent</span> ( <span class="type"><a href="qdropevent.html">QDropEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="q3scrollview.html#contentsDropEvent">Q3ScrollView::contentsDropEvent</a>().</p>
<!-- @@@contentsDropEvent -->
<!-- $$$contentsMouseDoubleClickEvent[overload1]$$$contentsMouseDoubleClickEventQMouseEvent* -->
<h3 class="fn"><a name="contentsMouseDoubleClickEvent"></a><span class="type">void</span> Q3IconView::<span class="name">contentsMouseDoubleClickEvent</span> ( <span class="type"><a href="qmouseevent.html">QMouseEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="q3scrollview.html#contentsMouseDoubleClickEvent">Q3ScrollView::contentsMouseDoubleClickEvent</a>().</p>
<!-- @@@contentsMouseDoubleClickEvent -->
<!-- $$$contentsMouseMoveEvent[overload1]$$$contentsMouseMoveEventQMouseEvent* -->
<h3 class="fn"><a name="contentsMouseMoveEvent"></a><span class="type">void</span> Q3IconView::<span class="name">contentsMouseMoveEvent</span> ( <span class="type"><a href="qmouseevent.html">QMouseEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="q3scrollview.html#contentsMouseMoveEvent">Q3ScrollView::contentsMouseMoveEvent</a>().</p>
<!-- @@@contentsMouseMoveEvent -->
<!-- $$$contentsMousePressEvent[overload1]$$$contentsMousePressEventQMouseEvent* -->
<h3 class="fn"><a name="contentsMousePressEvent"></a><span class="type">void</span> Q3IconView::<span class="name">contentsMousePressEvent</span> ( <span class="type"><a href="qmouseevent.html">QMouseEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="q3scrollview.html#contentsMousePressEvent">Q3ScrollView::contentsMousePressEvent</a>().</p>
<!-- @@@contentsMousePressEvent -->
<!-- $$$contentsMouseReleaseEvent[overload1]$$$contentsMouseReleaseEventQMouseEvent* -->
<h3 class="fn"><a name="contentsMouseReleaseEvent"></a><span class="type">void</span> Q3IconView::<span class="name">contentsMouseReleaseEvent</span> ( <span class="type"><a href="qmouseevent.html">QMouseEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="q3scrollview.html#contentsMouseReleaseEvent">Q3ScrollView::contentsMouseReleaseEvent</a>().</p>
<!-- @@@contentsMouseReleaseEvent -->
<!-- $$$contextMenuRequested[overload1]$$$contextMenuRequestedQ3IconViewItem*constQPoint& -->
<h3 class="fn"><a name="contextMenuRequested"></a><span class="type">void</span> Q3IconView::<span class="name">contextMenuRequested</span> ( <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>item</i>, const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>pos</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the user invokes a context menu with the right mouse button or with special system keys, with <i>item</i> being the item under the mouse cursor or the current item, respectively.</p>
<p><i>pos</i> is the position for the context menu in the global coordinate system.</p>
<!-- @@@contextMenuRequested -->
<!-- $$$currentChanged[overload1]$$$currentChangedQ3IconViewItem* -->
<h3 class="fn"><a name="currentChanged"></a><span class="type">void</span> Q3IconView::<span class="name">currentChanged</span> ( <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>item</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when a new item becomes current. <i>item</i> is the new current item (or 0 if no item is now current).</p>
<p><b>See also </b><a href="q3iconview.html#currentItem">currentItem</a>().</p>
<!-- @@@currentChanged -->
<!-- $$$currentItem[overload1]$$$currentItem -->
<h3 class="fn"><a name="currentItem"></a><span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * Q3IconView::<span class="name">currentItem</span> () const</h3>
<p>Returns a pointer to the current item of the icon view, or 0 if no item is current.</p>
<p><b>See also </b><a href="q3iconview.html#setCurrentItem">setCurrentItem</a>(), <a href="q3iconview.html#firstItem">firstItem</a>(), and <a href="q3iconview.html#lastItem">lastItem</a>().</p>
<!-- @@@currentItem -->
<!-- $$$doAutoScroll[overload1]$$$doAutoScroll -->
<h3 class="fn"><a name="doAutoScroll"></a><span class="type">void</span> Q3IconView::<span class="name">doAutoScroll</span> ()<tt> [virtual protected slot]</tt></h3>
<p>Performs autoscrolling when selecting multiple icons with the rubber band.</p>
<!-- @@@doAutoScroll -->
<!-- $$$doubleClicked[overload1]$$$doubleClickedQ3IconViewItem* -->
<h3 class="fn"><a name="doubleClicked"></a><span class="type">void</span> Q3IconView::<span class="name">doubleClicked</span> ( <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>item</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the user double-clicks on <i>item</i>.</p>
<!-- @@@doubleClicked -->
<!-- $$$dragObject[overload1]$$$dragObject -->
<h3 class="fn"><a name="dragObject"></a><span class="type"><a href="q3dragobject.html">Q3DragObject</a></span> * Q3IconView::<span class="name">dragObject</span> ()<tt> [virtual protected]</tt></h3>
<p>Returns the <a href="q3dragobject.html" class="compat">Q3DragObject</a> that should be used for drag-and-drop. This function is called by the icon view when starting a drag to get the dragobject that should be used for the drag. Subclasses may reimplement this.</p>
<p><b>See also </b><a href="q3icondrag.html" class="compat">Q3IconDrag</a>.</p>
<!-- @@@dragObject -->
<!-- $$$drawBackground[overload1]$$$drawBackgroundQPainter*constQRect& -->
<h3 class="fn"><a name="drawBackground"></a><span class="type">void</span> Q3IconView::<span class="name">drawBackground</span> ( <span class="type"><a href="qpainter.html">QPainter</a></span> * <i>p</i>, const <span class="type"><a href="qrect.html">QRect</a></span> &amp; <i>r</i> )<tt> [virtual protected]</tt></h3>
<p>This function is called to draw the rectangle <i>r</i> of the background using the painter <i>p</i>.</p>
<p>The default implementation fills <i>r</i> with the viewport's backgroundBrush(). Subclasses can reimplement this to draw custom backgrounds.</p>
<p><b>See also </b><a href="q3iconview.html#drawContents">drawContents</a>().</p>
<!-- @@@drawBackground -->
<!-- $$$drawContents[overload1]$$$drawContentsQPainter*intintintint -->
<h3 class="fn"><a name="drawContents"></a><span class="type">void</span> Q3IconView::<span class="name">drawContents</span> ( <span class="type"><a href="qpainter.html">QPainter</a></span> * <i>p</i>, <span class="type">int</span> <i>cx</i>, <span class="type">int</span> <i>cy</i>, <span class="type">int</span> <i>cw</i>, <span class="type">int</span> <i>ch</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="q3scrollview.html#drawContents">Q3ScrollView::drawContents</a>().</p>
<!-- @@@drawContents -->
<!-- $$$drawRubber[overload1]$$$drawRubberQPainter* -->
<h3 class="fn"><a name="drawRubber"></a><span class="type">void</span> Q3IconView::<span class="name">drawRubber</span> ( <span class="type"><a href="qpainter.html">QPainter</a></span> * <i>p</i> )<tt> [virtual protected]</tt></h3>
<p>Draws the rubber band using the painter <i>p</i>.</p>
<!-- @@@drawRubber -->
<!-- $$$dropped[overload1]$$$droppedQDropEvent*constQ3ValueList<Q3IconDragItem>& -->
<h3 class="fn"><a name="dropped"></a><span class="type">void</span> Q3IconView::<span class="name">dropped</span> ( <span class="type"><a href="qdropevent.html">QDropEvent</a></span> * <i>e</i>, const <span class="type"><a href="q3valuelist.html">Q3ValueList</a></span>&lt;<span class="type"><a href="q3icondragitem.html">Q3IconDragItem</a></span>&gt; &amp; <i>lst</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when a drop event occurs in the viewport (but not on any icon) which the icon view itself can't handle.</p>
<p><i>e</i> provides all the information about the drop. If the drag object of the drop was a <a href="q3icondrag.html" class="compat">Q3IconDrag</a>, <i>lst</i> contains the list of the dropped items. You can get the data using <a href="q3icondragitem.html#data">Q3IconDragItem::data</a>() on each item. If the <i>lst</i> is empty, i.e&#x2e; the drag was not a <a href="q3icondrag.html" class="compat">Q3IconDrag</a>, you have to decode the data in <i>e</i> and work with that.</p>
<p>Note Q3IconViewItems may be drop targets; if a drop event occurs on an item the item handles the drop.</p>
<!-- @@@dropped -->
<!-- $$$emitSelectionChanged[overload1]$$$emitSelectionChangedQ3IconViewItem* -->
<h3 class="fn"><a name="emitSelectionChanged"></a><span class="type">void</span> Q3IconView::<span class="name">emitSelectionChanged</span> ( <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>i</i> = 0 )<tt> [protected]</tt></h3>
<p>Emits a signal to indicate selection changes. <i>i</i> is the <a href="q3iconviewitem.html" class="compat">Q3IconViewItem</a> that was selected or de-selected.</p>
<p><i>You should never need to call this function.</i></p>
<!-- @@@emitSelectionChanged -->
<!-- $$$ensureItemVisible[overload1]$$$ensureItemVisibleQ3IconViewItem* -->
<h3 class="fn"><a name="ensureItemVisible"></a><span class="type">void</span> Q3IconView::<span class="name">ensureItemVisible</span> ( <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>item</i> )</h3>
<p>Makes sure that <i>item</i> is entirely visible. If necessary, ensureItemVisible() scrolls the icon view.</p>
<p><b>See also </b><a href="q3scrollview.html#ensureVisible">ensureVisible</a>().</p>
<!-- @@@ensureItemVisible -->
<!-- $$$enterEvent[overload1]$$$enterEventQEvent* -->
<h3 class="fn"><a name="enterEvent"></a><span class="type">void</span> Q3IconView::<span class="name">enterEvent</span> ( <span class="type"><a href="qevent.html">QEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#enterEvent">QWidget::enterEvent</a>().</p>
<!-- @@@enterEvent -->
<!-- $$$eventFilter[overload1]$$$eventFilterQObject*QEvent* -->
<h3 class="fn"><a name="eventFilter"></a><span class="type">bool</span> Q3IconView::<span class="name">eventFilter</span> ( <span class="type"><a href="qobject.html">QObject</a></span> * <i>o</i>, <span class="type"><a href="qevent.html">QEvent</a></span> * <i>e</i> )<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qobject.html#eventFilter">QObject::eventFilter</a>().</p>
<!-- @@@eventFilter -->
<!-- $$$findFirstVisibleItem[overload1]$$$findFirstVisibleItemconstQRect& -->
<h3 class="fn"><a name="findFirstVisibleItem"></a><span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * Q3IconView::<span class="name">findFirstVisibleItem</span> ( const <span class="type"><a href="qrect.html">QRect</a></span> &amp; <i>r</i> ) const</h3>
<p>Finds the first item whose bounding rectangle overlaps <i>r</i> and returns a pointer to that item. <i>r</i> is given in content coordinates. Returns 0 if no item overlaps <i>r</i>.</p>
<p>If you want to find all items that touch <i>r</i>, you will need to use this function and nextItem() in a loop ending at <a href="q3iconview.html#findLastVisibleItem">findLastVisibleItem</a>() and test <a href="q3iconviewitem.html#rect">Q3IconViewItem::rect</a>() for each of these items.</p>
<p><b>See also </b><a href="q3iconview.html#findLastVisibleItem">findLastVisibleItem</a>() and <a href="q3iconviewitem.html#rect">Q3IconViewItem::rect</a>().</p>
<!-- @@@findFirstVisibleItem -->
<!-- $$$findItem[overload1]$$$findItemconstQPoint& -->
<h3 class="fn"><a name="findItem"></a><span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * Q3IconView::<span class="name">findItem</span> ( const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>pos</i> ) const</h3>
<p>Returns a pointer to the item that contains point <i>pos</i>, which is given in contents coordinates, or 0 if no item contains point <i>pos</i>.</p>
<!-- @@@findItem -->
<!-- $$$findItem$$$findItemconstQString&ComparisonFlags -->
<h3 class="fn"><a name="findItem-3"></a><span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * Q3IconView::<span class="name">findItem</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i>, <span class="type"><a href="q3iconview.html#ComparisonFlags-typedef">ComparisonFlags</a></span> <i>compare</i> = BeginsWith | Qt::CaseSensitive ) const</h3>
<p>This is an overloaded function.</p>
<p>Returns a pointer to the first item whose text begins with <i>text</i>, or 0 if no such item could be found. Use the <i>compare</i> flag to control the comparison behavior.</p>
<!-- @@@findItem -->
<!-- $$$findLastVisibleItem[overload1]$$$findLastVisibleItemconstQRect& -->
<h3 class="fn"><a name="findLastVisibleItem"></a><span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * Q3IconView::<span class="name">findLastVisibleItem</span> ( const <span class="type"><a href="qrect.html">QRect</a></span> &amp; <i>r</i> ) const</h3>
<p>Finds the last item whose bounding rectangle overlaps <i>r</i> and returns a pointer to that item. <i>r</i> is given in content coordinates. Returns 0 if no item overlaps <i>r</i>.</p>
<p><b>See also </b><a href="q3iconview.html#findFirstVisibleItem">findFirstVisibleItem</a>().</p>
<!-- @@@findLastVisibleItem -->
<!-- $$$firstItem[overload1]$$$firstItem -->
<h3 class="fn"><a name="firstItem"></a><span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * Q3IconView::<span class="name">firstItem</span> () const</h3>
<p>Returns a pointer to the first item of the icon view, or 0 if there are no items in the icon view.</p>
<p><b>See also </b><a href="q3iconview.html#lastItem">lastItem</a>() and <a href="q3iconview.html#currentItem">currentItem</a>().</p>
<!-- @@@firstItem -->
<!-- $$$focusInEvent[overload1]$$$focusInEventQFocusEvent* -->
<h3 class="fn"><a name="focusInEvent"></a><span class="type">void</span> Q3IconView::<span class="name">focusInEvent</span> ( <span class="type"><a href="qfocusevent.html">QFocusEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#focusInEvent">QWidget::focusInEvent</a>().</p>
<!-- @@@focusInEvent -->
<!-- $$$focusOutEvent[overload1]$$$focusOutEventQFocusEvent* -->
<h3 class="fn"><a name="focusOutEvent"></a><span class="type">void</span> Q3IconView::<span class="name">focusOutEvent</span> ( <span class="type"><a href="qfocusevent.html">QFocusEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#focusOutEvent">QWidget::focusOutEvent</a>().</p>
<!-- @@@focusOutEvent -->
<!-- $$$index[overload1]$$$indexconstQ3IconViewItem* -->
<h3 class="fn"><a name="index"></a><span class="type">int</span> Q3IconView::<span class="name">index</span> ( const <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>item</i> ) const</h3>
<p>Returns the index of <i>item</i>, or -1 if <i>item</i> doesn't exist in this icon view.</p>
<!-- @@@index -->
<!-- $$$inputMethodQuery[overload1]$$$inputMethodQueryQt::InputMethodQuery -->
<h3 class="fn"><a name="inputMethodQuery"></a><span class="type"><a href="qvariant.html">QVariant</a></span> Q3IconView::<span class="name">inputMethodQuery</span> ( <span class="type"><a href="qt.html#InputMethodQuery-enum">Qt::InputMethodQuery</a></span> <i>query</i> ) const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#inputMethodQuery">QWidget::inputMethodQuery</a>().</p>
<!-- @@@inputMethodQuery -->
<!-- $$$insertInGrid[overload1]$$$insertInGridQ3IconViewItem* -->
<h3 class="fn"><a name="insertInGrid"></a><span class="type">void</span> Q3IconView::<span class="name">insertInGrid</span> ( <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>item</i> )<tt> [virtual protected]</tt></h3>
<p>Inserts the <a href="q3iconviewitem.html" class="compat">Q3IconViewItem</a> <i>item</i> in the icon view's grid. <i>You should never need to call this function.</i> Instead, insert Q3IconViewItems by creating them with a pointer to the <a href="q3iconview.html" class="compat">Q3IconView</a> that they are to be inserted into.</p>
<!-- @@@insertInGrid -->
<!-- $$$insertItem[overload1]$$$insertItemQ3IconViewItem*Q3IconViewItem* -->
<h3 class="fn"><a name="insertItem"></a><span class="type">void</span> Q3IconView::<span class="name">insertItem</span> ( <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>item</i>, <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>after</i> = 0L )<tt> [virtual]</tt></h3>
<p>Inserts the icon view item <i>item</i> after <i>after</i>. If <i>after</i> is 0, <i>item</i> is appended after the last item.</p>
<p><i>You should never need to call this function.</i> Instead create <a href="q3iconviewitem.html" class="compat">Q3IconViewItem</a>'s and associate them with your icon view like this:</p>
<pre class="cpp"> (<span class="type">void</span>) <span class="keyword">new</span> <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span>(myIconview<span class="operator">,</span> <span class="string">&quot;The text of the item&quot;</span><span class="operator">,</span> aPixmap);</pre>
<!-- @@@insertItem -->
<!-- $$$invertSelection[overload1]$$$invertSelection -->
<h3 class="fn"><a name="invertSelection"></a><span class="type">void</span> Q3IconView::<span class="name">invertSelection</span> ()<tt> [virtual]</tt></h3>
<p>Inverts the selection. Works only in Multi and Extended selection mode.</p>
<!-- @@@invertSelection -->
<!-- $$$isRenaming[overload1]$$$isRenaming -->
<h3 class="fn"><a name="isRenaming"></a><span class="type">bool</span> Q3IconView::<span class="name">isRenaming</span> () const</h3>
<p>Returns true if an iconview item is being renamed; otherwise returns false.</p>
<!-- @@@isRenaming -->
<!-- $$$itemRenamed[overload1]$$$itemRenamedQ3IconViewItem*constQString& -->
<h3 class="fn"><a name="itemRenamed"></a><span class="type">void</span> Q3IconView::<span class="name">itemRenamed</span> ( <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>item</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>name</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when <i>item</i> has been renamed to <i>name</i>, usually by in-place renaming.</p>
<p><b>See also </b><a href="q3iconviewitem.html#setRenameEnabled">Q3IconViewItem::setRenameEnabled</a>() and <a href="q3iconviewitem.html#rename">Q3IconViewItem::rename</a>().</p>
<!-- @@@itemRenamed -->
<!-- $$$itemRenamed$$$itemRenamedQ3IconViewItem* -->
<h3 class="fn"><a name="itemRenamed-2"></a><span class="type">void</span> Q3IconView::<span class="name">itemRenamed</span> ( <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>item</i> )<tt> [signal]</tt></h3>
<p>This is an overloaded function.</p>
<p>This signal is emitted when <i>item</i> has been renamed, usually by in-place renaming.</p>
<p><b>See also </b><a href="q3iconviewitem.html#setRenameEnabled">Q3IconViewItem::setRenameEnabled</a>() and <a href="q3iconviewitem.html#rename">Q3IconViewItem::rename</a>().</p>
<!-- @@@itemRenamed -->
<!-- $$$keyPressEvent[overload1]$$$keyPressEventQKeyEvent* -->
<h3 class="fn"><a name="keyPressEvent"></a><span class="type">void</span> Q3IconView::<span class="name">keyPressEvent</span> ( <span class="type"><a href="qkeyevent.html">QKeyEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#keyPressEvent">QWidget::keyPressEvent</a>().</p>
<!-- @@@keyPressEvent -->
<!-- $$$lastItem[overload1]$$$lastItem -->
<h3 class="fn"><a name="lastItem"></a><span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * Q3IconView::<span class="name">lastItem</span> () const</h3>
<p>Returns a pointer to the last item of the icon view, or 0 if there are no items in the icon view.</p>
<p><b>See also </b><a href="q3iconview.html#firstItem">firstItem</a>() and <a href="q3iconview.html#currentItem">currentItem</a>().</p>
<!-- @@@lastItem -->
<!-- $$$makeRowLayout[overload1]$$$makeRowLayoutQ3IconViewItem*int&bool& -->
<h3 class="fn"><a name="makeRowLayout"></a><span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * Q3IconView::<span class="name">makeRowLayout</span> ( <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>begin</i>, <span class="type">int</span> &amp; <i>y</i>, <span class="type">bool</span> &amp; <i>changed</i> )<tt> [protected]</tt></h3>
<p>Lays out a row of icons (if Arrangement == <a href="q3iconview.html#Arrangement-enum">TopToBottom</a> this is a column). Starts laying out with the item <i>begin</i>. <i>y</i> is the starting coordinate. Returns the last item of the row (column) and sets the new starting coordinate to <i>y</i>. The <i>changed</i> parameter is used internally.</p>
<p><b>Warning:</b> This function may be made private in a future version of Qt. We do not recommend calling it.</p>
<!-- @@@makeRowLayout -->
<!-- $$$minimumSizeHint[overload1]$$$minimumSizeHint -->
<h3 class="fn"><a name="minimumSizeHint"></a><span class="type"><a href="qsize.html">QSize</a></span> Q3IconView::<span class="name">minimumSizeHint</span> () const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#minimumSizeHint-prop">QWidget::minimumSizeHint</a>().</p>
<!-- @@@minimumSizeHint -->
<!-- $$$mouseButtonClicked[overload1]$$$mouseButtonClickedintQ3IconViewItem*constQPoint& -->
<h3 class="fn"><a name="mouseButtonClicked"></a><span class="type">void</span> Q3IconView::<span class="name">mouseButtonClicked</span> ( <span class="type">int</span> <i>button</i>, <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>item</i>, const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>pos</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the user clicks mouse button <i>button</i>. If <i>item</i> is non-null, the cursor is on <i>item</i>. If <i>item</i> is null, the mouse cursor isn't on any item.</p>
<p><i>pos</i> is the position of the mouse cursor in the global coordinate system (<a href="qmouseevent.html#globalPos">QMouseEvent::globalPos</a>()). (If the click's press and release differ by a pixel or two, <i>pos</i> is the position at release time.)</p>
<p><b>See also </b><a href="q3iconview.html#mouseButtonPressed">mouseButtonPressed</a>(), <a href="q3iconview.html#rightButtonClicked">rightButtonClicked</a>(), and <a href="q3iconview.html#clicked">clicked</a>().</p>
<!-- @@@mouseButtonClicked -->
<!-- $$$mouseButtonPressed[overload1]$$$mouseButtonPressedintQ3IconViewItem*constQPoint& -->
<h3 class="fn"><a name="mouseButtonPressed"></a><span class="type">void</span> Q3IconView::<span class="name">mouseButtonPressed</span> ( <span class="type">int</span> <i>button</i>, <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>item</i>, const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>pos</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the user presses mouse button <i>button</i>. If <i>item</i> is non-null, the cursor is on <i>item</i>. If <i>item</i> is null, the mouse cursor isn't on any item.</p>
<p><i>pos</i> is the position of the mouse cursor in the global coordinate system (<a href="qmouseevent.html#globalPos">QMouseEvent::globalPos</a>()).</p>
<p><b>See also </b><a href="q3iconview.html#rightButtonClicked">rightButtonClicked</a>(), <a href="q3iconview.html#mouseButtonClicked">mouseButtonClicked</a>(), and <a href="q3iconview.html#pressed">pressed</a>().</p>
<!-- @@@mouseButtonPressed -->
<!-- $$$moved[overload1]$$$moved -->
<h3 class="fn"><a name="moved"></a><span class="type">void</span> Q3IconView::<span class="name">moved</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted after successfully dropping one (or more) items of the icon view. If the items should be removed, it's best to do so in a slot connected to this signal.</p>
<!-- @@@moved -->
<!-- $$$onItem[overload1]$$$onItemQ3IconViewItem* -->
<h3 class="fn"><a name="onItem"></a><span class="type">void</span> Q3IconView::<span class="name">onItem</span> ( <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>item</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the user moves the mouse cursor onto an <i>item</i>, similar to the <a href="qwidget.html#enterEvent">QWidget::enterEvent</a>() function.</p>
<!-- @@@onItem -->
<!-- $$$onViewport[overload1]$$$onViewport -->
<h3 class="fn"><a name="onViewport"></a><span class="type">void</span> Q3IconView::<span class="name">onViewport</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted when the user moves the mouse cursor from an item to an empty part of the icon view.</p>
<p><b>See also </b><a href="q3iconview.html#onItem">onItem</a>().</p>
<!-- @@@onViewport -->
<!-- $$$pressed[overload1]$$$pressedQ3IconViewItem* -->
<h3 class="fn"><a name="pressed"></a><span class="type">void</span> Q3IconView::<span class="name">pressed</span> ( <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>item</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the user presses any mouse button. If <i>item</i> is non-null, the cursor is on <i>item</i>. If <i>item</i> is null, the mouse cursor isn't on any item.</p>
<p><b>See also </b><a href="q3iconview.html#mouseButtonPressed">mouseButtonPressed</a>(), <a href="q3iconview.html#rightButtonPressed">rightButtonPressed</a>(), and <a href="q3iconview.html#clicked">clicked</a>().</p>
<!-- @@@pressed -->
<!-- $$$pressed$$$pressedQ3IconViewItem*constQPoint& -->
<h3 class="fn"><a name="pressed-2"></a><span class="type">void</span> Q3IconView::<span class="name">pressed</span> ( <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>item</i>, const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>pos</i> )<tt> [signal]</tt></h3>
<p>This is an overloaded function.</p>
<p>This signal is emitted when the user presses any mouse button. If <i>item</i> is non-null, the cursor is on <i>item</i>. If <i>item</i> is null, the mouse cursor isn't on any item.</p>
<p><i>pos</i> is the position of the mouse cursor in the global coordinate system (<a href="qmouseevent.html#globalPos">QMouseEvent::globalPos</a>()). (If the click's press and release differ by a pixel or two, <i>pos</i> is the position at release time.)</p>
<p><b>See also </b><a href="q3iconview.html#mouseButtonPressed">mouseButtonPressed</a>(), <a href="q3iconview.html#rightButtonPressed">rightButtonPressed</a>(), and <a href="q3iconview.html#clicked">clicked</a>().</p>
<!-- @@@pressed -->
<!-- $$$repaintItem[overload1]$$$repaintItemQ3IconViewItem* -->
<h3 class="fn"><a name="repaintItem"></a><span class="type">void</span> Q3IconView::<span class="name">repaintItem</span> ( <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>item</i> )<tt> [virtual]</tt></h3>
<p>Repaints the <i>item</i>.</p>
<!-- @@@repaintItem -->
<!-- $$$repaintSelectedItems[overload1]$$$repaintSelectedItems -->
<h3 class="fn"><a name="repaintSelectedItems"></a><span class="type">void</span> Q3IconView::<span class="name">repaintSelectedItems</span> ()</h3>
<p>Repaints the selected items.</p>
<!-- @@@repaintSelectedItems -->
<!-- $$$resizeEvent[overload1]$$$resizeEventQResizeEvent* -->
<h3 class="fn"><a name="resizeEvent"></a><span class="type">void</span> Q3IconView::<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 -->
<!-- $$$returnPressed[overload1]$$$returnPressedQ3IconViewItem* -->
<h3 class="fn"><a name="returnPressed"></a><span class="type">void</span> Q3IconView::<span class="name">returnPressed</span> ( <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>item</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted if the user presses the Return or Enter key. <i>item</i> is the <a href="q3iconview.html#currentItem">currentItem</a>() at the time of the keypress.</p>
<!-- @@@returnPressed -->
<!-- $$$rightButtonClicked[overload1]$$$rightButtonClickedQ3IconViewItem*constQPoint& -->
<h3 class="fn"><a name="rightButtonClicked"></a><span class="type">void</span> Q3IconView::<span class="name">rightButtonClicked</span> ( <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>item</i>, const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>pos</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the user clicks the right mouse button. If <i>item</i> is non-null, the cursor is on <i>item</i>. If <i>item</i> is null, the mouse cursor isn't on any item.</p>
<p><i>pos</i> is the position of the mouse cursor in the global coordinate system (<a href="qmouseevent.html#globalPos">QMouseEvent::globalPos</a>()). (If the click's press and release differ by a pixel or two, <i>pos</i> is the position at release time.)</p>
<p><b>See also </b><a href="q3iconview.html#rightButtonPressed">rightButtonPressed</a>(), <a href="q3iconview.html#mouseButtonClicked">mouseButtonClicked</a>(), and <a href="q3iconview.html#clicked">clicked</a>().</p>
<!-- @@@rightButtonClicked -->
<!-- $$$rightButtonPressed[overload1]$$$rightButtonPressedQ3IconViewItem*constQPoint& -->
<h3 class="fn"><a name="rightButtonPressed"></a><span class="type">void</span> Q3IconView::<span class="name">rightButtonPressed</span> ( <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>item</i>, const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>pos</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the user presses the right mouse button. If <i>item</i> is non-null, the cursor is on <i>item</i>. If <i>item</i> is null, the mouse cursor isn't on any item.</p>
<p><i>pos</i> is the position of the mouse cursor in the global coordinate system (<a href="qmouseevent.html#globalPos">QMouseEvent::globalPos</a>()).</p>
<!-- @@@rightButtonPressed -->
<!-- $$$selectAll[overload1]$$$selectAllbool -->
<h3 class="fn"><a name="selectAll"></a><span class="type">void</span> Q3IconView::<span class="name">selectAll</span> ( <span class="type">bool</span> <i>select</i> )<tt> [virtual]</tt></h3>
<p>In Multi and Extended modes, this function sets all items to be selected if <i>select</i> is true, and to be unselected if <i>select</i> is false.</p>
<p>In Single and <a href="q3iconview.html#SelectionMode-enum">NoSelection</a> modes, this function only changes the selection status of <a href="q3iconview.html#currentItem">currentItem</a>().</p>
<!-- @@@selectAll -->
<!-- $$$selectionChanged[overload1]$$$selectionChanged -->
<h3 class="fn"><a name="selectionChanged"></a><span class="type">void</span> Q3IconView::<span class="name">selectionChanged</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted when the selection has been changed. It's emitted in each selection mode.</p>
<!-- @@@selectionChanged -->
<!-- $$$selectionChanged$$$selectionChangedQ3IconViewItem* -->
<h3 class="fn"><a name="selectionChanged-2"></a><span class="type">void</span> Q3IconView::<span class="name">selectionChanged</span> ( <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>item</i> )<tt> [signal]</tt></h3>
<p>This is an overloaded function.</p>
<p>This signal is emitted when the selection changes. <i>item</i> is the newly selected item. This signal is emitted only in single selection mode.</p>
<!-- @@@selectionChanged -->
<!-- $$$setContentsPos[overload1]$$$setContentsPosintint -->
<h3 class="fn"><a name="setContentsPos"></a><span class="type">void</span> Q3IconView::<span class="name">setContentsPos</span> ( <span class="type">int</span> <i>x</i>, <span class="type">int</span> <i>y</i> )<tt> [virtual slot]</tt></h3>
<p>Reimplemented from <a href="q3scrollview.html#setContentsPos">Q3ScrollView::setContentsPos</a>().</p>
<!-- @@@setContentsPos -->
<!-- $$$setCurrentItem[overload1]$$$setCurrentItemQ3IconViewItem* -->
<h3 class="fn"><a name="setCurrentItem"></a><span class="type">void</span> Q3IconView::<span class="name">setCurrentItem</span> ( <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>item</i> )<tt> [virtual]</tt></h3>
<p>Makes <i>item</i> the new current item of the icon view.</p>
<p><b>See also </b><a href="q3iconview.html#currentItem">currentItem</a>().</p>
<!-- @@@setCurrentItem -->
<!-- $$$setSelected[overload1]$$$setSelectedQ3IconViewItem*boolbool -->
<h3 class="fn"><a name="setSelected"></a><span class="type">void</span> Q3IconView::<span class="name">setSelected</span> ( <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>item</i>, <span class="type">bool</span> <i>s</i>, <span class="type">bool</span> <i>cb</i> = false )<tt> [virtual]</tt></h3>
<p>Selects or unselects <i>item</i> depending on <i>s</i>, and may also unselect other items, depending on <a href="q3iconview.html#selectionMode-prop">Q3IconView::selectionMode</a>() and <i>cb</i>.</p>
<p>If <i>s</i> is false, <i>item</i> is unselected.</p>
<p>If <i>s</i> is true and <a href="q3iconview.html#selectionMode-prop">Q3IconView::selectionMode</a>() is <a href="q3iconview.html#SelectionMode-enum">Single</a>, <i>item</i> is selected, and the item which was selected is unselected.</p>
<p>If <i>s</i> is true and <a href="q3iconview.html#selectionMode-prop">Q3IconView::selectionMode</a>() is <a href="q3iconview.html#SelectionMode-enum">Extended</a>, <i>item</i> is selected. If <i>cb</i> is true, the selection state of the icon view's other items is left unchanged. If <i>cb</i> is false (the default) all other items are unselected.</p>
<p>If <i>s</i> is true and <a href="q3iconview.html#selectionMode-prop">Q3IconView::selectionMode</a>() is <a href="q3iconview.html#SelectionMode-enum">Multi</a> <i>item</i> is selected.</p>
<p>Note that <i>cb</i> is used only if <a href="q3iconview.html#selectionMode-prop">Q3IconView::selectionMode</a>() is <a href="q3iconview.html#SelectionMode-enum">Extended</a>. <i>cb</i> defaults to false.</p>
<p>All items whose selection status is changed repaint themselves.</p>
<!-- @@@setSelected -->
<!-- $$$setSorting[overload1]$$$setSortingboolbool -->
<h3 class="fn"><a name="setSorting"></a><span class="type">void</span> Q3IconView::<span class="name">setSorting</span> ( <span class="type">bool</span> <i>sort</i>, <span class="type">bool</span> <i>ascending</i> = true )</h3>
<p>If <i>sort</i> is true, this function sets the icon view to sort items when a new item is inserted. If <i>sort</i> is false, the icon view will not be sorted.</p>
<p>Note that <a href="q3iconview.html#autoArrange-prop">autoArrange</a>() must be true for sorting to take place.</p>
<p>If <i>ascending</i> is true (the default), items are sorted in ascending order. If <i>ascending</i> is false, items are sorted in descending order.</p>
<p><a href="q3iconviewitem.html#compare">Q3IconViewItem::compare</a>() is used to compare pairs of items. The sorting is based on the items' keys; these default to the items' text unless specifically set to something else.</p>
<p><b>See also </b><a href="q3iconview.html#sorting-prop">sorting</a>(), <a href="q3iconview.html#autoArrange-prop">Q3IconView::setAutoArrange</a>(), <a href="q3iconview.html#autoArrange-prop">Q3IconView::autoArrange</a>(), <a href="q3iconview.html#sortDirection-prop">sortDirection</a>(), <a href="q3iconview.html#sort">sort</a>(), and <a href="q3iconviewitem.html#setKey">Q3IconViewItem::setKey</a>().</p>
<!-- @@@setSorting -->
<!-- $$$showEvent[overload1]$$$showEventQShowEvent* -->
<h3 class="fn"><a name="showEvent"></a><span class="type">void</span> Q3IconView::<span class="name">showEvent</span> ( <span class="type"><a href="qshowevent.html">QShowEvent</a></span> * )<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#showEvent">QWidget::showEvent</a>().</p>
<!-- @@@showEvent -->
<!-- $$$sizeHint[overload1]$$$sizeHint -->
<h3 class="fn"><a name="sizeHint"></a><span class="type"><a href="qsize.html">QSize</a></span> Q3IconView::<span class="name">sizeHint</span> () const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#sizeHint-prop">QWidget::sizeHint</a>().</p>
<!-- @@@sizeHint -->
<!-- $$$slotUpdate[overload1]$$$slotUpdate -->
<h3 class="fn"><a name="slotUpdate"></a><span class="type">void</span> Q3IconView::<span class="name">slotUpdate</span> ()<tt> [virtual protected slot]</tt></h3>
<p>This slot is used for a slightly-delayed update.</p>
<p>The icon view is not redrawn immediately after inserting a new item but after a very small delay using a <a href="qtimer.html">QTimer</a>. This means that when many items are inserted in a loop the icon view is probably redrawn only once at the end of the loop. This makes the insertions both flicker-free and faster.</p>
<!-- @@@slotUpdate -->
<!-- $$$sort[overload1]$$$sortbool -->
<h3 class="fn"><a name="sort"></a><span class="type">void</span> Q3IconView::<span class="name">sort</span> ( <span class="type">bool</span> <i>ascending</i> = true )<tt> [virtual]</tt></h3>
<p>Sorts and rearranges all the items in the icon view. If <i>ascending</i> is true, the items are sorted in increasing order, otherwise they are sorted in decreasing order.</p>
<p><a href="q3iconviewitem.html#compare">Q3IconViewItem::compare</a>() is used to compare pairs of items. The sorting is based on the items' keys; these default to the items' text unless specifically set to something else.</p>
<p>Note that this function sets the sort order to <i>ascending</i>.</p>
<p><b>See also </b><a href="q3iconviewitem.html#key">Q3IconViewItem::key</a>(), <a href="q3iconviewitem.html#setKey">Q3IconViewItem::setKey</a>(), <a href="q3iconviewitem.html#compare">Q3IconViewItem::compare</a>(), <a href="q3iconview.html#setSorting">Q3IconView::setSorting</a>(), and <a href="q3iconview.html#sortDirection-prop">Q3IconView::sortDirection</a>().</p>
<!-- @@@sort -->
<!-- $$$startDrag[overload1]$$$startDrag -->
<h3 class="fn"><a name="startDrag"></a><span class="type">void</span> Q3IconView::<span class="name">startDrag</span> ()<tt> [virtual protected]</tt></h3>
<p>Starts a drag.</p>
<!-- @@@startDrag -->
<!-- $$$takeItem[overload1]$$$takeItemQ3IconViewItem* -->
<h3 class="fn"><a name="takeItem"></a><span class="type">void</span> Q3IconView::<span class="name">takeItem</span> ( <span class="type"><a href="q3iconviewitem.html">Q3IconViewItem</a></span> * <i>item</i> )<tt> [virtual]</tt></h3>
<p>Takes the icon view item <i>item</i> out of the icon view and causes an update of the screen display. The item is not deleted. You should normally not need to call this function because Q3IconViewItem::~Q3IconViewItem() calls it. The normal way to delete an item is to delete it.</p>
<!-- @@@takeItem -->
</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>