Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > 8e6051afcdb111a0317a58fb64c2abf5 > files > 3416

qt4-doc-4.6.3-0.2mdv2010.2.i586.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- q3listbox.cpp -->
<head>
  <title>Qt 4.6: Q3ListBox Class Reference</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<a name="//apple_ref/cpp/cl//Q3ListBox"></a>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">All&nbsp;Functions</font></a>&nbsp;&middot; <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><h1 class="title">Q3ListBox Class Reference<br /><span class="small-subtitle">[<a href="qt3support.html">Qt3Support</a> module]</span>
</h1>
<p>The Q3ListBox widget provides a list of selectable, read-only items. <a href="#details">More...</a></p>
<pre> #include &lt;Q3ListBox&gt;</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#qlistbox">Porting to Qt 4</a> for more information.</p>
<p>Inherits <a href="q3scrollview.html">Q3ScrollView</a>.</p>
<ul>
<li><a href="q3listbox-members.html">List of all members, including inherited members</a></li>
</ul>
<hr />
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">typedef </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#ComparisonFlags-typedef">ComparisonFlags</a></b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#LayoutMode-enum">LayoutMode</a></b> { FixedNumber, FitToWidth, FitToHeight, Variable }</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#SelectionMode-enum">SelectionMode</a></b> { Single, Multi, Extended, NoSelection }</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#StringComparisonMode-enum">StringComparisonMode</a></b> { CaseSensitive, ExactMatch, BeginsWith, EndsWith, Contains }</td></tr>
</table>
<hr />
<a name="properties"></a>
<h2>Properties</h2>
<p><table class="propsummary" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td width="45%" valign="top"><ul>
<li><div class="fn"><b><a href="q3listbox.html#columnMode-prop">columnMode</a></b> : LayoutMode</div></li>
<li><div class="fn"><b><a href="q3listbox.html#count-prop">count</a></b> : const uint</div></li>
<li><div class="fn"><b><a href="q3listbox.html#currentItem-prop">currentItem</a></b> : int</div></li>
<li><div class="fn"><b><a href="q3listbox.html#currentText-prop">currentText</a></b> : const QString</div></li>
<li><div class="fn"><b><a href="q3listbox.html#multiSelection-prop">multiSelection</a></b> : bool</div></li>
<li><div class="fn"><b><a href="q3listbox.html#numColumns-prop">numColumns</a></b> : const int</div></li>
<li><div class="fn"><b><a href="q3listbox.html#numItemsVisible-prop">numItemsVisible</a></b> : const int</div></li>
</ul></td><td valign="top"><ul>
<li><div class="fn"><b><a href="q3listbox.html#numRows-prop">numRows</a></b> : const int</div></li>
<li><div class="fn"><b><a href="q3listbox.html#rowMode-prop">rowMode</a></b> : LayoutMode</div></li>
<li><div class="fn"><b><a href="q3listbox.html#selectionMode-prop">selectionMode</a></b> : SelectionMode</div></li>
<li><div class="fn"><b><a href="q3listbox.html#topItem-prop">topItem</a></b> : int</div></li>
<li><div class="fn"><b><a href="q3listbox.html#variableHeight-prop">variableHeight</a></b> : bool</div></li>
<li><div class="fn"><b><a href="q3listbox.html#variableWidth-prop">variableWidth</a></b> : bool</div></li>
</ul>
</td></tr>
</table></p>
<ul>
<li><div bar="2" class="fn"></div>10 properties inherited from <a href="q3scrollview.html#properties">Q3ScrollView</a></li>
<li><div bar="2" class="fn"></div>2 properties inherited from <a href="q3frame.html#properties">Q3Frame</a></li>
<li><div bar="2" class="fn"></div>6 properties inherited from <a href="qframe.html#properties">QFrame</a></li>
<li><div bar="2" class="fn"></div>58 properties inherited from <a href="qwidget.html#properties">QWidget</a></li>
<li><div bar="2" class="fn"></div>1 property inherited from <a href="qobject.html#properties">QObject</a></li>
</ul>
<hr />
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#Q3ListBox">Q3ListBox</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" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#dtor.Q3ListBox">~Q3ListBox</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#autoBottomScrollBar">autoBottomScrollBar</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#autoScroll">autoScroll</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#autoScrollBar">autoScrollBar</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#autoUpdate">autoUpdate</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#bottomScrollBar">bottomScrollBar</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#cellHeight">cellHeight</a></b> ( int <i>i</i> ) const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#cellHeight-2">cellHeight</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#cellWidth">cellWidth</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#cellWidth-2">cellWidth</a></b> ( int <i>i</i> ) const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#centerCurrentItem">centerCurrentItem</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#changeItem">changeItem</a></b> ( const Q3ListBoxItem * <i>lbi</i>, int <i>index</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#changeItem-2">changeItem</a></b> ( const QString &amp; <i>text</i>, int <i>index</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#changeItem-3">changeItem</a></b> ( const QPixmap &amp; <i>pixmap</i>, int <i>index</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#changeItem-4">changeItem</a></b> ( const QPixmap &amp; <i>pixmap</i>, const QString &amp; <i>text</i>, int <i>index</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">LayoutMode </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#columnMode-prop">columnMode</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#count-prop">count</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#currentItem-prop">currentItem</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#currentText-prop">currentText</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#dragSelect">dragSelect</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Q3ListBoxItem * </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#findItem">findItem</a></b> ( const QString &amp; <i>text</i>, ComparisonFlags <i>compare</i> = BeginsWith ) const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Q3ListBoxItem * </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#firstItem">firstItem</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#inSort">inSort</a></b> ( const Q3ListBoxItem * <i>lbi</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#inSort-2">inSort</a></b> ( const QString &amp; <i>text</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#index">index</a></b> ( const Q3ListBoxItem * <i>lbi</i> ) const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#insertItem">insertItem</a></b> ( const Q3ListBoxItem * <i>lbi</i>, int <i>index</i> = -1 )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#insertItem-2">insertItem</a></b> ( const Q3ListBoxItem * <i>lbi</i>, const Q3ListBoxItem * <i>after</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#insertItem-3">insertItem</a></b> ( const QString &amp; <i>text</i>, int <i>index</i> = -1 )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#insertItem-4">insertItem</a></b> ( const QPixmap &amp; <i>pixmap</i>, int <i>index</i> = -1 )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#insertItem-5">insertItem</a></b> ( const QPixmap &amp; <i>pixmap</i>, const QString &amp; <i>text</i>, int <i>index</i> = -1 )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#insertStrList">insertStrList</a></b> ( const char ** <i>strings</i>, int <i>numStrings</i> = -1, int <i>index</i> = -1 )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#insertStringList">insertStringList</a></b> ( const QStringList &amp; <i>list</i>, int <i>index</i> = -1 )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#multiSelection-prop">isMultiSelection</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#isSelected">isSelected</a></b> ( int <i>i</i> ) const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#isSelected-2">isSelected</a></b> ( const Q3ListBoxItem * <i>i</i> ) const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Q3ListBoxItem * </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#item">item</a></b> ( int <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Q3ListBoxItem * </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#itemAt">itemAt</a></b> ( const QPoint &amp; <i>p</i> ) const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#itemHeight">itemHeight</a></b> ( int <i>index</i> = 0 ) const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QRect </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#itemRect">itemRect</a></b> ( Q3ListBoxItem * <i>item</i> ) const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#itemVisible">itemVisible</a></b> ( int <i>index</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#itemVisible-2">itemVisible</a></b> ( const Q3ListBoxItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#maxItemWidth">maxItemWidth</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#numCols">numCols</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#numColumns-prop">numColumns</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#numItemsVisible-prop">numItemsVisible</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#numRows-prop">numRows</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const QPixmap * </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#pixmap">pixmap</a></b> ( int <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#removeItem">removeItem</a></b> ( int <i>index</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">LayoutMode </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#rowMode-prop">rowMode</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#scrollBar">scrollBar</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Q3ListBoxItem * </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#selectedItem">selectedItem</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">SelectionMode </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#selectionMode-prop">selectionMode</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#setAutoBottomScrollBar">setAutoBottomScrollBar</a></b> ( bool <i>enable</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#setAutoScroll">setAutoScroll</a></b> ( bool <i>b</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#setAutoScrollBar">setAutoScrollBar</a></b> ( bool <i>enable</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#setAutoUpdate">setAutoUpdate</a></b> ( bool <i>b</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#setBottomItem">setBottomItem</a></b> ( int <i>index</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#setBottomScrollBar">setBottomScrollBar</a></b> ( bool <i>enable</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#columnMode-prop">setColumnMode</a></b> ( LayoutMode )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#columnMode-prop">setColumnMode</a></b> ( int )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#currentItem-prop">setCurrentItem</a></b> ( int <i>index</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#currentItem-prop">setCurrentItem</a></b> ( Q3ListBoxItem * <i>i</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#setDragSelect">setDragSelect</a></b> ( bool <i>b</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#setFixedVisibleLines">setFixedVisibleLines</a></b> ( int <i>lines</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#multiSelection-prop">setMultiSelection</a></b> ( bool <i>multi</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#rowMode-prop">setRowMode</a></b> ( LayoutMode )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#rowMode-prop">setRowMode</a></b> ( int )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#setScrollBar">setScrollBar</a></b> ( bool <i>enable</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#setSelected">setSelected</a></b> ( Q3ListBoxItem * <i>item</i>, bool <i>select</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#setSelected-2">setSelected</a></b> ( int <i>index</i>, bool <i>select</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#selectionMode-prop">setSelectionMode</a></b> ( SelectionMode )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#setSmoothScrolling">setSmoothScrolling</a></b> ( bool <i>b</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#topItem-prop">setTopItem</a></b> ( int <i>index</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#variableHeight-prop">setVariableHeight</a></b> ( bool )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#variableWidth-prop">setVariableWidth</a></b> ( bool )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#smoothScrolling">smoothScrolling</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#sort">sort</a></b> ( bool <i>ascending</i> = true )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#takeItem">takeItem</a></b> ( const Q3ListBoxItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#text">text</a></b> ( int <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#topItem-prop">topItem</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#triggerUpdate">triggerUpdate</a></b> ( bool <i>doLayout</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#variableHeight-prop">variableHeight</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#variableWidth-prop">variableWidth</a></b> () const</td></tr>
</table>
<hr />
<a name="reimplemented-public-functions"></a>
<h2>Reimplemented Public Functions</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">virtual QVariant </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#inputMethodQuery">inputMethodQuery</a></b> ( Qt::InputMethodQuery <i>query</i> ) const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual QSize </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#minimumSizeHint">minimumSizeHint</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual QSize </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#sizeHint">sizeHint</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#viewportPaintEvent">viewportPaintEvent</a></b> ( QPaintEvent * <i>e</i> )</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>49 public functions inherited from <a href="q3scrollview.html#public-functions">Q3ScrollView</a></li>
<li><div bar="2" class="fn"></div>4 public functions inherited from <a href="q3frame.html#public-functions">Q3Frame</a></li>
<li><div bar="2" class="fn"></div>14 public functions inherited from <a href="qframe.html#public-functions">QFrame</a></li>
<li><div bar="2" class="fn"></div>217 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
<li><div bar="2" class="fn"></div>29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
<li><div bar="2" class="fn"></div>13 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<hr />
<a name="public-slots"></a>
<h2>Public Slots</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#clear">clear</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#clearSelection">clearSelection</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#ensureCurrentVisible">ensureCurrentVisible</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#invertSelection">invertSelection</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#selectAll">selectAll</a></b> ( bool <i>select</i> )</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>8 public slots inherited from <a href="q3scrollview.html#public-slots">Q3ScrollView</a></li>
<li><div bar="2" class="fn"></div>19 public slots inherited from <a href="qwidget.html#public-slots">QWidget</a></li>
<li><div bar="2" class="fn"></div>1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
</ul>
<hr />
<a name="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#clicked">clicked</a></b> ( Q3ListBoxItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#clicked-2">clicked</a></b> ( Q3ListBoxItem * <i>item</i>, const QPoint &amp; <i>pnt</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#contextMenuRequested">contextMenuRequested</a></b> ( Q3ListBoxItem * <i>item</i>, const QPoint &amp; <i>pos</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#currentChanged">currentChanged</a></b> ( Q3ListBoxItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#doubleClicked">doubleClicked</a></b> ( Q3ListBoxItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#highlighted">highlighted</a></b> ( int <i>index</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#highlighted-2">highlighted</a></b> ( Q3ListBoxItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#highlighted-3">highlighted</a></b> ( const QString &amp; <i>text</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#mouseButtonClicked">mouseButtonClicked</a></b> ( int <i>button</i>, Q3ListBoxItem * <i>item</i>, const QPoint &amp; <i>pos</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#mouseButtonPressed">mouseButtonPressed</a></b> ( int <i>button</i>, Q3ListBoxItem * <i>item</i>, const QPoint &amp; <i>pos</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#onItem">onItem</a></b> ( Q3ListBoxItem * <i>i</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#onViewport">onViewport</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#pressed">pressed</a></b> ( Q3ListBoxItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#pressed-2">pressed</a></b> ( Q3ListBoxItem * <i>item</i>, const QPoint &amp; <i>pnt</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#returnPressed">returnPressed</a></b> ( Q3ListBoxItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#rightButtonClicked">rightButtonClicked</a></b> ( Q3ListBoxItem * <i>item</i>, const QPoint &amp; <i>point</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#rightButtonPressed">rightButtonPressed</a></b> ( Q3ListBoxItem * <i>item</i>, const QPoint &amp; <i>point</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#selected">selected</a></b> ( int <i>index</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#selected-2">selected</a></b> ( Q3ListBoxItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#selected-3">selected</a></b> ( const QString &amp; <i>text</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#selectionChanged">selectionChanged</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#selectionChanged-2">selectionChanged</a></b> ( Q3ListBoxItem * <i>item</i> )</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>5 signals inherited from <a href="q3scrollview.html#signals">Q3ScrollView</a></li>
<li><div bar="2" class="fn"></div>1 signal inherited from <a href="qwidget.html#signals">QWidget</a></li>
<li><div bar="2" class="fn"></div>1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
</ul>
<hr />
<a name="protected-functions"></a>
<h2>Protected Functions</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#doLayout">doLayout</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#findItem-2">findItem</a></b> ( int <i>yPos</i> ) const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#isRubberSelecting">isRubberSelecting</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#paintCell">paintCell</a></b> ( QPainter * <i>p</i>, int <i>row</i>, int <i>col</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#toggleCurrentItem">toggleCurrentItem</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#totalHeight">totalHeight</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#totalWidth">totalWidth</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#updateCellWidth">updateCellWidth</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#updateItem">updateItem</a></b> ( int <i>index</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#updateItem-2">updateItem</a></b> ( Q3ListBoxItem * <i>i</i> )</td></tr>
</table>
<hr />
<a name="reimplemented-protected-functions"></a>
<h2>Reimplemented Protected Functions</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#changeEvent">changeEvent</a></b> ( QEvent * <i>ev</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#contentsContextMenuEvent">contentsContextMenuEvent</a></b> ( QContextMenuEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#eventFilter">eventFilter</a></b> ( QObject * <i>o</i>, QEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#focusInEvent">focusInEvent</a></b> ( QFocusEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#focusOutEvent">focusOutEvent</a></b> ( QFocusEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#keyPressEvent">keyPressEvent</a></b> ( QKeyEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#mouseDoubleClickEvent">mouseDoubleClickEvent</a></b> ( QMouseEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#mouseMoveEvent">mouseMoveEvent</a></b> ( QMouseEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#mousePressEvent">mousePressEvent</a></b> ( QMouseEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#mouseReleaseEvent">mouseReleaseEvent</a></b> ( QMouseEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#resizeEvent">resizeEvent</a></b> ( QResizeEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3listbox.html#showEvent">showEvent</a></b> ( QShowEvent * )</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>26 protected functions inherited from <a href="q3scrollview.html#protected-functions">Q3ScrollView</a></li>
<li><div bar="2" class="fn"></div>5 protected functions inherited from <a href="q3frame.html#protected-functions">Q3Frame</a></li>
<li><div bar="2" class="fn"></div>3 protected functions inherited from <a href="qframe.html#protected-functions">QFrame</a></li>
<li><div bar="2" class="fn"></div>37 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
<li><div bar="2" class="fn"></div>7 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
<li><div bar="2" class="fn"></div>1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li><div class="fn"></div>4 static public members inherited from <a href="qwidget.html#static-public-members">QWidget</a></li>
<li><div class="fn"></div>5 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
<li><div class="fn"></div>1 protected slot inherited from <a href="qwidget.html#protected-slots">QWidget</a></li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The Q3ListBox widget provides a list of selectable, read-only items.</p>
<p>This is typically a single-column list in which either no item or one item is selected, but it can also be used in many other ways.</p>
<p>Q3ListBox will add scroll bars as necessary, but it isn't intended for <i>really</i> big lists. If you want more than a few thousand items, it's probably better to use a different widget mainly because the scroll bars won't provide very good navigation, but also because Q3ListBox may become slow with huge lists. (See <a href="q3listview.html">Q3ListView</a> and <a href="q3table.html">Q3Table</a> for possible alternatives.)</p>
<p>There are a variety of selection modes described in the <a href="q3listbox.html#SelectionMode-enum">Q3ListBox::SelectionMode</a> documentation. The default is <a href="q3listbox.html#SelectionMode-enum">Single</a> selection mode, but you can change it using <a href="q3listbox.html#selectionMode-prop">setSelectionMode</a>(). (<a href="q3listbox.html#multiSelection-prop">setMultiSelection</a>() is still provided for compatibility with Qt 1.x&#x2e; We recommend using <a href="q3listbox.html#selectionMode-prop">setSelectionMode</a>() in all code.)</p>
<p>Because Q3ListBox offers multiple selection it must display keyboard focus and selection state separately. Therefore there are functions both to set the selection state of an item, i.e&#x2e; <a href="q3listbox.html#setSelected">setSelected</a>(), and to set which item displays keyboard focus, i.e&#x2e; <a href="q3listbox.html#currentItem-prop">setCurrentItem</a>().</p>
<p>The list box normally arranges its items in a single column and adds a vertical scroll bar if required. It is possible to have a different fixed number of columns (<a href="q3listbox.html#columnMode-prop">setColumnMode</a>()), or as many columns as will fit in the list box's assigned screen space (setColumnMode(<a href="q3listbox.html#LayoutMode-enum">FitToWidth</a>)), or to have a fixed number of rows (<a href="q3listbox.html#rowMode-prop">setRowMode</a>()) or as many rows as will fit in the list box's assigned screen space (setRowMode(<a href="q3listbox.html#LayoutMode-enum">FitToHeight</a>)). In all these cases Q3ListBox will add scroll bars, as appropriate, in at least one direction.</p>
<p>If multiple rows are used, each row can be as high as necessary (the normal setting), or you can request that all items will have the same height by calling setVariableHeight(false). The same applies to a column's width, see <a href="q3listbox.html#variableWidth-prop">setVariableWidth</a>().</p>
<p>The Q3ListBox's items are <a href="q3listboxitem.html">Q3ListBoxItem</a> objects. Q3ListBox provides methods to insert new items as strings, as pixmaps, and as <a href="q3listboxitem.html">Q3ListBoxItem</a> * (<a href="q3listbox.html#insertItem">insertItem</a>() with various arguments), and to replace an existing item with a new string, pixmap or <a href="q3listboxitem.html">Q3ListBoxItem</a> (<a href="q3listbox.html#changeItem">changeItem</a>() with various arguments). You can also remove items singly with <a href="q3listbox.html#removeItem">removeItem</a>() or <a href="q3listbox.html#clear">clear</a>() the entire list box. Note that if you create a <a href="q3listboxitem.html">Q3ListBoxItem</a> yourself and insert it, Q3ListBox takes ownership of the item.</p>
<p>You can also create a <a href="q3listboxitem.html">Q3ListBoxItem</a>, such as <a href="q3listboxtext.html">Q3ListBoxText</a> or <a href="q3listboxpixmap.html">Q3ListBoxPixmap</a>, with the list box as first parameter. The item will then append itself. When you delete an item it is automatically removed from the list box.</p>
<p>The list of items can be arbitrarily large; Q3ListBox will add scroll bars if necessary. Q3ListBox can display a single-column (the common case) or multiple-columns, and offers both single and multiple selection. Q3ListBox does not support multiple-column items (but <a href="q3listview.html">Q3ListView</a> and <a href="q3table.html">Q3Table</a> do), or tree hierarchies (but <a href="q3listview.html">Q3ListView</a> does).</p>
<p>The list box items can be accessed both as <a href="q3listboxitem.html">Q3ListBoxItem</a> objects (recommended) and using integer indexes (the original Q3ListBox implementation used an array of strings internally, and the API still supports this mode of operation). Everything can be done using the new objects, and most things can be done using indexes.</p>
<p>Each item in a Q3ListBox contains a <a href="q3listboxitem.html">Q3ListBoxItem</a>. One of the items can be the current item. The <a href="q3listbox.html#currentChanged">currentChanged</a>() signal and the <a href="q3listbox.html#highlighted">highlighted</a>() signal are emitted when a new item becomes current, e.g&#x2e; because the user clicks on it or <a href="q3listbox.html#currentItem-prop">Q3ListBox::setCurrentItem</a>() is called. The <a href="q3listbox.html#selected">selected</a>() signal is emitted when the user double-clicks on an item or presses Enter on the current item.</p>
<p>If the user does not select anything, no signals are emitted and <a href="q3listbox.html#currentItem-prop">currentItem</a>() returns -1.</p>
<p>A list box has <a href="qt.html#FocusPolicy-enum">Qt::WheelFocus</a> as a default <a href="qwidget.html#focusPolicy-prop">focusPolicy</a>(), i.e&#x2e; it can get keyboard focus by tabbing, clicking and through the use of the mouse wheel.</p>
<p>New items can be inserted using <a href="q3listbox.html#insertItem">insertItem</a>(), <a href="q3listbox.html#insertStrList">insertStrList</a>() or <a href="q3listbox.html#insertStringList">insertStringList</a>().</p>
<p>By default, vertical and horizontal scroll bars are added and removed as necessary. <a href="q3scrollview.html#hScrollBarMode-prop">setHScrollBarMode</a>() and <a href="q3scrollview.html#vScrollBarMode-prop">setVScrollBarMode</a>() can be used to change this policy.</p>
<p>If you need to insert types other than strings and pixmaps, you must define new classes which inherit <a href="q3listboxitem.html">Q3ListBoxItem</a>.</p>
<p><b>Warning:</b> The list box assumes ownership of all list box items and will delete them when it does not need them any more.</p>
<p><img src="images/qlistbox-m.png" alt="Screenshot in Motif style" /> <img src="images/qlistbox-w.png" alt="Screenshot in Windows style" /></p>
<p>See also <a href="q3listview.html">Q3ListView</a>, <a href="qcombobox.html">QComboBox</a>, and <a href="qbuttongroup.html">QButtonGroup</a>.</p>
<hr />
<h2>Member Type Documentation</h2>
<a name="//apple_ref/cpp/tdef/Q3ListBox/ComparisonFlags"></a>
<h3 class="fn"><a name="ComparisonFlags-typedef"></a>typedef Q3ListBox::ComparisonFlags</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="q3listbox.html#StringComparisonMode-enum">StringComparisonMode</a> values.</p>
<p>See also <a href="q3listbox.html#StringComparisonMode-enum">StringComparisonMode</a>.</p>
<a name="//apple_ref/cpp/tag/Q3ListBox/LayoutMode"></a>
<a name="//apple_ref/cpp/econst/Q3ListBox/FixedNumber"></a>
<a name="//apple_ref/cpp/econst/Q3ListBox/FitToWidth"></a>
<a name="//apple_ref/cpp/econst/Q3ListBox/FitToHeight"></a>
<a name="//apple_ref/cpp/econst/Q3ListBox/Variable"></a>
<h3 class="fn"><a name="LayoutMode-enum"></a>enum Q3ListBox::LayoutMode</h3>
<p>This enum type is used to specify how <a href="q3listbox.html" class="compat">Q3ListBox</a> lays out its rows and columns.</p>
<p><table class="valuelist" border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Q3ListBox::FixedNumber</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">There is a fixed number of rows (or columns).</td></tr>
<tr><td valign="top"><tt>Q3ListBox::FitToWidth</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">There are as many columns as will fit on-screen.</td></tr>
<tr><td valign="top"><tt>Q3ListBox::FitToHeight</tt></td><td align="center" valign="top"><tt>FitToWidth</tt></td><td valign="top">There are as many rows as will fit on-screen.</td></tr>
<tr><td valign="top"><tt>Q3ListBox::Variable</tt></td><td align="center" valign="top">?</td><td valign="top">There are as many rows as are required by the column mode. (Or as many columns as required by the row mode.)</td></tr>
</table></p>
<p>Example: When you call setRowMode(FitToHeight), <a href="q3listbox.html#columnMode-prop">columnMode</a>() automatically becomes <tt>Variable</tt> to accommodate the row mode you've set.</p>
<a name="//apple_ref/cpp/tag/Q3ListBox/SelectionMode"></a>
<a name="//apple_ref/cpp/econst/Q3ListBox/Single"></a>
<a name="//apple_ref/cpp/econst/Q3ListBox/Multi"></a>
<a name="//apple_ref/cpp/econst/Q3ListBox/Extended"></a>
<a name="//apple_ref/cpp/econst/Q3ListBox/NoSelection"></a>
<h3 class="fn"><a name="SelectionMode-enum"></a>enum Q3ListBox::SelectionMode</h3>
<p>This enumerated type is used by <a href="q3listbox.html" class="compat">Q3ListBox</a> to indicate how it reacts to selection by the user.</p>
<p><table class="valuelist" border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Q3ListBox::Single</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">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, even though the selection may be cleared by the application programmer using <a href="q3listbox.html#clearSelection">Q3ListBox::clearSelection</a>().</td></tr>
<tr><td valign="top"><tt>Q3ListBox::Multi</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">When the user selects an item the selection status of that item is toggled and the other items are left alone.</td></tr>
<tr><td valign="top"><tt>Q3ListBox::Extended</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">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. And 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 is kept pressed.</td></tr>
<tr><td valign="top"><tt>Q3ListBox::NoSelection</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">Items cannot be selected.</td></tr>
</table></p>
<p>In other words, <tt>Single</tt> is a real single-selection list box, <tt>Multi</tt> is a real multi-selection list box, <tt>Extended</tt> is a list box 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> is for a list box where the user can look but not touch.</p>
<a name="//apple_ref/cpp/tag/Q3ListBox/StringComparisonMode"></a>
<a name="//apple_ref/cpp/econst/Q3ListBox/CaseSensitive"></a>
<a name="//apple_ref/cpp/econst/Q3ListBox/ExactMatch"></a>
<a name="//apple_ref/cpp/econst/Q3ListBox/BeginsWith"></a>
<a name="//apple_ref/cpp/econst/Q3ListBox/EndsWith"></a>
<a name="//apple_ref/cpp/econst/Q3ListBox/Contains"></a>
<h3 class="fn"><a name="StringComparisonMode-enum"></a>enum Q3ListBox::StringComparisonMode</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>
<p><table class="valuelist" border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Q3ListBox::CaseSensitive</tt></td><td align="center" valign="top"><tt>0x00001</tt></td><td valign="top">The strings must match case sensitively.</td></tr>
<tr><td valign="top"><tt>Q3ListBox::ExactMatch</tt></td><td align="center" valign="top"><tt>0x00010</tt></td><td valign="top">The target and search strings must match exactly.</td></tr>
<tr><td valign="top"><tt>Q3ListBox::BeginsWith</tt></td><td align="center" valign="top"><tt>0x00002</tt></td><td valign="top">The target string begins with the search string.</td></tr>
<tr><td valign="top"><tt>Q3ListBox::EndsWith</tt></td><td align="center" valign="top"><tt>0x00004</tt></td><td valign="top">The target string ends with the search string.</td></tr>
<tr><td valign="top"><tt>Q3ListBox::Contains</tt></td><td align="center" valign="top"><tt>0x00008</tt></td><td valign="top">The target string contains the search string.</td></tr>
</table></p>
<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>See also <a href="q3listbox.html#ComparisonFlags-typedef">ComparisonFlags</a>.</p>
<hr />
<h2>Property Documentation</h2>
<a name="//apple_ref/cpp/instm/Q3ListBox/columnMode"></a>
<a name="//apple_ref/cpp/instm/Q3ListBox/setColumnMode"></a>
<h3 class="fn"><a name="columnMode-prop"></a>columnMode : <a href="q3listbox.html#LayoutMode-enum">LayoutMode</a></h3>
<p>This property holds the column layout mode for this list box.</p>
<p>setColumnMode() sets the layout mode and adjusts the number of displayed columns. The row layout mode automatically becomes <tt>Variable</tt>, unless the column mode is <tt>Variable</tt>.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">LayoutMode </td><td class="memItemRight" valign="bottom"><b>columnMode</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b>setColumnMode</b> ( LayoutMode )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b>setColumnMode</b> ( int )</td></tr>
</table>
<p>See also <a href="q3listbox.html#rowMode-prop">setRowMode</a>(), <a href="q3listbox.html#rowMode-prop">rowMode</a>, and <a href="q3listbox.html#numColumns-prop">numColumns</a>.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/count"></a>
<h3 class="fn"><a name="count-prop"></a>count : const <a href="qtglobal.html#uint-typedef">uint</a></h3>
<p>This property holds the number of items in the list box.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">uint </td><td class="memItemRight" valign="bottom"><b>count</b> () const</td></tr>
</table>
<a name="//apple_ref/cpp/instm/Q3ListBox/currentItem"></a>
<a name="//apple_ref/cpp/instm/Q3ListBox/setCurrentItem"></a>
<h3 class="fn"><a name="currentItem-prop"></a>currentItem : int</h3>
<p>This property holds the current highlighted item.</p>
<p>When setting this property, the highlighting is moved to the item and the list box scrolled as necessary.</p>
<p>If no item is current, currentItem() returns -1.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b>currentItem</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b>setCurrentItem</b> ( int <i>index</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b>setCurrentItem</b> ( Q3ListBoxItem * <i>i</i> )</td></tr>
</table>
<a name="//apple_ref/cpp/instm/Q3ListBox/currentText"></a>
<h3 class="fn"><a name="currentText-prop"></a>currentText : const <a href="qstring.html">QString</a></h3>
<p>This property holds the text of the current item.</p>
<p>This is equivalent to text(<a href="q3listbox.html#currentItem-prop">currentItem</a>()).</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><b>currentText</b> () const</td></tr>
</table>
<a name="//apple_ref/cpp/instm/Q3ListBox/isMultiSelection"></a>
<a name="//apple_ref/cpp/instm/Q3ListBox/setMultiSelection"></a>
<h3 class="fn"><a name="multiSelection-prop"></a>multiSelection : bool</h3>
<p>This property holds whether or not the list box is in Multi selection mode.</p>
<p>Consider using the <a href="q3listbox.html#selectionMode-prop">Q3ListBox::selectionMode</a> property instead of this property.</p>
<p>When setting this property, Multi selection mode is used if set to true and to Single selection mode if set to false.</p>
<p>When getting this property, true is returned if the list box is in Multi selection mode or Extended selection mode, and false if it is in Single selection mode or <a href="q3listbox.html#SelectionMode-enum">NoSelection</a> mode.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b>isMultiSelection</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setMultiSelection</b> ( bool <i>multi</i> )</td></tr>
</table>
<p>See also <a href="q3listbox.html#selectionMode-prop">selectionMode</a>.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/numColumns"></a>
<h3 class="fn"><a name="numColumns-prop"></a>numColumns : const int</h3>
<p>This property holds the number of columns in the list box.</p>
<p>This is normally 1, but can be different if <a href="q3listbox.html#columnMode-prop">Q3ListBox::columnMode</a> or <a href="q3listbox.html#rowMode-prop">Q3ListBox::rowMode</a> has been set.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b>numColumns</b> () const</td></tr>
</table>
<p>See also <a href="q3listbox.html#columnMode-prop">columnMode</a>, <a href="q3listbox.html#rowMode-prop">rowMode</a>, and <a href="q3listbox.html#numRows-prop">numRows</a>.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/numItemsVisible"></a>
<h3 class="fn"><a name="numItemsVisible-prop"></a>numItemsVisible : const int</h3>
<p>This property holds the number of visible items.</p>
<p>Both partially and entirely visible items are counted.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b>numItemsVisible</b> () const</td></tr>
</table>
<a name="//apple_ref/cpp/instm/Q3ListBox/numRows"></a>
<h3 class="fn"><a name="numRows-prop"></a>numRows : const int</h3>
<p>This property holds the number of rows in the list box.</p>
<p>This is equal to the number of items in the default single-column layout, but can be different.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b>numRows</b> () const</td></tr>
</table>
<p>See also <a href="q3listbox.html#columnMode-prop">columnMode</a>, <a href="q3listbox.html#rowMode-prop">rowMode</a>, and <a href="q3listbox.html#numColumns-prop">numColumns</a>.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/rowMode"></a>
<a name="//apple_ref/cpp/instm/Q3ListBox/setRowMode"></a>
<h3 class="fn"><a name="rowMode-prop"></a>rowMode : <a href="q3listbox.html#LayoutMode-enum">LayoutMode</a></h3>
<p>This property holds the row layout mode for this list box.</p>
<p>This property is normally <tt>Variable</tt>.</p>
<p>setRowMode() sets the layout mode and adjusts the number of displayed rows. The column layout mode automatically becomes <tt>Variable</tt>, unless the row mode is <tt>Variable</tt>.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">LayoutMode </td><td class="memItemRight" valign="bottom"><b>rowMode</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b>setRowMode</b> ( LayoutMode )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b>setRowMode</b> ( int )</td></tr>
</table>
<p>See also <a href="q3listbox.html#columnMode-prop">columnMode</a>.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/selectionMode"></a>
<a name="//apple_ref/cpp/instm/Q3ListBox/setSelectionMode"></a>
<h3 class="fn"><a name="selectionMode-prop"></a>selectionMode : <a href="q3listbox.html#SelectionMode-enum">SelectionMode</a></h3>
<p>This property holds the selection mode of the list box.</p>
<p>Sets the list box's selection mode, which may be one of <tt>Single</tt> (the default), <tt>Extended</tt>, <tt>Multi</tt> or <tt>NoSelection</tt>.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">SelectionMode </td><td class="memItemRight" valign="bottom"><b>selectionMode</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b>setSelectionMode</b> ( SelectionMode )</td></tr>
</table>
<p>See also <a href="q3listbox.html#SelectionMode-enum">SelectionMode</a>.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/topItem"></a>
<a name="//apple_ref/cpp/instm/Q3ListBox/setTopItem"></a>
<h3 class="fn"><a name="topItem-prop"></a>topItem : int</h3>
<p>This property holds the index of an item at the top of the screen.</p>
<p>When getting this property and the listbox has multiple columns, an arbitrary item is selected and returned.</p>
<p>When setting this property, the list box is scrolled so the item at position <i>index</i> in the list is displayed in the top row of the list box.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b>topItem</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b>setTopItem</b> ( int <i>index</i> )</td></tr>
</table>
<a name="//apple_ref/cpp/instm/Q3ListBox/variableHeight"></a>
<a name="//apple_ref/cpp/instm/Q3ListBox/setVariableHeight"></a>
<h3 class="fn"><a name="variableHeight-prop"></a>variableHeight : bool</h3>
<p>This property holds whether this list box has variable-height rows.</p>
<p>When the list box has variable-height rows (the default), each row is as high as the highest item in that row. When it has same-sized rows, all rows are as high as the highest item in the list box.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b>variableHeight</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b>setVariableHeight</b> ( bool )</td></tr>
</table>
<p>See also <a href="q3listbox.html#variableWidth-prop">variableWidth</a>.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/variableWidth"></a>
<a name="//apple_ref/cpp/instm/Q3ListBox/setVariableWidth"></a>
<h3 class="fn"><a name="variableWidth-prop"></a>variableWidth : bool</h3>
<p>This property holds whether this list box has variable-width columns.</p>
<p>When the list box has variable-width columns, each column is as wide as the widest item in that column. When it has same-sized columns (the default), all columns are as wide as the widest item in the list box.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b>variableWidth</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b>setVariableWidth</b> ( bool )</td></tr>
</table>
<p>See also <a href="q3listbox.html#variableHeight-prop">variableHeight</a>.</p>
<hr />
<h2>Member Function Documentation</h2>
<a name="//apple_ref/cpp/instm/Q3ListBox/Q3ListBox"></a>
<h3 class="fn"><a name="Q3ListBox"></a>Q3ListBox::Q3ListBox ( <a href="qwidget.html">QWidget</a> * <i>parent</i> = 0, const char * <i>name</i> = 0, <a href="qt.html#WindowType-enum">Qt::WindowFlags</a> <i>f</i> = 0 )</h3>
<p>Constructs a new empty list box called <i>name</i> and with parent <i>parent</i> and widget attributes <i>f</i>.</p>
<p>This constructor sets the Qt::WA_StaticContent and the <a href="qt.html#WidgetAttribute-enum">Qt::WA_NoBackground</a> attributes to boost performance when drawing Q3ListBoxItems. This may be unsuitable for custom <a href="q3listboxitem.html" class="compat">Q3ListBoxItem</a> classes, in which case <a href="qt.html#WidgetAttribute-enum">Qt::WA_StaticContents</a> and <a href="qt.html#WidgetAttribute-enum">Qt::WA_NoBackground</a> should be cleared on the <a href="q3scrollview.html#viewport">viewport</a>() after construction.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/~Q3ListBox"></a>
<h3 class="fn"><a name="dtor.Q3ListBox"></a>Q3ListBox::~Q3ListBox ()</h3>
<p>Destroys the list box. Deletes all list box items.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/autoBottomScrollBar"></a>
<h3 class="fn"><a name="autoBottomScrollBar"></a>bool Q3ListBox::autoBottomScrollBar () const</h3>
<p>Use <a href="q3scrollview.html#hScrollBarMode-prop">hScrollBarMode</a>() instead. Returns true if the horizontal scrollbar mode is set to <tt>Auto</tt>.</p>
<p>See also <a href="q3listbox.html#setAutoBottomScrollBar">setAutoBottomScrollBar</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/autoScroll"></a>
<h3 class="fn"><a name="autoScroll"></a>bool Q3ListBox::autoScroll () const</h3>
<p>Use <a href="q3scrollview.html#dragAutoScroll-prop">dragAutoScroll</a>() instead. This function always returns true.</p>
<p>See also <a href="q3listbox.html#setAutoScroll">setAutoScroll</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/autoScrollBar"></a>
<h3 class="fn"><a name="autoScrollBar"></a>bool Q3ListBox::autoScrollBar () const</h3>
<p>Use <a href="q3scrollview.html#vScrollBarMode-prop">vScrollBarMode</a>() instead. Returns true if the vertical scrollbar mode is <tt>Auto</tt>.</p>
<p>See also <a href="q3listbox.html#setAutoScrollBar">setAutoScrollBar</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/autoUpdate"></a>
<h3 class="fn"><a name="autoUpdate"></a>bool Q3ListBox::autoUpdate () const</h3>
<p>Returns true. Qt always updates automatically.</p>
<p>See also <a href="q3listbox.html#setAutoUpdate">setAutoUpdate</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/bottomScrollBar"></a>
<h3 class="fn"><a name="bottomScrollBar"></a>bool Q3ListBox::bottomScrollBar () const</h3>
<p>Use <a href="q3scrollview.html#hScrollBarMode-prop">hScrollBarMode</a>() instead. Returns true if the horizontal scrollbar mode is not <tt>AlwaysOff</tt>.</p>
<p>See also <a href="q3listbox.html#setBottomScrollBar">setBottomScrollBar</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/cellHeight"></a>
<h3 class="fn"><a name="cellHeight"></a>int Q3ListBox::cellHeight ( int <i>i</i> ) const</h3>
<p>Use itemHeight(<i>i</i>) instead.</p>
<h3 class="fn"><a name="cellHeight-2"></a>int Q3ListBox::cellHeight () const</h3>
<p>Use <a href="q3listbox.html#itemHeight">itemHeight</a>() instead.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/cellWidth"></a>
<h3 class="fn"><a name="cellWidth"></a>int Q3ListBox::cellWidth () const</h3>
<p>Use <a href="q3listbox.html#maxItemWidth">maxItemWidth</a>() instead.</p>
<h3 class="fn"><a name="cellWidth-2"></a>int Q3ListBox::cellWidth ( int <i>i</i> ) const</h3>
<p>Use maxItemWidth(<i>i</i>) instead.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/centerCurrentItem"></a>
<h3 class="fn"><a name="centerCurrentItem"></a>void Q3ListBox::centerCurrentItem ()</h3>
<p>If there is a current item, the list box is scrolled so that this item is displayed centered.</p>
<p>See also <a href="q3listbox.html#ensureCurrentVisible">Q3ListBox::ensureCurrentVisible</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/changeEvent"></a>
<h3 class="fn"><a name="changeEvent"></a>void Q3ListBox::changeEvent ( <a href="qevent.html">QEvent</a> * <i>ev</i> )&nbsp;&nbsp;<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#changeEvent">QWidget::changeEvent</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/changeItem"></a>
<h3 class="fn"><a name="changeItem"></a>void Q3ListBox::changeItem ( const <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>lbi</i>, int <i>index</i> )</h3>
<p>Replaces the item at position <i>index</i> with <i>lbi</i>. If <i>index</i> is negative or too large, changeItem() does nothing.</p>
<p>The item that has been changed will become selected.</p>
<p>See also <a href="q3listbox.html#insertItem">insertItem</a>() and <a href="q3listbox.html#removeItem">removeItem</a>().</p>
<h3 class="fn"><a name="changeItem-2"></a>void Q3ListBox::changeItem ( const <a href="qstring.html">QString</a> &amp; <i>text</i>, int <i>index</i> )</h3>
<p>This is an overloaded function.</p>
<p>Replaces the item at position <i>index</i> with a new list box text item with text <i>text</i>.</p>
<p>The operation is ignored if <i>index</i> is out of range.</p>
<p>See also <a href="q3listbox.html#insertItem">insertItem</a>() and <a href="q3listbox.html#removeItem">removeItem</a>().</p>
<h3 class="fn"><a name="changeItem-3"></a>void Q3ListBox::changeItem ( const <a href="qpixmap.html">QPixmap</a> &amp; <i>pixmap</i>, int <i>index</i> )</h3>
<p>This is an overloaded function.</p>
<p>Replaces the item at position <i>index</i> with a new list box pixmap item with pixmap <i>pixmap</i>.</p>
<p>The operation is ignored if <i>index</i> is out of range.</p>
<p>See also <a href="q3listbox.html#insertItem">insertItem</a>() and <a href="q3listbox.html#removeItem">removeItem</a>().</p>
<h3 class="fn"><a name="changeItem-4"></a>void Q3ListBox::changeItem ( const <a href="qpixmap.html">QPixmap</a> &amp; <i>pixmap</i>, const <a href="qstring.html">QString</a> &amp; <i>text</i>, int <i>index</i> )</h3>
<p>This is an overloaded function.</p>
<p>Replaces the item at position <i>index</i> with a new list box pixmap item with pixmap <i>pixmap</i> and text <i>text</i>.</p>
<p>The operation is ignored if <i>index</i> is out of range.</p>
<p>See also <a href="q3listbox.html#insertItem">insertItem</a>() and <a href="q3listbox.html#removeItem">removeItem</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/clear"></a>
<h3 class="fn"><a name="clear"></a>void Q3ListBox::clear ()&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p>Deletes all the items in the list.</p>
<p>See also <a href="q3listbox.html#removeItem">removeItem</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/clearSelection"></a>
<h3 class="fn"><a name="clearSelection"></a>void Q3ListBox::clearSelection ()&nbsp;&nbsp;<tt> [virtual slot]</tt></h3>
<p>Deselects all items, if possible.</p>
<p>Note that a <tt>Single</tt> selection list box will automatically select an item if it has keyboard focus.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/clicked"></a>
<h3 class="fn"><a name="clicked"></a>void Q3ListBox::clicked ( <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>item</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted when the user clicks any mouse button. If <i>item</i> is not 0, the cursor is on <i>item</i>. If <i>item</i> is 0, the mouse cursor isn't on any item.</p>
<p>Note that you must not delete any <a href="q3listboxitem.html" class="compat">Q3ListBoxItem</a> objects in slots connected to this signal.</p>
<h3 class="fn"><a name="clicked-2"></a>void Q3ListBox::clicked ( <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>item</i>, const <a href="qpoint.html">QPoint</a> &amp; <i>pnt</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This is an overloaded function.</p>
<p>This signal is emitted when the user clicks any mouse button. If <i>item</i> is not 0, the cursor is on <i>item</i>. If <i>item</i> is 0, the mouse cursor isn't on any item.</p>
<p><i>pnt</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 differs by a pixel or two, <i>pnt</i> is the position at release time.)</p>
<p>Note that you must not delete any <a href="q3listboxitem.html" class="compat">Q3ListBoxItem</a> objects in slots connected to this signal.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/contentsContextMenuEvent"></a>
<h3 class="fn"><a name="contentsContextMenuEvent"></a>void Q3ListBox::contentsContextMenuEvent ( <a href="qcontextmenuevent.html">QContextMenuEvent</a> * <i>e</i> )&nbsp;&nbsp;<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="q3scrollview.html#contentsContextMenuEvent">Q3ScrollView::contentsContextMenuEvent</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/contextMenuRequested"></a>
<h3 class="fn"><a name="contextMenuRequested"></a>void Q3ListBox::contextMenuRequested ( <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>item</i>, const <a href="qpoint.html">QPoint</a> &amp; <i>pos</i> )&nbsp;&nbsp;<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>
<a name="//apple_ref/cpp/instm/Q3ListBox/currentChanged"></a>
<h3 class="fn"><a name="currentChanged"></a>void Q3ListBox::currentChanged ( <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>item</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted when the user makes a new item the current item. <i>item</i> is the new current list box item.</p>
<p>See also <a href="q3listbox.html#currentItem-prop">setCurrentItem</a>() and <a href="q3listbox.html#currentItem-prop">currentItem</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/doLayout"></a>
<h3 class="fn"><a name="doLayout"></a>void Q3ListBox::doLayout () const&nbsp;&nbsp;<tt> [protected]</tt></h3>
<p>This function does the hard layout work. You should never need to call it.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/doubleClicked"></a>
<h3 class="fn"><a name="doubleClicked"></a>void Q3ListBox::doubleClicked ( <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>item</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted whenever an item is double-clicked. It's emitted on the second button press, not the second button release. If <i>item</i> is not 0, the cursor is on <i>item</i>. If <i>item</i> is 0, the mouse cursor isn't on any item.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/dragSelect"></a>
<h3 class="fn"><a name="dragSelect"></a>bool Q3ListBox::dragSelect () const</h3>
<p>Returns true. Dragging always selects.</p>
<p>See also <a href="q3listbox.html#setDragSelect">setDragSelect</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/ensureCurrentVisible"></a>
<h3 class="fn"><a name="ensureCurrentVisible"></a>void Q3ListBox::ensureCurrentVisible ()&nbsp;&nbsp;<tt> [virtual slot]</tt></h3>
<p>Ensures that the current item is visible.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/eventFilter"></a>
<h3 class="fn"><a name="eventFilter"></a>bool Q3ListBox::eventFilter ( <a href="qobject.html">QObject</a> * <i>o</i>, <a href="qevent.html">QEvent</a> * <i>e</i> )&nbsp;&nbsp;<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qobject.html#eventFilter">QObject::eventFilter</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/findItem"></a>
<h3 class="fn"><a name="findItem"></a><a href="q3listboxitem.html">Q3ListBoxItem</a> * Q3ListBox::findItem ( const <a href="qstring.html">QString</a> &amp; <i>text</i>, <a href="q3listbox.html#ComparisonFlags-typedef">ComparisonFlags</a> <i>compare</i> = BeginsWith ) const</h3>
<p>Finds the first list box item that has the text <i>text</i> and returns it, or returns 0 of no such item could be found. If <tt>ComparisonFlags</tt> are specified in <i>compare</i> then these flags are used, otherwise the default is a case-insensitive, &quot;begins with&quot; search.</p>
<h3 class="fn"><a name="findItem-2"></a>int Q3ListBox::findItem ( int <i>yPos</i> ) const&nbsp;&nbsp;<tt> [protected]</tt></h3>
<p>Use index(itemAt(<i>yPos</i>)) instead.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/firstItem"></a>
<h3 class="fn"><a name="firstItem"></a><a href="q3listboxitem.html">Q3ListBoxItem</a> * Q3ListBox::firstItem () const</h3>
<p>Returns the first item in this list box. If the list box is empty, returns 0.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/focusInEvent"></a>
<h3 class="fn"><a name="focusInEvent"></a>void Q3ListBox::focusInEvent ( <a href="qfocusevent.html">QFocusEvent</a> * <i>e</i> )&nbsp;&nbsp;<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#focusInEvent">QWidget::focusInEvent</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/focusOutEvent"></a>
<h3 class="fn"><a name="focusOutEvent"></a>void Q3ListBox::focusOutEvent ( <a href="qfocusevent.html">QFocusEvent</a> * <i>e</i> )&nbsp;&nbsp;<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#focusOutEvent">QWidget::focusOutEvent</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/highlighted"></a>
<h3 class="fn"><a name="highlighted"></a>void Q3ListBox::highlighted ( int <i>index</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted when the user makes a new item the current item. <i>index</i> is the index of the new current item.</p>
<p>See also <a href="q3listbox.html#currentChanged">currentChanged</a>(), <a href="q3listbox.html#selected">selected</a>(), <a href="q3listbox.html#currentItem-prop">currentItem</a>(), and <a href="q3listbox.html#selectionChanged">selectionChanged</a>().</p>
<h3 class="fn"><a name="highlighted-2"></a>void Q3ListBox::highlighted ( <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>item</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This is an overloaded function.</p>
<p>This signal is emitted when the user makes a new <i>item</i> the current <i>item</i>.</p>
<p>See also <a href="q3listbox.html#currentChanged">currentChanged</a>(), <a href="q3listbox.html#selected">selected</a>(), <a href="q3listbox.html#currentItem-prop">currentItem</a>(), and <a href="q3listbox.html#selectionChanged">selectionChanged</a>().</p>
<h3 class="fn"><a name="highlighted-3"></a>void Q3ListBox::highlighted ( const <a href="qstring.html">QString</a> &amp; <i>text</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This is an overloaded function.</p>
<p>This signal is emitted when the user makes a new item the current item and the item is (or has) as string. The argument is the new current item's <i>text</i>.</p>
<p>See also <a href="q3listbox.html#currentChanged">currentChanged</a>(), <a href="q3listbox.html#selected">selected</a>(), <a href="q3listbox.html#currentItem-prop">currentItem</a>(), and <a href="q3listbox.html#selectionChanged">selectionChanged</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/inSort"></a>
<h3 class="fn"><a name="inSort"></a>int Q3ListBox::inSort ( const <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>lbi</i> )</h3>
<p>Using this method is quite inefficient. We suggest to use <a href="q3listbox.html#insertItem">insertItem</a>() for inserting and <a href="q3listbox.html#sort">sort</a>() afterwards.</p>
<p>Inserts <i>lbi</i> at its sorted position in the list box and returns the position.</p>
<p>All items must be inserted with inSort() to maintain the sorting order. inSort() treats any pixmap (or user-defined type) as lexicographically less than any string.</p>
<p>See also <a href="q3listbox.html#insertItem">insertItem</a>() and <a href="q3listbox.html#sort">sort</a>().</p>
<h3 class="fn"><a name="inSort-2"></a>int Q3ListBox::inSort ( const <a href="qstring.html">QString</a> &amp; <i>text</i> )</h3>
<p>This is an overloaded function.</p>
<p>Using this method is quite inefficient. We suggest to use <a href="q3listbox.html#insertItem">insertItem</a>() for inserting and <a href="q3listbox.html#sort">sort</a>() afterwards.</p>
<p>Inserts a new item of <i>text</i> at its sorted position in the list box and returns the position.</p>
<p>All items must be inserted with <a href="q3listbox.html#inSort">inSort</a>() to maintain the sorting order. <a href="q3listbox.html#inSort">inSort</a>() treats any pixmap (or user-defined type) as lexicographically less than any string.</p>
<p>See also <a href="q3listbox.html#insertItem">insertItem</a>() and <a href="q3listbox.html#sort">sort</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/index"></a>
<h3 class="fn"><a name="index"></a>int Q3ListBox::index ( const <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>lbi</i> ) const</h3>
<p>Returns the index of <i>lbi</i>, or -1 if the item is not in this list box or <i>lbi</i> is 0.</p>
<p>See also <a href="q3listbox.html#item">item</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/inputMethodQuery"></a>
<h3 class="fn"><a name="inputMethodQuery"></a><a href="qvariant.html">QVariant</a> Q3ListBox::inputMethodQuery ( <a href="qt.html#InputMethodQuery-enum">Qt::InputMethodQuery</a> <i>query</i> ) const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#inputMethodQuery">QWidget::inputMethodQuery</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/insertItem"></a>
<h3 class="fn"><a name="insertItem"></a>void Q3ListBox::insertItem ( const <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>lbi</i>, int <i>index</i> = -1 )</h3>
<p>Inserts the item <i>lbi</i> into the list at position <i>index</i>.</p>
<p>If <i>index</i> is negative or larger than the number of items in the list box, <i>lbi</i> is inserted at the end of the list.</p>
<p>See also <a href="q3listbox.html#insertStrList">insertStrList</a>().</p>
<h3 class="fn"><a name="insertItem-2"></a>void Q3ListBox::insertItem ( const <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>lbi</i>, const <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>after</i> )</h3>
<p>This is an overloaded function.</p>
<p>Inserts the item <i>lbi</i> into the list after the item <i>after</i>, or at the beginning if <i>after</i> is 0.</p>
<p>See also <a href="q3listbox.html#insertStrList">insertStrList</a>().</p>
<h3 class="fn"><a name="insertItem-3"></a>void Q3ListBox::insertItem ( const <a href="qstring.html">QString</a> &amp; <i>text</i>, int <i>index</i> = -1 )</h3>
<p>This is an overloaded function.</p>
<p>Inserts a new list box text item with the text <i>text</i> into the list at position <i>index</i>.</p>
<p>If <i>index</i> is negative, <i>text</i> is inserted at the end of the list.</p>
<p>See also <a href="q3listbox.html#insertStrList">insertStrList</a>().</p>
<h3 class="fn"><a name="insertItem-4"></a>void Q3ListBox::insertItem ( const <a href="qpixmap.html">QPixmap</a> &amp; <i>pixmap</i>, int <i>index</i> = -1 )</h3>
<p>This is an overloaded function.</p>
<p>Inserts a new list box pixmap item with the pixmap <i>pixmap</i> into the list at position <i>index</i>.</p>
<p>If <i>index</i> is negative, <i>pixmap</i> is inserted at the end of the list.</p>
<p>See also <a href="q3listbox.html#insertStrList">insertStrList</a>().</p>
<h3 class="fn"><a name="insertItem-5"></a>void Q3ListBox::insertItem ( const <a href="qpixmap.html">QPixmap</a> &amp; <i>pixmap</i>, const <a href="qstring.html">QString</a> &amp; <i>text</i>, int <i>index</i> = -1 )</h3>
<p>This is an overloaded function.</p>
<p>Inserts a new list box pixmap item with the pixmap <i>pixmap</i> and the text <i>text</i> into the list at position <i>index</i>.</p>
<p>If <i>index</i> is negative, <i>pixmap</i> is inserted at the end of the list.</p>
<p>See also <a href="q3listbox.html#insertStrList">insertStrList</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/insertStrList"></a>
<h3 class="fn"><a name="insertStrList"></a>void Q3ListBox::insertStrList ( const char ** <i>strings</i>, int <i>numStrings</i> = -1, int <i>index</i> = -1 )</h3>
<p>Inserts the <i>numStrings</i> strings of the array <i>strings</i> into the list at position <i>index</i>.</p>
<p>If <i>index</i> is negative, insertStrList() inserts <i>strings</i> at the end of the list. If <i>index</i> is too large, the operation is ignored.</p>
<p><b>Warning:</b> This function uses <tt>const char *</tt> rather than <a href="qstring.html">QString</a>, so we recommend against using it. It is provided so that legacy code will continue to work, and so that programs that certainly will not need to handle code outside a single 8-bit locale can use it. See <a href="q3listbox.html#insertStringList">insertStringList</a>() which uses real QStrings.</p>
<p><b>Warning:</b> This function is never significantly faster than a loop around <a href="q3listbox.html#insertItem">insertItem</a>().</p>
<p>See also <a href="q3listbox.html#insertItem">insertItem</a>() and <a href="q3listbox.html#insertStringList">insertStringList</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/insertStringList"></a>
<h3 class="fn"><a name="insertStringList"></a>void Q3ListBox::insertStringList ( const <a href="qstringlist.html">QStringList</a> &amp; <i>list</i>, int <i>index</i> = -1 )</h3>
<p>Inserts the string list <i>list</i> into the list at position <i>index</i>.</p>
<p>If <i>index</i> is negative, <i>list</i> is inserted at the end of the list. If <i>index</i> is too large, the operation is ignored.</p>
<p><b>Warning:</b> This function is never significantly faster than a loop around <a href="q3listbox.html#insertItem">insertItem</a>().</p>
<p>See also <a href="q3listbox.html#insertItem">insertItem</a>() and <a href="q3listbox.html#insertStrList">insertStrList</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/invertSelection"></a>
<h3 class="fn"><a name="invertSelection"></a>void Q3ListBox::invertSelection ()&nbsp;&nbsp;<tt> [virtual slot]</tt></h3>
<p>Inverts the selection. Only works in <tt>Multi</tt> and <tt>Extended</tt> selection mode.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/isRubberSelecting"></a>
<h3 class="fn"><a name="isRubberSelecting"></a>bool Q3ListBox::isRubberSelecting () const&nbsp;&nbsp;<tt> [protected]</tt></h3>
<p>Returns true if the user is selecting items using a rubber band rectangle; otherwise returns false.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/isSelected"></a>
<h3 class="fn"><a name="isSelected"></a>bool Q3ListBox::isSelected ( int <i>i</i> ) const</h3>
<p>Returns true if item <i>i</i> is selected; otherwise returns false.</p>
<h3 class="fn"><a name="isSelected-2"></a>bool Q3ListBox::isSelected ( const <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>i</i> ) const</h3>
<p>This is an overloaded function.</p>
<p>Returns true if item <i>i</i> is selected; otherwise returns false.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/item"></a>
<h3 class="fn"><a name="item"></a><a href="q3listboxitem.html">Q3ListBoxItem</a> * Q3ListBox::item ( int <i>index</i> ) const</h3>
<p>Returns a pointer to the item at position <i>index</i>, or 0 if <i>index</i> is out of bounds.</p>
<p>See also <a href="q3listbox.html#index">index</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/itemAt"></a>
<h3 class="fn"><a name="itemAt"></a><a href="q3listboxitem.html">Q3ListBoxItem</a> * Q3ListBox::itemAt ( const <a href="qpoint.html">QPoint</a> &amp; <i>p</i> ) const</h3>
<p>Returns the item at point <i>p</i>, specified in viewport coordinates, or a 0 if there is no item at <i>p</i>.</p>
<p>Use <a href="q3scrollview.html#contentsToViewport">contentsToViewport</a>() to convert between widget coordinates and viewport coordinates.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/itemHeight"></a>
<h3 class="fn"><a name="itemHeight"></a>int Q3ListBox::itemHeight ( int <i>index</i> = 0 ) const</h3>
<p>Returns the height in pixels of the item with index <i>index</i>. <i>index</i> defaults to 0.</p>
<p>If <i>index</i> is too large, this function returns 0.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/itemRect"></a>
<h3 class="fn"><a name="itemRect"></a><a href="qrect.html">QRect</a> Q3ListBox::itemRect ( <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>item</i> ) const</h3>
<p>Returns the rectangle on the screen that <i>item</i> occupies in <a href="q3scrollview.html#viewport">viewport</a>()'s coordinates, or an invalid rectangle if <i>item</i> is 0 or is not currently visible.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/itemVisible"></a>
<h3 class="fn"><a name="itemVisible"></a>bool Q3ListBox::itemVisible ( int <i>index</i> )</h3>
<p>Returns true if the item at position <i>index</i> is at least partly visible; otherwise returns false.</p>
<h3 class="fn"><a name="itemVisible-2"></a>bool Q3ListBox::itemVisible ( const <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>item</i> )</h3>
<p>This is an overloaded function.</p>
<p>Returns true if <i>item</i> is at least partly visible; otherwise returns false.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/keyPressEvent"></a>
<h3 class="fn"><a name="keyPressEvent"></a>void Q3ListBox::keyPressEvent ( <a href="qkeyevent.html">QKeyEvent</a> * <i>e</i> )&nbsp;&nbsp;<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#keyPressEvent">QWidget::keyPressEvent</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/maxItemWidth"></a>
<h3 class="fn"><a name="maxItemWidth"></a>long Q3ListBox::maxItemWidth () const</h3>
<p>Returns the width of the widest item in the list box.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/minimumSizeHint"></a>
<h3 class="fn"><a name="minimumSizeHint"></a><a href="qsize.html">QSize</a> Q3ListBox::minimumSizeHint () const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#minimumSizeHint-prop">QWidget::minimumSizeHint</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/mouseButtonClicked"></a>
<h3 class="fn"><a name="mouseButtonClicked"></a>void Q3ListBox::mouseButtonClicked ( int <i>button</i>, <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>item</i>, const <a href="qpoint.html">QPoint</a> &amp; <i>pos</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted when the user clicks mouse button <i>button</i>. If <i>item</i> is not 0, the cursor is on <i>item</i>. If <i>item</i> is 0, 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 differs by a pixel or two, <i>pos</i> is the position at release time.)</p>
<p>Note that you must not delete any <a href="q3listboxitem.html" class="compat">Q3ListBoxItem</a> objects in slots connected to this signal.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/mouseButtonPressed"></a>
<h3 class="fn"><a name="mouseButtonPressed"></a>void Q3ListBox::mouseButtonPressed ( int <i>button</i>, <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>item</i>, const <a href="qpoint.html">QPoint</a> &amp; <i>pos</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted when the user presses mouse button <i>button</i>. If <i>item</i> is not 0, the cursor is on <i>item</i>. If <i>item</i> is 0, 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>Note that you must not delete any <a href="q3listboxitem.html" class="compat">Q3ListBoxItem</a> objects in slots connected to this signal.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/mouseDoubleClickEvent"></a>
<h3 class="fn"><a name="mouseDoubleClickEvent"></a>void Q3ListBox::mouseDoubleClickEvent ( <a href="qmouseevent.html">QMouseEvent</a> * <i>e</i> )&nbsp;&nbsp;<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#mouseDoubleClickEvent">QWidget::mouseDoubleClickEvent</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/mouseMoveEvent"></a>
<h3 class="fn"><a name="mouseMoveEvent"></a>void Q3ListBox::mouseMoveEvent ( <a href="qmouseevent.html">QMouseEvent</a> * <i>e</i> )&nbsp;&nbsp;<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#mouseMoveEvent">QWidget::mouseMoveEvent</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/mousePressEvent"></a>
<h3 class="fn"><a name="mousePressEvent"></a>void Q3ListBox::mousePressEvent ( <a href="qmouseevent.html">QMouseEvent</a> * <i>e</i> )&nbsp;&nbsp;<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#mousePressEvent">QWidget::mousePressEvent</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/mouseReleaseEvent"></a>
<h3 class="fn"><a name="mouseReleaseEvent"></a>void Q3ListBox::mouseReleaseEvent ( <a href="qmouseevent.html">QMouseEvent</a> * <i>e</i> )&nbsp;&nbsp;<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#mouseReleaseEvent">QWidget::mouseReleaseEvent</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/numCols"></a>
<h3 class="fn"><a name="numCols"></a>int Q3ListBox::numCols () const</h3>
<p>Use <a href="q3listbox.html#numColumns-prop">numColumns</a>() instead.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/onItem"></a>
<h3 class="fn"><a name="onItem"></a>void Q3ListBox::onItem ( <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>i</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted when the user moves the mouse cursor onto an item, similar to the <a href="qwidget.html#enterEvent">QWidget::enterEvent</a>() function. <i>i</i> is the <a href="q3listboxitem.html" class="compat">Q3ListBoxItem</a> that the mouse has moved on.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/onViewport"></a>
<h3 class="fn"><a name="onViewport"></a>void Q3ListBox::onViewport ()&nbsp;&nbsp;<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 list box.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/paintCell"></a>
<h3 class="fn"><a name="paintCell"></a>void Q3ListBox::paintCell ( <a href="qpainter.html">QPainter</a> * <i>p</i>, int <i>row</i>, int <i>col</i> )&nbsp;&nbsp;<tt> [virtual protected]</tt></h3>
<p>Provided for compatibility with the old <a href="q3listbox.html" class="compat">Q3ListBox</a>. We recommend using <a href="q3listboxitem.html#paint">Q3ListBoxItem::paint</a>() instead.</p>
<p>Repaints the cell at <i>row</i>, <i>col</i> using painter <i>p</i>.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/pixmap"></a>
<h3 class="fn"><a name="pixmap"></a>const <a href="qpixmap.html">QPixmap</a> * Q3ListBox::pixmap ( int <i>index</i> ) const</h3>
<p>Returns a pointer to the pixmap at position <i>index</i>, or 0 if there is no pixmap there.</p>
<p>See also <a href="q3listbox.html#text">text</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/pressed"></a>
<h3 class="fn"><a name="pressed"></a>void Q3ListBox::pressed ( <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>item</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted when the user presses any mouse button. If <i>item</i> is not 0, the cursor is on <i>item</i>. If <i>item</i> is 0, the mouse cursor isn't on any item.</p>
<p>Note that you must not delete any <a href="q3listboxitem.html" class="compat">Q3ListBoxItem</a> objects in slots connected to this signal.</p>
<h3 class="fn"><a name="pressed-2"></a>void Q3ListBox::pressed ( <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>item</i>, const <a href="qpoint.html">QPoint</a> &amp; <i>pnt</i> )&nbsp;&nbsp;<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 not 0, the cursor is on <i>item</i>. If <i>item</i> is 0, the mouse cursor isn't on any item.</p>
<p><i>pnt</i> is the position of the mouse cursor in the global coordinate system (<a href="qmouseevent.html#globalPos">QMouseEvent::globalPos</a>()).</p>
<p>Note that you must not delete any <a href="q3listboxitem.html" class="compat">Q3ListBoxItem</a> objects in slots connected to this signal.</p>
<p>See also <a href="q3listbox.html#mouseButtonPressed">mouseButtonPressed</a>(), <a href="q3listbox.html#rightButtonPressed">rightButtonPressed</a>(), and <a href="q3listbox.html#clicked">clicked</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/removeItem"></a>
<h3 class="fn"><a name="removeItem"></a>void Q3ListBox::removeItem ( int <i>index</i> )</h3>
<p>Removes and deletes the item at position <i>index</i>. If <i>index</i> is equal to <a href="q3listbox.html#currentItem-prop">currentItem</a>(), a new item becomes current and the <a href="q3listbox.html#currentChanged">currentChanged</a>() and <a href="q3listbox.html#highlighted">highlighted</a>() signals are emitted.</p>
<p>See also <a href="q3listbox.html#insertItem">insertItem</a>() and <a href="q3listbox.html#clear">clear</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/resizeEvent"></a>
<h3 class="fn"><a name="resizeEvent"></a>void Q3ListBox::resizeEvent ( <a href="qresizeevent.html">QResizeEvent</a> * <i>e</i> )&nbsp;&nbsp;<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#resizeEvent">QWidget::resizeEvent</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/returnPressed"></a>
<h3 class="fn"><a name="returnPressed"></a>void Q3ListBox::returnPressed ( <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>item</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted when Enter or Return is pressed. The <i>item</i> passed in the argument is <a href="q3listbox.html#currentItem-prop">currentItem</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/rightButtonClicked"></a>
<h3 class="fn"><a name="rightButtonClicked"></a>void Q3ListBox::rightButtonClicked ( <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>item</i>, const <a href="qpoint.html">QPoint</a> &amp; <i>point</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted when the right button is clicked. The <i>item</i> is the item that the button was clicked on (which could be 0 if no item was clicked on), and the <i>point</i> is where the click took place in global coordinates.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/rightButtonPressed"></a>
<h3 class="fn"><a name="rightButtonPressed"></a>void Q3ListBox::rightButtonPressed ( <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>item</i>, const <a href="qpoint.html">QPoint</a> &amp; <i>point</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted when the right button is pressed. The <i>item</i> is the item that the button was pressed over (which could be 0 if no item was pressed over), and the <i>point</i> is where the press took place in global coordinates.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/scrollBar"></a>
<h3 class="fn"><a name="scrollBar"></a>bool Q3ListBox::scrollBar () const</h3>
<p>Use <a href="q3scrollview.html#vScrollBarMode-prop">vScrollBarMode</a>() instead. Returns true if the vertical scrollbar mode is not <tt>AlwaysOff</tt>.</p>
<p>See also <a href="q3listbox.html#setScrollBar">setScrollBar</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/selectAll"></a>
<h3 class="fn"><a name="selectAll"></a>void Q3ListBox::selectAll ( bool <i>select</i> )&nbsp;&nbsp;<tt> [virtual slot]</tt></h3>
<p>In <tt>Multi</tt> and <tt>Extended</tt> 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 <tt>Single</tt> and <tt>NoSelection</tt> modes, this function only changes the selection status of <a href="q3listbox.html#currentItem-prop">currentItem</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/selected"></a>
<h3 class="fn"><a name="selected"></a>void Q3ListBox::selected ( int <i>index</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted when the user double-clicks on an item or presses Enter on the current item. <i>index</i> is the index of the selected item.</p>
<p>See also <a href="q3listbox.html#setSelected">setSelected</a>(), <a href="q3listbox.html#currentChanged">currentChanged</a>(), <a href="q3listbox.html#highlighted">highlighted</a>(), and <a href="q3listbox.html#selectionChanged">selectionChanged</a>().</p>
<h3 class="fn"><a name="selected-2"></a>void Q3ListBox::selected ( <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>item</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This is an overloaded function.</p>
<p>This signal is emitted when the user double-clicks on an <i>item</i> or presses Enter on the current <i>item</i>.</p>
<p>See also <a href="q3listbox.html#currentChanged">currentChanged</a>(), <a href="q3listbox.html#highlighted">highlighted</a>(), and <a href="q3listbox.html#selectionChanged">selectionChanged</a>().</p>
<h3 class="fn"><a name="selected-3"></a>void Q3ListBox::selected ( const <a href="qstring.html">QString</a> &amp; <i>text</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This is an overloaded function.</p>
<p>This signal is emitted when the user double-clicks on an item or presses Enter on the current item, and the item is (or has) a string. The argument is the <i>text</i> of the selected item.</p>
<p>See also <a href="q3listbox.html#currentChanged">currentChanged</a>(), <a href="q3listbox.html#highlighted">highlighted</a>(), and <a href="q3listbox.html#selectionChanged">selectionChanged</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/selectedItem"></a>
<h3 class="fn"><a name="selectedItem"></a><a href="q3listboxitem.html">Q3ListBoxItem</a> * Q3ListBox::selectedItem () const</h3>
<p>Returns the selected item if the list box is in single-selection mode and an item is selected.</p>
<p>If no items are selected or the list box is in another selection mode this function returns 0.</p>
<p>See also <a href="q3listbox.html#setSelected">setSelected</a>() and <a href="q3listbox.html#multiSelection-prop">setMultiSelection</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/selectionChanged"></a>
<h3 class="fn"><a name="selectionChanged"></a>void Q3ListBox::selectionChanged ()&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted when the selection set of a list box changes. This signal is emitted in each selection mode. If the user selects five items by drag-selecting, <a href="q3listbox.html" class="compat">Q3ListBox</a> tries to emit just one selectionChanged() signal so the signal can be connected to computationally expensive slots.</p>
<p>See also <a href="q3listbox.html#selected">selected</a>() and <a href="q3listbox.html#currentItem-prop">currentItem</a>().</p>
<h3 class="fn"><a name="selectionChanged-2"></a>void Q3ListBox::selectionChanged ( <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>item</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This is an overloaded function.</p>
<p>This signal is emitted when the selection in a <a href="q3listbox.html#SelectionMode-enum">Single</a> selection list box changes. <i>item</i> is the newly selected list box item.</p>
<p>See also <a href="q3listbox.html#selected">selected</a>() and <a href="q3listbox.html#currentItem-prop">currentItem</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/setAutoBottomScrollBar"></a>
<h3 class="fn"><a name="setAutoBottomScrollBar"></a>void Q3ListBox::setAutoBottomScrollBar ( bool <i>enable</i> )</h3>
<p>Use <a href="q3scrollview.html#hScrollBarMode-prop">setHScrollBarMode</a>() instead.</p>
<p>If <i>enable</i> is true, pass <tt>Auto</tt> as the argument to <a href="q3scrollview.html#hScrollBarMode-prop">setHScrollBarMode</a>(); otherwise, pass <tt>AlwaysOff</tt>.</p>
<p>See also <a href="q3listbox.html#autoBottomScrollBar">autoBottomScrollBar</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/setAutoScroll"></a>
<h3 class="fn"><a name="setAutoScroll"></a>void Q3ListBox::setAutoScroll ( bool <i>b</i> )</h3>
<p>Use setDragAutoScroll(<i>b</i>) instead.</p>
<p>See also <a href="q3listbox.html#autoScroll">autoScroll</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/setAutoScrollBar"></a>
<h3 class="fn"><a name="setAutoScrollBar"></a>void Q3ListBox::setAutoScrollBar ( bool <i>enable</i> )</h3>
<p>Use <a href="q3scrollview.html#vScrollBarMode-prop">setVScrollBarMode</a>() instead.</p>
<p>If <i>enable</i> is true, pass <tt>Auto</tt> as the argument to <a href="q3scrollview.html#vScrollBarMode-prop">setVScrollBarMode</a>(); otherwise, pass <tt>AlwaysOff</tt>.</p>
<p>See also <a href="q3listbox.html#autoScrollBar">autoScrollBar</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/setAutoUpdate"></a>
<h3 class="fn"><a name="setAutoUpdate"></a>void Q3ListBox::setAutoUpdate ( bool <i>b</i> )</h3>
<p>Does nothing. Qt always updates automatically. The <i>b</i> parameter is ignored.</p>
<p>See also <a href="q3listbox.html#autoUpdate">autoUpdate</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/setBottomItem"></a>
<h3 class="fn"><a name="setBottomItem"></a>void Q3ListBox::setBottomItem ( int <i>index</i> )&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Scrolls the list box so the item at position <i>index</i> in the list is displayed in the bottom row of the list box.</p>
<p>See also <a href="q3listbox.html#topItem-prop">setTopItem</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/setBottomScrollBar"></a>
<h3 class="fn"><a name="setBottomScrollBar"></a>void Q3ListBox::setBottomScrollBar ( bool <i>enable</i> )</h3>
<p>Use <a href="q3scrollview.html#hScrollBarMode-prop">setHScrollBarMode</a>() instead.</p>
<p>If <i>enable</i> is true, pass <tt>AlwaysOn</tt> as the argument to <a href="q3scrollview.html#hScrollBarMode-prop">setHScrollBarMode</a>(); otherwise, pass <tt>AlwaysOff</tt>.</p>
<p>See also <a href="q3listbox.html#bottomScrollBar">bottomScrollBar</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/setDragSelect"></a>
<h3 class="fn"><a name="setDragSelect"></a>void Q3ListBox::setDragSelect ( bool <i>b</i> )</h3>
<p>Does nothing. Dragging always selects. The <i>b</i> parameter is ignored.</p>
<p>See also <a href="q3listbox.html#dragSelect">dragSelect</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/setFixedVisibleLines"></a>
<h3 class="fn"><a name="setFixedVisibleLines"></a>void Q3ListBox::setFixedVisibleLines ( int <i>lines</i> )</h3>
<p>Use setRowMode(<i>lines</i>) instead.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/setScrollBar"></a>
<h3 class="fn"><a name="setScrollBar"></a>void Q3ListBox::setScrollBar ( bool <i>enable</i> )</h3>
<p>Use <a href="q3scrollview.html#vScrollBarMode-prop">setVScrollBarMode</a>() instead.</p>
<p>If <i>enable</i> is true, pass <tt>AlwaysOn</tt> as the argument to <a href="q3scrollview.html#vScrollBarMode-prop">setVScrollBarMode</a>(); otherwise, pass <tt>AlwaysOff</tt>.</p>
<p>See also <a href="q3listbox.html#scrollBar">scrollBar</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/setSelected"></a>
<h3 class="fn"><a name="setSelected"></a>void Q3ListBox::setSelected ( <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>item</i>, bool <i>select</i> )&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Selects <i>item</i> if <i>select</i> is true or unselects it if <i>select</i> is false, and repaints the item appropriately.</p>
<p>If the list box is a <tt>Single</tt> selection list box and <i>select</i> is true, setSelected() calls <a href="q3listbox.html#currentItem-prop">setCurrentItem</a>().</p>
<p>If the list box is a <tt>Single</tt> selection list box, <i>select</i> is false, setSelected() calls <a href="q3listbox.html#clearSelection">clearSelection</a>().</p>
<p>See also <a href="q3listbox.html#selected">selected</a>(), <a href="q3listbox.html#multiSelection-prop">setMultiSelection</a>(), <a href="q3listbox.html#currentItem-prop">setCurrentItem</a>(), <a href="q3listbox.html#clearSelection">clearSelection</a>(), and <a href="q3listbox.html#currentItem-prop">currentItem</a>().</p>
<h3 class="fn"><a name="setSelected-2"></a>void Q3ListBox::setSelected ( int <i>index</i>, bool <i>select</i> )</h3>
<p>This is an overloaded function.</p>
<p>If <i>select</i> is true the item at position <i>index</i> is selected; otherwise the item is deselected.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/setSmoothScrolling"></a>
<h3 class="fn"><a name="setSmoothScrolling"></a>void Q3ListBox::setSmoothScrolling ( bool <i>b</i> )</h3>
<p>Does nothing. Qt always scrolls smoothly. The <i>b</i> parameter is ignored.</p>
<p>See also <a href="q3listbox.html#smoothScrolling">smoothScrolling</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/showEvent"></a>
<h3 class="fn"><a name="showEvent"></a>void Q3ListBox::showEvent ( <a href="qshowevent.html">QShowEvent</a> * )&nbsp;&nbsp;<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#showEvent">QWidget::showEvent</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/sizeHint"></a>
<h3 class="fn"><a name="sizeHint"></a><a href="qsize.html">QSize</a> Q3ListBox::sizeHint () const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#sizeHint-prop">QWidget::sizeHint</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/smoothScrolling"></a>
<h3 class="fn"><a name="smoothScrolling"></a>bool Q3ListBox::smoothScrolling () const</h3>
<p>Returns false. Qt always scrolls smoothly.</p>
<p>See also <a href="q3listbox.html#setSmoothScrolling">setSmoothScrolling</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/sort"></a>
<h3 class="fn"><a name="sort"></a>void Q3ListBox::sort ( bool <i>ascending</i> = true )</h3>
<p>If <i>ascending</i> is true sorts the items in ascending order; otherwise sorts in descending order.</p>
<p>To compare the items, the text (<a href="q3listboxitem.html#text">Q3ListBoxItem::text</a>()) of the items is used.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/takeItem"></a>
<h3 class="fn"><a name="takeItem"></a>void Q3ListBox::takeItem ( const <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>item</i> )</h3>
<p>Removes <i>item</i> from the list box and causes an update of the screen display. The item is not deleted. You should normally not need to call this function because Q3ListBoxItem::~Q3ListBoxItem() calls it. The normal way to delete an item is with <tt>delete</tt>.</p>
<p>See also <a href="q3listbox.html#insertItem">Q3ListBox::insertItem</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/text"></a>
<h3 class="fn"><a name="text"></a><a href="qstring.html">QString</a> Q3ListBox::text ( int <i>index</i> ) const</h3>
<p>Returns the text at position <i>index</i>, or an empty string if there is no text at that position.</p>
<p>See also <a href="q3listbox.html#pixmap">pixmap</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/toggleCurrentItem"></a>
<h3 class="fn"><a name="toggleCurrentItem"></a>void Q3ListBox::toggleCurrentItem ()&nbsp;&nbsp;<tt> [protected]</tt></h3>
<p>Toggles the selection status of <a href="q3listbox.html#currentItem-prop">currentItem</a>() and repaints if the list box is a <tt>Multi</tt> selection list box.</p>
<p>See also <a href="q3listbox.html#multiSelection-prop">setMultiSelection</a>().</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/totalHeight"></a>
<h3 class="fn"><a name="totalHeight"></a>int Q3ListBox::totalHeight () const&nbsp;&nbsp;<tt> [protected]</tt></h3>
<p>Use <a href="q3scrollview.html#contentsHeight-prop">contentsHeight</a>() instead.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/totalWidth"></a>
<h3 class="fn"><a name="totalWidth"></a>int Q3ListBox::totalWidth () const&nbsp;&nbsp;<tt> [protected]</tt></h3>
<p>Use <a href="q3scrollview.html#contentsWidth-prop">contentsWidth</a>() instead.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/triggerUpdate"></a>
<h3 class="fn"><a name="triggerUpdate"></a>void Q3ListBox::triggerUpdate ( bool <i>doLayout</i> )</h3>
<p>Ensures that a single paint event will occur at the end of the current event loop iteration. If <i>doLayout</i> is true, the layout is also redone.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/updateCellWidth"></a>
<h3 class="fn"><a name="updateCellWidth"></a>void Q3ListBox::updateCellWidth ()&nbsp;&nbsp;<tt> [protected]</tt></h3>
<p>Does nothing. Qt automatically updates.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/updateItem"></a>
<h3 class="fn"><a name="updateItem"></a>void Q3ListBox::updateItem ( int <i>index</i> )&nbsp;&nbsp;<tt> [protected]</tt></h3>
<p>Repaints the item at position <i>index</i> in the list.</p>
<h3 class="fn"><a name="updateItem-2"></a>void Q3ListBox::updateItem ( <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>i</i> )&nbsp;&nbsp;<tt> [protected]</tt></h3>
<p>This is an overloaded function.</p>
<p>Repaints the <a href="q3listboxitem.html" class="compat">Q3ListBoxItem</a> <i>i</i>.</p>
<a name="//apple_ref/cpp/instm/Q3ListBox/viewportPaintEvent"></a>
<h3 class="fn"><a name="viewportPaintEvent"></a>void Q3ListBox::viewportPaintEvent ( <a href="qpaintevent.html">QPaintEvent</a> * <i>e</i> )&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="q3scrollview.html#viewportPaintEvent">Q3ScrollView::viewportPaintEvent</a>().</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="40%" align="left">Copyright &copy; 2010 Nokia Corporation and/or its subsidiary(-ies)</td>
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="40%" align="right"><div align="right">Qt 4.6.3</div></td>
</tr></table></div></address></body>
</html>