Sophie

Sophie

distrib > Mageia > 7 > aarch64 > by-pkgid > 1dd17e0d683ef79b4bb6872bbf359d7f > files > 4698

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

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

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

</head>
<body class="" onload="CheckEmptyAndLoadList();">
 <div class="header" id="qtdocheader">
    <div class="content"> 
    <div id="nav-logo">
      <a href="index.html">Home</a></div>
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
    <div id="narrowsearch"></div>
    <div id="nav-topright">
      <ul>
        <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li>
        <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li>
        <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/">
          DOC</a></li>
        <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li>
      </ul>
    </div>
    <div id="shortCut">
      <ul>
        <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li>
        <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS        </a></li>
      </ul>
     </div>
 <ul class="sf-menu" id="narrowmenu"> 
             <li><a href="#">API Lookup</a> 
                 <ul> 
                     <li><a href="classes.html">Class index</a></li> 
           <li><a href="functions.html">Function index</a></li> 
           <li><a href="modules.html">Modules</a></li> 
           <li><a href="namespaces.html">Namespaces</a></li> 
           <li><a href="qtglobal.html">Global Declarations</a></li> 
           <li><a href="qdeclarativeelements.html">QML elements</a></li> 
             </ul> 
             </li> 
             <li><a href="#">Qt Topics</a> 
                 <ul> 
                        <li><a href="qt-basic-concepts.html">Programming with Qt</a></li>  
                        <li><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li>  
                        <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li>  
                        <li><a href="supported-platforms.html">Supported Platforms</a></li>  
                        <li><a href="technology-apis.html">Qt and Key Technologies</a></li>  
                        <li><a href="best-practices.html">How-To's and Best Practices</a></li>  
              </ul> 
                 </li> 
                 <li><a href="#">Examples</a> 
                     <ul> 
                       <li><a href="all-examples.html">Examples</a></li> 
                       <li><a href="tutorials.html">Tutorials</a></li> 
                       <li><a href="demos.html">Demos</a></li> 
                       <li><a href="qdeclarativeexamples.html">QML Examples</a></li> 
                </ul> 
                     </li> 
                 </ul> 
    </div>
  </div>
  <div class="wrapper">
    <div class="hd">
      <span></span>
    </div>
    <div class="bd group">
      <div class="sidebar">
        <div class="searchlabel">
          Search index:</div>
        <div class="search" id="sidebarsearch">
          <form id="qtdocsearch" action="" onsubmit="return false;">
            <fieldset>
              <input type="text" name="searchstring" id="pageType" value="" />
 <div id="resultdialog"> 
 <a href="#" id="resultclose">Close</a> 
 <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> 
 <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span>&nbsp;results:</p> 
 <ul id="resultlist" class="all"> 
 </ul> 
 </div> 
            </fieldset>
          </form>
        </div>
        <div class="box first bottombar" id="lookup">
          <h2 title="API Lookup"><span></span>
            API Lookup</h2>
          <div  id="list001" class="list">
          <ul id="ul001" >
              <li class="defaultLink"><a href="classes.html">Class index</a></li>
              <li class="defaultLink"><a href="functions.html">Function index</a></li>
              <li class="defaultLink"><a href="modules.html">Modules</a></li>
              <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
              <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
              <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
            </ul> 
          </div>
        </div>
        <div class="box bottombar" id="topics">
          <h2 title="Qt Topics"><span></span>
            Qt Topics</h2>
          <div id="list002" class="list">
            <ul id="ul002" >
               <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> 
               <li class="defaultLink"><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li> 
               <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> 
               <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li>  
               <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> 
               <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> 
            </ul>  
          </div>
        </div>
        <div class="box" id="examples">
          <h2 title="Examples"><span></span>
            Examples</h2>
          <div id="list003" class="list">
        <ul id="ul003">
              <li class="defaultLink"><a href="all-examples.html">Examples</a></li>
              <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
              <li class="defaultLink"><a href="demos.html">Demos</a></li>
              <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
            </ul> 
          </div>
        </div>
      </div>
      <div class="wrap">
        <div class="toolbar">
          <div class="breadcrumb toolblock">
            <ul>
              <li class="first"><a href="index.html">Home</a></li>
              <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qt3support.html">Qt3Support</a></li>
<li>Q3Table</li>
            </ul>
          </div>
          <div class="toolbuttons toolblock">
            <ul>
              <li id="smallA" class="t_button">A</li>
              <li id="medA" class="t_button active">A</li>
              <li id="bigA" class="t_button">A</li>
              <li id="print" class="t_button"><a href="javascript:this.print();">
                <span>Print</span></a></li>
            </ul>
        </div>
        </div>
        <div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#public-slots">Public Slots</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#protected-types">Protected Types</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#protected-slots">Protected Slots</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
<li class="level2"><a href="#headers">Headers</a></li>
<li class="level2"><a href="#rows-and-columns">Rows and Columns</a></li>
<li class="level2"><a href="#cells">Cells</a></li>
<li class="level3"><a href="#large-tables">Large tables</a></li>
<li class="level2"><a href="#selections">Selections</a></li>
<li class="level2"><a href="#signals">Signals</a></li>
</ul>
</div>
<h1 class="title">Q3Table Class Reference</h1>
<!-- $$$Q3Table-brief -->
<p>The Q3Table class provides a flexible editable table widget. <a href="#details">More...</a></p>
<!-- @@@Q3Table -->
<pre class="cpp"> <span class="preprocessor">#include &lt;Q3Table&gt;</span></pre><p><b>This class is part of the Qt 3 support library.</b> It is provided to keep old source code working. We strongly advise against using it in new code. See <a href="porting4.html#qtable">Porting to Qt 4</a> for more information.</p>
<p><b>Inherits: </b><a href="q3scrollview.html">Q3ScrollView</a>.</p>
<p><b>Inherited by: </b><a href="q3datatable.html">Q3DataTable</a>.</p>
<ul>
<li><a href="q3table-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#FocusStyle-enum">FocusStyle</a></b> { FollowStyle, SpreadSheet }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#SelectionMode-enum">SelectionMode</a></b> { NoSelection, Single, Multi, SingleRow, MultiRow }</td></tr>
</table>
<a name="properties"></a>
<h2>Properties</h2>
<table class="propsummary">
<tr><td class="topAlign"><ul>
<li class="fn"><b><a href="q3table.html#columnMovingEnabled-prop">columnMovingEnabled</a></b> : bool</li>
<li class="fn"><b><a href="q3table.html#focusStyle-prop">focusStyle</a></b> : FocusStyle</li>
<li class="fn"><b><a href="q3table.html#numCols-prop">numCols</a></b> : int</li>
<li class="fn"><b><a href="q3table.html#numRows-prop">numRows</a></b> : int</li>
<li class="fn"><b><a href="q3table.html#numSelections-prop">numSelections</a></b> : const int</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="q3table.html#readOnly-prop">readOnly</a></b> : bool</li>
<li class="fn"><b><a href="q3table.html#rowMovingEnabled-prop">rowMovingEnabled</a></b> : bool</li>
<li class="fn"><b><a href="q3table.html#selectionMode-prop">selectionMode</a></b> : SelectionMode</li>
<li class="fn"><b><a href="q3table.html#showGrid-prop">showGrid</a></b> : bool</li>
<li class="fn"><b><a href="q3table.html#sorting-prop">sorting</a></b> : bool</li>
</ul>
</td></tr>
</table>
<ul>
<li class="fn">10 properties inherited from <a href="q3scrollview.html#properties">Q3ScrollView</a></li>
<li class="fn">2 properties inherited from <a href="q3frame.html#properties">Q3Frame</a></li>
<li class="fn">6 properties inherited from <a href="qframe.html#properties">QFrame</a></li>
<li class="fn">58 properties inherited from <a href="qwidget.html#properties">QWidget</a></li>
<li class="fn">1 property inherited from <a href="qobject.html#properties">QObject</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#Q3Table">Q3Table</a></b> ( QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#Q3Table-2">Q3Table</a></b> ( int <i>numRows</i>, int <i>numCols</i>, QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#dtor.Q3Table">~Q3Table</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#addSelection">addSelection</a></b> ( const Q3TableSelection &amp; <i>s</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QRect </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#cellGeometry">cellGeometry</a></b> ( int <i>row</i>, int <i>col</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QRect </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#cellRect">cellRect</a></b> ( int <i>row</i>, int <i>col</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QWidget * </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#cellWidget">cellWidget</a></b> ( int <i>row</i>, int <i>col</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#clearCell">clearCell</a></b> ( int <i>row</i>, int <i>col</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#clearCellWidget">clearCellWidget</a></b> ( int <i>row</i>, int <i>col</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#columnAt">columnAt</a></b> ( int <i>x</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#columnMovingEnabled-prop">columnMovingEnabled</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#columnPos">columnPos</a></b> ( int <i>col</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#columnWidth">columnWidth</a></b> ( int <i>col</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#currentColumn">currentColumn</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#currentRow">currentRow</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#currentSelection">currentSelection</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#dragEnabled">dragEnabled</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#ensureCellVisible">ensureCellVisible</a></b> ( int <i>row</i>, int <i>col</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> FocusStyle </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#focusStyle-prop">focusStyle</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Q3Header * </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#horizontalHeader">horizontalHeader</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#isColumnHidden">isColumnHidden</a></b> ( int <i>col</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#isColumnReadOnly">isColumnReadOnly</a></b> ( int <i>col</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#isColumnSelected">isColumnSelected</a></b> ( int <i>col</i>, bool <i>full</i> = false ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#isColumnStretchable">isColumnStretchable</a></b> ( int <i>col</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#readOnly-prop">isReadOnly</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#isRowHidden">isRowHidden</a></b> ( int <i>row</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#isRowReadOnly">isRowReadOnly</a></b> ( int <i>row</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#isRowSelected">isRowSelected</a></b> ( int <i>row</i>, bool <i>full</i> = false ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#isRowStretchable">isRowStretchable</a></b> ( int <i>row</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#isSelected">isSelected</a></b> ( int <i>row</i>, int <i>col</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual Q3TableItem * </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#item">item</a></b> ( int <i>row</i>, int <i>col</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#numCols-prop">numCols</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#numRows-prop">numRows</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#numSelections-prop">numSelections</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#paintCell">paintCell</a></b> ( QPainter * <i>p</i>, int <i>row</i>, int <i>col</i>, const QRect &amp; <i>cr</i>, bool <i>selected</i>, const QColorGroup &amp; <i>cg</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#paintCell-2">paintCell</a></b> ( QPainter * <i>p</i>, int <i>row</i>, int <i>col</i>, const QRect &amp; <i>cr</i>, bool <i>selected</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#paintFocus">paintFocus</a></b> ( QPainter * <i>p</i>, const QRect &amp; <i>cr</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QPixmap </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#pixmap">pixmap</a></b> ( int <i>row</i>, int <i>col</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#removeSelection">removeSelection</a></b> ( const Q3TableSelection &amp; <i>s</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#removeSelection-2">removeSelection</a></b> ( int <i>num</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#repaintSelections">repaintSelections</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#rowAt">rowAt</a></b> ( int <i>y</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#rowHeight">rowHeight</a></b> ( int <i>row</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#rowMovingEnabled-prop">rowMovingEnabled</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#rowPos">rowPos</a></b> ( int <i>row</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#selectCells">selectCells</a></b> ( int <i>start_row</i>, int <i>start_col</i>, int <i>end_row</i>, int <i>end_col</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#selectColumn">selectColumn</a></b> ( int <i>col</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#selectRow">selectRow</a></b> ( int <i>row</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Q3TableSelection </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#selection">selection</a></b> ( int <i>num</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> SelectionMode </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#selectionMode-prop">selectionMode</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#setCellWidget">setCellWidget</a></b> ( int <i>row</i>, int <i>col</i>, QWidget * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#focusStyle-prop">setFocusStyle</a></b> ( FocusStyle <i>fs</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#setItem">setItem</a></b> ( int <i>row</i>, int <i>col</i>, Q3TableItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#setPixmap">setPixmap</a></b> ( int <i>row</i>, int <i>col</i>, const QPixmap &amp; <i>pix</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#selectionMode-prop">setSelectionMode</a></b> ( SelectionMode <i>mode</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#setText">setText</a></b> ( int <i>row</i>, int <i>col</i>, const QString &amp; <i>text</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#showGrid-prop">showGrid</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#sortColumn">sortColumn</a></b> ( int <i>col</i>, bool <i>ascending</i> = true, bool <i>wholeRows</i> = false )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#sorting-prop">sorting</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#takeItem">takeItem</a></b> ( Q3TableItem * <i>i</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QString </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#text">text</a></b> ( int <i>row</i>, int <i>col</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#updateCell">updateCell</a></b> ( int <i>row</i>, int <i>col</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#updateHeaderStates">updateHeaderStates</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Q3Header * </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#verticalHeader">verticalHeader</a></b> () const</td></tr>
</table>
<a name="reimplemented-public-functions"></a>
<h2>Reimplemented Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#eventFilter">eventFilter</a></b> ( QObject * <i>o</i>, QEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QVariant </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#inputMethodQuery">inputMethodQuery</a></b> ( Qt::InputMethodQuery <i>query</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSize </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#sizeHint">sizeHint</a></b> () const</td></tr>
</table>
<ul>
<li class="fn">49 public functions inherited from <a href="q3scrollview.html#public-functions">Q3ScrollView</a></li>
<li class="fn">4 public functions inherited from <a href="q3frame.html#public-functions">Q3Frame</a></li>
<li class="fn">14 public functions inherited from <a href="qframe.html#public-functions">QFrame</a></li>
<li class="fn">221 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
<li class="fn">29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
<li class="fn">13 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<a name="public-slots"></a>
<h2>Public Slots</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#adjustColumn">adjustColumn</a></b> ( int <i>col</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#adjustRow">adjustRow</a></b> ( int <i>row</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#clearSelection">clearSelection</a></b> ( bool <i>repaint</i> = true )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#editCell">editCell</a></b> ( int <i>row</i>, int <i>col</i>, bool <i>replace</i> = false )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#hideColumn">hideColumn</a></b> ( int <i>col</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#hideRow">hideRow</a></b> ( int <i>row</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#insertColumns">insertColumns</a></b> ( int <i>col</i>, int <i>count</i> = 1 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#insertRows">insertRows</a></b> ( int <i>row</i>, int <i>count</i> = 1 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#removeColumn">removeColumn</a></b> ( int <i>col</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#removeColumns">removeColumns</a></b> ( const Q3MemArray&lt;int&gt; &amp; <i>cols</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#removeRow">removeRow</a></b> ( int <i>row</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#removeRows">removeRows</a></b> ( const Q3MemArray&lt;int&gt; &amp; <i>rows</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#setColumnLabels">setColumnLabels</a></b> ( const QStringList &amp; <i>labels</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#columnMovingEnabled-prop">setColumnMovingEnabled</a></b> ( bool <i>b</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#setColumnReadOnly">setColumnReadOnly</a></b> ( int <i>col</i>, bool <i>ro</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#setColumnStretchable">setColumnStretchable</a></b> ( int <i>col</i>, bool <i>stretch</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#setColumnWidth">setColumnWidth</a></b> ( int <i>col</i>, int <i>w</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#setCurrentCell">setCurrentCell</a></b> ( int <i>row</i>, int <i>col</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#setDragEnabled">setDragEnabled</a></b> ( bool <i>b</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#setLeftMargin">setLeftMargin</a></b> ( int <i>m</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#numCols-prop">setNumCols</a></b> ( int <i>r</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#numRows-prop">setNumRows</a></b> ( int <i>r</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#readOnly-prop">setReadOnly</a></b> ( bool <i>b</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#setRowHeight">setRowHeight</a></b> ( int <i>row</i>, int <i>h</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#setRowLabels">setRowLabels</a></b> ( const QStringList &amp; <i>labels</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#rowMovingEnabled-prop">setRowMovingEnabled</a></b> ( bool <i>b</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#setRowReadOnly">setRowReadOnly</a></b> ( int <i>row</i>, bool <i>ro</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#setRowStretchable">setRowStretchable</a></b> ( int <i>row</i>, bool <i>stretch</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#showGrid-prop">setShowGrid</a></b> ( bool <i>b</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#sorting-prop">setSorting</a></b> ( bool <i>b</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#setTopMargin">setTopMargin</a></b> ( int <i>m</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#showColumn">showColumn</a></b> ( int <i>col</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#showRow">showRow</a></b> ( int <i>row</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#swapCells">swapCells</a></b> ( int <i>row1</i>, int <i>col1</i>, int <i>row2</i>, int <i>col2</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#swapColumns">swapColumns</a></b> ( int <i>col1</i>, int <i>col2</i>, bool <i>swapHeader</i> = false )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#swapRows">swapRows</a></b> ( int <i>row1</i>, int <i>row2</i>, bool <i>swapHeader</i> = false )</td></tr>
</table>
<ul>
<li class="fn">8 public slots inherited from <a href="q3scrollview.html#public-slots">Q3ScrollView</a></li>
<li class="fn">19 public slots inherited from <a href="qwidget.html#public-slots">QWidget</a></li>
<li class="fn">1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
</ul>
<a name="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#clicked">clicked</a></b> ( int <i>row</i>, int <i>col</i>, int <i>button</i>, const QPoint &amp; <i>mousePos</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#contextMenuRequested">contextMenuRequested</a></b> ( int <i>row</i>, int <i>col</i>, const QPoint &amp; <i>pos</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#currentChanged">currentChanged</a></b> ( int <i>row</i>, int <i>col</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#doubleClicked">doubleClicked</a></b> ( int <i>row</i>, int <i>col</i>, int <i>button</i>, const QPoint &amp; <i>mousePos</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#dropped">dropped</a></b> ( QDropEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#pressed">pressed</a></b> ( int <i>row</i>, int <i>col</i>, int <i>button</i>, const QPoint &amp; <i>mousePos</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#selectionChanged">selectionChanged</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#valueChanged">valueChanged</a></b> ( int <i>row</i>, int <i>col</i> )</td></tr>
</table>
<ul>
<li class="fn">5 signals inherited from <a href="q3scrollview.html#signals">Q3ScrollView</a></li>
<li class="fn">1 signal inherited from <a href="qwidget.html#signals">QWidget</a></li>
<li class="fn">1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
</ul>
<a name="protected-types"></a>
<h2>Protected Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#EditMode-enum">EditMode</a></b> { NotEditing, Editing, Replacing }</td></tr>
</table>
<a name="protected-functions"></a>
<h2>Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#activateNextCell">activateNextCell</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QWidget * </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#beginEdit">beginEdit</a></b> ( int <i>row</i>, int <i>col</i>, bool <i>replace</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QWidget * </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#createEditor">createEditor</a></b> ( int <i>row</i>, int <i>col</i>, bool <i>initFromCell</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#currEditCol">currEditCol</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#currEditRow">currEditRow</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual Q3DragObject * </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#dragObject">dragObject</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> EditMode </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#editMode">editMode</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#endEdit">endEdit</a></b> ( int <i>row</i>, int <i>col</i>, bool <i>accept</i>, bool <i>replace</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#indexOf">indexOf</a></b> ( int <i>row</i>, int <i>col</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#insertWidget">insertWidget</a></b> ( int <i>row</i>, int <i>col</i>, QWidget * <i>w</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#isEditing">isEditing</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#paintEmptyArea">paintEmptyArea</a></b> ( QPainter * <i>p</i>, int <i>cx</i>, int <i>cy</i>, int <i>cw</i>, int <i>ch</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#resizeData">resizeData</a></b> ( int <i>len</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#setCellContentFromEditor">setCellContentFromEditor</a></b> ( int <i>row</i>, int <i>col</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#setEditMode">setEditMode</a></b> ( EditMode <i>mode</i>, int <i>row</i>, int <i>col</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#startDrag">startDrag</a></b> ()</td></tr>
</table>
<a name="reimplemented-protected-functions"></a>
<h2>Reimplemented Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#contentsContextMenuEvent">contentsContextMenuEvent</a></b> ( QContextMenuEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#contentsDragEnterEvent">contentsDragEnterEvent</a></b> ( QDragEnterEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#contentsDragLeaveEvent">contentsDragLeaveEvent</a></b> ( QDragLeaveEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#contentsDragMoveEvent">contentsDragMoveEvent</a></b> ( QDragMoveEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#contentsDropEvent">contentsDropEvent</a></b> ( QDropEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#contentsMouseDoubleClickEvent">contentsMouseDoubleClickEvent</a></b> ( QMouseEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#contentsMouseMoveEvent">contentsMouseMoveEvent</a></b> ( QMouseEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#contentsMousePressEvent">contentsMousePressEvent</a></b> ( QMouseEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#contentsMouseReleaseEvent">contentsMouseReleaseEvent</a></b> ( QMouseEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#drawContents">drawContents</a></b> ( QPainter * <i>p</i>, int <i>cx</i>, int <i>cy</i>, int <i>cw</i>, int <i>ch</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#focusInEvent">focusInEvent</a></b> ( QFocusEvent * )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#focusOutEvent">focusOutEvent</a></b> ( QFocusEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#keyPressEvent">keyPressEvent</a></b> ( QKeyEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#paintEvent">paintEvent</a></b> ( QPaintEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#showEvent">showEvent</a></b> ( QShowEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#viewportResizeEvent">viewportResizeEvent</a></b> ( QResizeEvent * <i>e</i> )</td></tr>
</table>
<ul>
<li class="fn">26 protected functions inherited from <a href="q3scrollview.html#protected-functions">Q3ScrollView</a></li>
<li class="fn">5 protected functions inherited from <a href="q3frame.html#protected-functions">Q3Frame</a></li>
<li class="fn">3 protected functions inherited from <a href="qframe.html#protected-functions">QFrame</a></li>
<li class="fn">37 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
<li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
<li class="fn">1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li>
</ul>
<a name="protected-slots"></a>
<h2>Protected Slots</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#columnClicked">columnClicked</a></b> ( int <i>col</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#columnIndexChanged">columnIndexChanged</a></b> ( int <i>section</i>, int <i>fromIndex</i>, int <i>toIndex</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#columnWidthChanged">columnWidthChanged</a></b> ( int <i>col</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#rowHeightChanged">rowHeightChanged</a></b> ( int <i>row</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3table.html#rowIndexChanged">rowIndexChanged</a></b> ( int <i>section</i>, int <i>fromIndex</i>, int <i>toIndex</i> )</td></tr>
</table>
<ul>
<li class="fn">1 protected slot inherited from <a href="qwidget.html#protected-slots">QWidget</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">4 static public members inherited from <a href="qwidget.html#static-public-members">QWidget</a></li>
<li class="fn">7 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
</ul>
<a name="details"></a>
<!-- $$$Q3Table-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The Q3Table class provides a flexible editable table widget.</p>
<p>Q3Table is easy to use, although it does have a large API because of the comprehensive functionality that it provides. Q3Table includes functions for manipulating <a href="#headers">headers</a>, <a href="#columnsrows">rows and columns</a>, <a href="#cells">cells</a> and <a href="#selections">selections</a>. Q3Table also provides in-place editing and drag and drop, as well as a useful set of <a href="#signals">signals</a>. Q3Table efficiently supports very large tables, for example, tables one million by one million cells are perfectly possible. Q3Table is economical with memory, using none for unused cells.</p>
<pre class="cpp"> <span class="type">Q3Table</span> <span class="operator">*</span>table <span class="operator">=</span> <span class="keyword">new</span> <span class="type">Q3Table</span>(<span class="number">100</span><span class="operator">,</span> <span class="number">250</span><span class="operator">,</span> <span class="keyword">this</span>);
 table<span class="operator">-</span><span class="operator">&gt;</span>setPixmap(<span class="number">3</span><span class="operator">,</span> <span class="number">2</span><span class="operator">,</span> pix);
 table<span class="operator">-</span><span class="operator">&gt;</span>setText(<span class="number">3</span><span class="operator">,</span> <span class="number">2</span><span class="operator">,</span> <span class="string">&quot;A pixmap&quot;</span>);</pre>
<p>The first line constructs the table specifying its size in rows and columns. We then insert a pixmap and some text into the <i>same</i> <a href="#cells">cell</a>, with the pixmap appearing to the left of the text. Q3Table cells can be populated with <a href="q3tableitem.html">Q3TableItem</a>s, <a href="q3combotableitem.html">Q3ComboTableItem</a>s or by <a href="q3checktableitem.html">Q3CheckTableItem</a>s. By default a vertical header appears at the left of the table showing row numbers and a horizontal header appears at the top of the table showing column numbers. (The numbers displayed start at 1, although row and column numbers within Q3Table begin at 0.)</p>
<p>If you want to use mouse tracking call setMouseTracking(true) on the <i>viewport</i>.</p>
<p class="centerAlign"><img src="images/qtableitems.png" alt="Table Items" /></p><a name="headers"></a><a name="headers"></a>
<h3>Headers</h3>
<p>Q3Table supports a header column, e.g&#x2e; to display row numbers, and a header row, e.g to display column titles. To set row or column labels use <a href="q3header.html#setLabel">Q3Header::setLabel</a>() on the pointers returned by <a href="q3table.html#verticalHeader">verticalHeader</a>() and <a href="q3table.html#horizontalHeader">horizontalHeader</a>() respectively. The vertical header is displayed within the table's left margin whose width is set with <a href="q3table.html#setLeftMargin">setLeftMargin</a>(). The horizontal header is displayed within the table's top margin whose height is set with <a href="q3table.html#setTopMargin">setTopMargin</a>(). The table's grid can be switched off with <a href="q3table.html#showGrid-prop">setShowGrid</a>(). If you want to hide a horizontal header call <a href="qwidget.html#hide">hide</a>(), and call setTopMargin(0) so that the area the header would have occupied is reduced to zero size.</p>
<p>Header labels are indexed via their section numbers. Note that the default behavior of <a href="q3header.html">Q3Header</a> regarding section numbers is overridden for Q3Table. See the explanation below in the Rows and Columns section in the discussion of moving columns and rows.</p>
<a name="columnsrows"></a><a name="rows-and-columns"></a>
<h3>Rows and Columns</h3>
<p>Row and column sizes are set with <a href="q3table.html#setRowHeight">setRowHeight</a>() and <a href="q3table.html#setColumnWidth">setColumnWidth</a>(). If you want a row high enough to show the tallest item in its entirety, use <a href="q3table.html#adjustRow">adjustRow</a>(). Similarly, to make a column wide enough to show the widest item use <a href="q3table.html#adjustColumn">adjustColumn</a>(). If you want the row height and column width to adjust automatically as the height and width of the table changes use <a href="q3table.html#setRowStretchable">setRowStretchable</a>() and <a href="q3table.html#setColumnStretchable">setColumnStretchable</a>().</p>
<p>Rows and columns can be hidden and shown with <a href="q3table.html#hideRow">hideRow</a>(), <a href="q3table.html#hideColumn">hideColumn</a>(), <a href="q3table.html#showRow">showRow</a>() and <a href="q3table.html#showColumn">showColumn</a>(). New rows and columns are inserted using <a href="q3table.html#insertRows">insertRows</a>() and <a href="q3table.html#insertColumns">insertColumns</a>(). Additional rows and columns are added at the bottom (rows) or right (columns) if you set <a href="q3table.html#numRows-prop">setNumRows</a>() or <a href="q3table.html#numCols-prop">setNumCols</a>() to be larger than <a href="q3table.html#numRows-prop">numRows</a>() or <a href="q3table.html#numCols-prop">numCols</a>(). Existing rows and columns are removed with <a href="q3table.html#removeRow">removeRow</a>() and <a href="q3table.html#removeColumn">removeColumn</a>(). Multiple rows and columns can be removed with <a href="q3table.html#removeRows">removeRows</a>() and <a href="q3table.html#removeColumns">removeColumns</a>().</p>
<p>Rows and columns can be set to be movable using <a href="q3table.html#rowMovingEnabled-prop">rowMovingEnabled</a>() and <a href="q3table.html#columnMovingEnabled-prop">columnMovingEnabled</a>(). The user can drag them to reorder them holding down the Ctrl key and dragging the mouse. For performance reasons, the default behavior of <a href="q3header.html">Q3Header</a> section numbers is overridden by Q3Table. Currently in Q3Table, when a row or column is dragged and reordered, the section number is also changed to its new position. Therefore, there is no difference between the section and the index fields in <a href="q3header.html">Q3Header</a>. The Q3Table <a href="q3header.html">Q3Header</a> classes do not provide a mechanism for indexing independently of the user interface ordering.</p>
<p>The table can be sorted using <a href="q3table.html#sortColumn">sortColumn</a>(). Users can sort a column by clicking its header if <a href="q3table.html#sorting-prop">setSorting</a>() is set to true. Rows can be swapped with <a href="q3table.html#swapRows">swapRows</a>(), columns with <a href="q3table.html#swapColumns">swapColumns</a>() and cells with <a href="q3table.html#swapCells">swapCells</a>().</p>
<p>For editable tables (see <a href="q3table.html#readOnly-prop">setReadOnly</a>()) you can set the read-only property of individual rows and columns with <a href="q3table.html#setRowReadOnly">setRowReadOnly</a>() and <a href="q3table.html#setColumnReadOnly">setColumnReadOnly</a>(). (Whether a cell is editable or read-only depends on these settings and the cell's <a href="q3tableitem.html">Q3TableItem</a>.</p>
<p>The row and column which have the focus are returned by <a href="q3table.html#currentRow">currentRow</a>() and <a href="q3table.html#currentColumn">currentColumn</a>() respectively.</p>
<p>Although many Q3Table functions operate in terms of rows and columns the <a href="q3table.html#indexOf">indexOf</a>() function returns a single integer identifying a particular cell.</p>
<a name="cells"></a><a name="cells"></a>
<h3>Cells</h3>
<p>All of a Q3Table's cells are empty when the table is constructed.</p>
<p>There are two approaches to populating the table's cells. The first and simplest approach is to use Q3TableItems or <a href="q3tableitem.html">Q3TableItem</a> subclasses. The second approach doesn't use Q3TableItems at all which is useful for very large sparse tables but requires you to reimplement a number of functions. We'll look at each approach in turn.</p>
<p>To put a string in a cell use <a href="q3table.html#setText">setText</a>(). This function will create a new <a href="q3tableitem.html">Q3TableItem</a> for the cell if one doesn't already exist, and displays the text in it. By default the table item's widget will be a <a href="qlineedit.html">QLineEdit</a>. A pixmap may be put in a cell with <a href="q3table.html#setPixmap">setPixmap</a>(), which also creates a table item if required. A cell may contain <i>both</i> a pixmap and text; the pixmap is displayed to the left of the text. Another approach is to construct a <a href="q3tableitem.html">Q3TableItem</a> or <a href="q3tableitem.html">Q3TableItem</a> subclass, set its properties, then insert it into a cell with <a href="q3table.html#setItem">setItem</a>().</p>
<p>If you want cells which contain comboboxes use the <a href="q3combotableitem.html">Q3ComboTableItem</a> class. Similarly if you require cells containing checkboxes use the <a href="q3checktableitem.html">Q3CheckTableItem</a> class. These table items look and behave just like the combobox or checkbox widgets but consume far less memory.</p>
<p>Q3Table takes ownership of its Q3TableItems and will delete them when the table itself is destroyed. You can take ownership of a table item using <a href="q3table.html#takeItem">takeItem</a>() which you use to move a cell's contents from one cell to another, either within the same table, or from one table to another. (See also, <a href="q3table.html#swapCells">swapCells</a>()).</p>
<p>In-place editing of the text in Q3TableItems, and the values in Q3ComboTableItems and Q3CheckTableItems works automatically. Cells may be editable or read-only, see <a href="q3tableitem.html#EditType-enum">Q3TableItem::EditType</a>. If you want fine control over editing see <a href="q3table.html#beginEdit">beginEdit</a>() and <a href="q3table.html#endEdit">endEdit</a>().</p>
<p>The contents of a cell can be retrieved as a <a href="q3tableitem.html">Q3TableItem</a> using <a href="q3table.html#item">item</a>(), or as a string with <a href="q3table.html#text">text</a>() or as a pixmap (if there is one) with <a href="q3table.html#pixmap">pixmap</a>(). A cell's bounding rectangle is given by <a href="q3table.html#cellGeometry">cellGeometry</a>(). Use <a href="q3table.html#updateCell">updateCell</a>() to repaint a cell, for example to clear away a cell's visual representation after it has been deleted with <a href="q3table.html#clearCell">clearCell</a>(). The table can be forced to scroll to show a particular cell with <a href="q3table.html#ensureCellVisible">ensureCellVisible</a>(). The <a href="q3table.html#isSelected">isSelected</a>() function indicates if a cell is selected.</p>
<p>It is possible to use your own widget as a cell's widget using <a href="q3table.html#setCellWidget">setCellWidget</a>(), but subclassing <a href="q3tableitem.html">Q3TableItem</a> might be a simpler approach. The cell's widget (if there is one) can be removed with <a href="q3table.html#clearCellWidget">clearCellWidget</a>().</p>
<a name="notes-on-large-tables"></a><a name="bigtables"></a><a name="large-tables"></a>
<h4>Large tables</h4>
<p>For large, sparse, tables using Q3TableItems or other widgets is inefficient. The solution is to <i>draw</i> the cell as it should appear and to create and destroy cell editors on demand.</p>
<p>This approach requires that you reimplement various functions. Reimplement <a href="q3table.html#paintCell">paintCell</a>() to display your data, and <a href="q3table.html#createEditor">createEditor</a>() and <a href="q3table.html#setCellContentFromEditor">setCellContentFromEditor</a>() to support in-place editing. It is very important to reimplement <a href="q3table.html#resizeData">resizeData</a>() to have no functionality, to prevent Q3Table from attempting to create a huge array. You will also need to reimplement <a href="q3table.html#item">item</a>(), <a href="q3table.html#setItem">setItem</a>(), <a href="q3table.html#takeItem">takeItem</a>(), <a href="q3table.html#clearCell">clearCell</a>(), and <a href="q3table.html#insertWidget">insertWidget</a>(), <a href="q3table.html#cellWidget">cellWidget</a>() and <a href="q3table.html#clearCellWidget">clearCellWidget</a>(). In almost every circumstance (for sorting, removing and inserting columns and rows, etc.), you also need to reimplement <a href="q3table.html#swapRows">swapRows</a>(), <a href="q3table.html#swapCells">swapCells</a>() and <a href="q3table.html#swapColumns">swapColumns</a>(), including header handling.</p>
<p>If you represent active cells with a dictionary of Q3TableItems and QWidgets, i.e&#x2e; only store references to cells that are actually used, many of the functions can be implemented with a single line of code.</p>
<p>For more information on cells see the <a href="q3tableitem.html">Q3TableItem</a> documenation.</p>
<a name="selections"></a><a name="selections"></a>
<h3>Selections</h3>
<p>Q3Table's support single selection, multi-selection (multiple cells) or no selection. The selection mode is set with <a href="q3table.html#selectionMode-prop">setSelectionMode</a>(). Use <a href="q3table.html#isSelected">isSelected</a>() to determine if a particular cell is selected, and <a href="q3table.html#isRowSelected">isRowSelected</a>() and <a href="q3table.html#isColumnSelected">isColumnSelected</a>() to see if a row or column is selected.</p>
<p>Q3Table's support many simultaneous selections. You can programmatically select cells with <a href="q3table.html#addSelection">addSelection</a>(). The number of selections is given by <a href="q3table.html#numSelections-prop">numSelections</a>(). The current selection is returned by <a href="q3table.html#currentSelection">currentSelection</a>(). You can remove a selection with <a href="q3table.html#removeSelection">removeSelection</a>() and remove all selections with <a href="q3table.html#clearSelection">clearSelection</a>(). Selections are <a href="q3tableselection.html">Q3TableSelection</a> objects.</p>
<p>To easily add a new selection use <a href="q3table.html#selectCells">selectCells</a>(), <a href="q3table.html#selectRow">selectRow</a>() or <a href="q3table.html#selectColumn">selectColumn</a>().</p>
<p>Alternatively, use <a href="q3table.html#addSelection">addSelection</a>() to add new selections using <a href="q3tableselection.html">Q3TableSelection</a> objects. The advantage of using <a href="q3tableselection.html">Q3TableSelection</a> objects is that you can call <a href="q3tableselection.html#expandTo">Q3TableSelection::expandTo</a>() to resize the selection and can query and compare them.</p>
<p>The number of selections is given by <a href="q3table.html#numSelections-prop">numSelections</a>(). The current selection is returned by <a href="q3table.html#currentSelection">currentSelection</a>(). You can remove a selection with <a href="q3table.html#removeSelection">removeSelection</a>() and remove all selections with <a href="q3table.html#clearSelection">clearSelection</a>().</p>
<a name="signals"></a><a name="signals"></a>
<h3>Signals</h3>
<p>When the user clicks a cell the <a href="q3table.html#currentChanged">currentChanged</a>() signal is emitted. You can also connect to the lower level <a href="q3table.html#clicked">clicked</a>(), <a href="q3table.html#doubleClicked">doubleClicked</a>() and <a href="q3table.html#pressed">pressed</a>() signals. If the user changes the selection the <a href="q3table.html#selectionChanged">selectionChanged</a>() signal is emitted; similarly if the user changes a cell's value the <a href="q3table.html#valueChanged">valueChanged</a>() signal is emitted. If the user right-clicks (or presses the appropriate platform-specific key sequence) the <a href="q3table.html#contextMenuRequested">contextMenuRequested</a>() signal is emitted. If the user drops a drag and drop object the <a href="q3table.html#dropped">dropped</a>() signal is emitted with the drop event.</p>
</div>
<!-- @@@Q3Table -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$EditMode$$$NotEditing$$$Editing$$$Replacing -->
<h3 class="fn"><a name="EditMode-enum"></a>enum Q3Table::<span class="name">EditMode</span></h3>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>Q3Table::NotEditing</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">No cell is currently being edited.</td></tr>
<tr><td class="topAlign"><tt>Q3Table::Editing</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">A cell is currently being edited. The editor was initialised with the cell's contents.</td></tr>
<tr><td class="topAlign"><tt>Q3Table::Replacing</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">A cell is currently being edited. The editor was not initialised with the cell's contents.</td></tr>
</table>
<!-- @@@EditMode -->
<!-- $$$FocusStyle$$$FollowStyle$$$SpreadSheet -->
<h3 class="fn"><a name="FocusStyle-enum"></a>enum Q3Table::<span class="name">FocusStyle</span></h3>
<p>Specifies how the current cell (focus cell) is drawn.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>Q3Table::FollowStyle</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The current cell is drawn according to the current style and the cell's background is also drawn selected, if the current cell is within a selection</td></tr>
<tr><td class="topAlign"><tt>Q3Table::SpreadSheet</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The current cell is drawn as in a spreadsheet. This means, it is signified by a black rectangle around the cell, and the background of the current cell is always drawn with the widget's base color - even when selected.</td></tr>
</table>
<!-- @@@FocusStyle -->
<!-- $$$SelectionMode$$$Single$$$Multi$$$SingleRow$$$MultiRow$$$NoSelection -->
<h3 class="fn"><a name="SelectionMode-enum"></a>enum Q3Table::<span class="name">SelectionMode</span></h3>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>Q3Table::NoSelection</tt></td><td class="topAlign"><tt>4</tt></td><td class="topAlign">No cell can be selected by the user.</td></tr>
<tr><td class="topAlign"><tt>Q3Table::Single</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The user may only select a single range of cells.</td></tr>
<tr><td class="topAlign"><tt>Q3Table::Multi</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The user may select multiple ranges of cells.</td></tr>
<tr><td class="topAlign"><tt>Q3Table::SingleRow</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">The user may select one row at once.</td></tr>
<tr><td class="topAlign"><tt>Q3Table::MultiRow</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">The user may select multiple rows.</td></tr>
</table>
<!-- @@@SelectionMode -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$columnMovingEnabled-prop$$$columnMovingEnabled$$$setColumnMovingEnabledbool -->
<h3 class="fn"><a name="columnMovingEnabled-prop"></a><span class="name">columnMovingEnabled</span> : <span class="type">bool</span></h3>
<p>This property holds whether columns can be moved by the user.</p>
<p>The default is false. Columns are moved by dragging whilst holding down the Ctrl key.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>columnMovingEnabled</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setColumnMovingEnabled</b></span> ( bool <i>b</i> )</td></tr>
</table>
<p><b>See also </b><a href="q3table.html#rowMovingEnabled-prop">rowMovingEnabled</a>.</p>
<!-- @@@columnMovingEnabled -->
<!-- $$$focusStyle-prop$$$focusStyle$$$setFocusStyleFocusStyle -->
<h3 class="fn"><a name="focusStyle-prop"></a><span class="name">focusStyle</span> : <span class="type"><a href="q3table.html#FocusStyle-enum">FocusStyle</a></span></h3>
<p>This property holds how the current (focus) cell is drawn.</p>
<p>The default style is <tt>SpreadSheet</tt>.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> FocusStyle </td><td class="memItemRight bottomAlign"><span class="name"><b>focusStyle</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFocusStyle</b></span> ( FocusStyle <i>fs</i> )</td></tr>
</table>
<p><b>See also </b><a href="q3table.html#FocusStyle-enum">Q3Table::FocusStyle</a>.</p>
<!-- @@@focusStyle -->
<!-- $$$numCols-prop$$$numCols$$$setNumColsint -->
<h3 class="fn"><a name="numCols-prop"></a><span class="name">numCols</span> : <span class="type">int</span></h3>
<p>This property holds the number of columns in the table.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> virtual int </td><td class="memItemRight bottomAlign"><span class="name"><b>numCols</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setNumCols</b></span> ( int <i>r</i> )</td></tr>
</table>
<p><b>See also </b><a href="q3table.html#numRows-prop">numRows</a>.</p>
<!-- @@@numCols -->
<!-- $$$numRows-prop$$$numRows$$$setNumRowsint -->
<h3 class="fn"><a name="numRows-prop"></a><span class="name">numRows</span> : <span class="type">int</span></h3>
<p>This property holds the number of rows in the table.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> virtual int </td><td class="memItemRight bottomAlign"><span class="name"><b>numRows</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setNumRows</b></span> ( int <i>r</i> )</td></tr>
</table>
<p><b>See also </b><a href="q3table.html#numCols-prop">numCols</a>.</p>
<!-- @@@numRows -->
<!-- $$$numSelections-prop$$$numSelections -->
<h3 class="fn"><a name="numSelections-prop"></a><span class="name">numSelections</span> : const <span class="type">int</span></h3>
<p>This property holds the number of selections.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>numSelections</b></span> () const</td></tr>
</table>
<p><b>See also </b><a href="q3table.html#currentSelection">currentSelection</a>().</p>
<!-- @@@numSelections -->
<!-- $$$readOnly-prop$$$isReadOnly$$$setReadOnlybool -->
<h3 class="fn"><a name="readOnly-prop"></a><span class="name">readOnly</span> : <span class="type">bool</span></h3>
<p>This property holds whether the table is read-only.</p>
<p>Whether a cell in the table is editable or read-only depends on the cell's <a href="q3tableitem.html#EditType-enum">EditType</a>, and this setting.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isReadOnly</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setReadOnly</b></span> ( bool <i>b</i> )</td></tr>
</table>
<p><b>See also </b><a href="qwidget.html#enabled-prop">QWidget::enabled</a>, <a href="q3table.html#setColumnReadOnly">setColumnReadOnly</a>(), and <a href="q3table.html#setRowReadOnly">setRowReadOnly</a>().</p>
<!-- @@@readOnly -->
<!-- $$$rowMovingEnabled-prop$$$rowMovingEnabled$$$setRowMovingEnabledbool -->
<h3 class="fn"><a name="rowMovingEnabled-prop"></a><span class="name">rowMovingEnabled</span> : <span class="type">bool</span></h3>
<p>This property holds whether rows can be moved by the user.</p>
<p>The default is false. Rows are moved by dragging whilst holding down the Ctrl key.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>rowMovingEnabled</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRowMovingEnabled</b></span> ( bool <i>b</i> )</td></tr>
</table>
<p><b>See also </b><a href="q3table.html#columnMovingEnabled-prop">columnMovingEnabled</a>.</p>
<!-- @@@rowMovingEnabled -->
<!-- $$$selectionMode-prop$$$selectionMode$$$setSelectionModeSelectionMode -->
<h3 class="fn"><a name="selectionMode-prop"></a><span class="name">selectionMode</span> : <span class="type"><a href="q3table.html#SelectionMode-enum">SelectionMode</a></span></h3>
<p>This property holds the current selection mode.</p>
<p>The default mode is <tt>Multi</tt> which allows the user to select multiple ranges of cells.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> SelectionMode </td><td class="memItemRight bottomAlign"><span class="name"><b>selectionMode</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSelectionMode</b></span> ( SelectionMode <i>mode</i> )</td></tr>
</table>
<!-- @@@selectionMode -->
<!-- $$$showGrid-prop$$$showGrid$$$setShowGridbool -->
<h3 class="fn"><a name="showGrid-prop"></a><span class="name">showGrid</span> : <span class="type">bool</span></h3>
<p>This property holds whether the table's grid is displayed.</p>
<p>The grid is shown by default.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>showGrid</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShowGrid</b></span> ( bool <i>b</i> )</td></tr>
</table>
<!-- @@@showGrid -->
<!-- $$$sorting-prop$$$sorting$$$setSortingbool -->
<h3 class="fn"><a name="sorting-prop"></a><span class="name">sorting</span> : <span class="type">bool</span></h3>
<p>This property holds whether a click on the header of a column sorts that column.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>sorting</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSorting</b></span> ( bool <i>b</i> )</td></tr>
</table>
<p><b>See also </b><a href="q3table.html#sortColumn">sortColumn</a>().</p>
<!-- @@@sorting -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$Q3Table[overload1]$$$Q3TableQWidget*constchar* -->
<h3 class="fn"><a name="Q3Table"></a>Q3Table::<span class="name">Q3Table</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0, const <span class="type">char</span> * <i>name</i> = 0 )</h3>
<p>Creates an empty table object called <i>name</i> as a child of <i>parent</i>.</p>
<p>Call <a href="q3table.html#numRows-prop">setNumRows</a>() and <a href="q3table.html#numCols-prop">setNumCols</a>() to set the table size before populating the table if you're using Q3TableItems.</p>
<!-- @@@Q3Table -->
<!-- $$$Q3Table$$$Q3TableintintQWidget*constchar* -->
<h3 class="fn"><a name="Q3Table-2"></a>Q3Table::<span class="name">Q3Table</span> ( <span class="type">int</span> <i>numRows</i>, <span class="type">int</span> <i>numCols</i>, <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0, const <span class="type">char</span> * <i>name</i> = 0 )</h3>
<p>Constructs an empty table called <i>name</i> with <i>numRows</i> rows and <i>numCols</i> columns. The table is a child of <i>parent</i>.</p>
<p>If you're using <a href="q3tableitem.html" class="compat">Q3TableItem</a>s to populate the table's cells, you can create <a href="q3tableitem.html" class="compat">Q3TableItem</a>, <a href="q3combotableitem.html" class="compat">Q3ComboTableItem</a> and <a href="q3checktableitem.html" class="compat">Q3CheckTableItem</a> items and insert them into the table using <a href="q3table.html#setItem">setItem</a>(). (See the notes on large tables for an alternative to using Q3TableItems.)</p>
<!-- @@@Q3Table -->
<!-- $$$~Q3Table[overload1]$$$~Q3Table -->
<h3 class="fn"><a name="dtor.Q3Table"></a>Q3Table::<span class="name">~Q3Table</span> ()</h3>
<p>Releases all the resources used by the <a href="q3table.html" class="compat">Q3Table</a> object, including all <a href="q3tableitem.html" class="compat">Q3TableItem</a>s and their widgets.</p>
<!-- @@@~Q3Table -->
<!-- $$$activateNextCell[overload1]$$$activateNextCell -->
<h3 class="fn"><a name="activateNextCell"></a><span class="type">void</span> Q3Table::<span class="name">activateNextCell</span> ()<tt> [virtual protected]</tt></h3>
<p>This function is called to activate the next cell if in-place editing was finished by pressing the Enter key.</p>
<p>The default behaviour is to move from top to bottom, i.e&#x2e; move to the cell beneath the cell being edited. Reimplement this function if you want different behaviour, e.g&#x2e; moving from left to right.</p>
<!-- @@@activateNextCell -->
<!-- $$$addSelection[overload1]$$$addSelectionconstQ3TableSelection& -->
<h3 class="fn"><a name="addSelection"></a><span class="type">int</span> Q3Table::<span class="name">addSelection</span> ( const <span class="type"><a href="q3tableselection.html">Q3TableSelection</a></span> &amp; <i>s</i> )<tt> [virtual]</tt></h3>
<p>Adds a selection described by <i>s</i> to the table and returns its number or -1 if the selection is invalid.</p>
<p>Remember to call <a href="q3tableselection.html#init">Q3TableSelection::init</a>() and <a href="q3tableselection.html#expandTo">Q3TableSelection::expandTo</a>() to make the selection valid (see also <a href="q3tableselection.html#isActive">Q3TableSelection::isActive</a>(), or use the <a href="q3tableselection.html" class="compat">Q3TableSelection</a>(int,int,int,int) constructor).</p>
<p><b>See also </b><a href="q3table.html#numSelections-prop">numSelections</a>(), <a href="q3table.html#removeSelection">removeSelection</a>(), and <a href="q3table.html#clearSelection">clearSelection</a>().</p>
<!-- @@@addSelection -->
<!-- $$$adjustColumn[overload1]$$$adjustColumnint -->
<h3 class="fn"><a name="adjustColumn"></a><span class="type">void</span> Q3Table::<span class="name">adjustColumn</span> ( <span class="type">int</span> <i>col</i> )<tt> [virtual slot]</tt></h3>
<p>Resizes column <i>col</i> so that the column width is wide enough to display the widest item the column contains.</p>
<p><b>See also </b><a href="q3table.html#adjustRow">adjustRow</a>().</p>
<!-- @@@adjustColumn -->
<!-- $$$adjustRow[overload1]$$$adjustRowint -->
<h3 class="fn"><a name="adjustRow"></a><span class="type">void</span> Q3Table::<span class="name">adjustRow</span> ( <span class="type">int</span> <i>row</i> )<tt> [virtual slot]</tt></h3>
<p>Resizes row <i>row</i> so that the row height is tall enough to display the tallest item the row contains.</p>
<p><b>See also </b><a href="q3table.html#adjustColumn">adjustColumn</a>().</p>
<!-- @@@adjustRow -->
<!-- $$$beginEdit[overload1]$$$beginEditintintbool -->
<h3 class="fn"><a name="beginEdit"></a><span class="type"><a href="qwidget.html">QWidget</a></span> * Q3Table::<span class="name">beginEdit</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i>, <span class="type">bool</span> <i>replace</i> )<tt> [virtual protected]</tt></h3>
<p>This function is called to start in-place editing of the cell at <i>row</i>, <i>col</i>. Editing is achieved by creating an editor (<a href="q3table.html#createEditor">createEditor</a>() is called) and setting the cell's editor with <a href="q3table.html#setCellWidget">setCellWidget</a>() to the newly created editor. (After editing is complete <a href="q3table.html#endEdit">endEdit</a>() will be called to replace the cell's content with the editor's content.) If <i>replace</i> is true the editor will start empty; otherwise it will be initialized with the cell's content (if any), i.e&#x2e; the user will be modifying the original cell content.</p>
<p><b>See also </b><a href="q3table.html#endEdit">endEdit</a>().</p>
<!-- @@@beginEdit -->
<!-- $$$cellGeometry[overload1]$$$cellGeometryintint -->
<h3 class="fn"><a name="cellGeometry"></a><span class="type"><a href="qrect.html">QRect</a></span> Q3Table::<span class="name">cellGeometry</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i> ) const<tt> [virtual]</tt></h3>
<p>Returns the bounding rectangle of the cell at <i>row</i>, <i>col</i> in content coordinates.</p>
<!-- @@@cellGeometry -->
<!-- $$$cellRect[overload1]$$$cellRectintint -->
<h3 class="fn"><a name="cellRect"></a><span class="type"><a href="qrect.html">QRect</a></span> Q3Table::<span class="name">cellRect</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i> ) const<tt> [virtual]</tt></h3>
<p>Returns the geometry of cell <i>row</i>, <i>col</i> in the cell's coordinate system. This is a convenience function useful in <a href="q3table.html#paintCell">paintCell</a>(). It is equivalent to <a href="qrect.html">QRect</a>(<a href="qpoint.html">QPoint</a>(0,0), cellGeometry( row, col).<a href="qwidget.html#size-prop">size</a>());</p>
<p><b>See also </b><a href="q3table.html#cellGeometry">cellGeometry</a>().</p>
<!-- @@@cellRect -->
<!-- $$$cellWidget[overload1]$$$cellWidgetintint -->
<h3 class="fn"><a name="cellWidget"></a><span class="type"><a href="qwidget.html">QWidget</a></span> * Q3Table::<span class="name">cellWidget</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i> ) const<tt> [virtual]</tt></h3>
<p>Returns the widget that has been set for the cell at <i>row</i>, <i>col</i>, or 0 if no widget has been set.</p>
<p>If you don't use <a href="q3tableitem.html" class="compat">Q3TableItem</a>s you may need to reimplement this function: see the notes on large tables.</p>
<p><b>See also </b><a href="q3table.html#clearCellWidget">clearCellWidget</a>() and <a href="q3table.html#setCellWidget">setCellWidget</a>().</p>
<!-- @@@cellWidget -->
<!-- $$$clearCell[overload1]$$$clearCellintint -->
<h3 class="fn"><a name="clearCell"></a><span class="type">void</span> Q3Table::<span class="name">clearCell</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i> )<tt> [virtual]</tt></h3>
<p>Removes the <a href="q3tableitem.html" class="compat">Q3TableItem</a> at <i>row</i>, <i>col</i>.</p>
<p>If you don't use <a href="q3tableitem.html" class="compat">Q3TableItem</a>s you may need to reimplement this function: see the notes on large tables.</p>
<!-- @@@clearCell -->
<!-- $$$clearCellWidget[overload1]$$$clearCellWidgetintint -->
<h3 class="fn"><a name="clearCellWidget"></a><span class="type">void</span> Q3Table::<span class="name">clearCellWidget</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i> )<tt> [virtual]</tt></h3>
<p>Removes the widget (if there is one) set for the cell at <i>row</i>, <i>col</i>.</p>
<p>If you don't use <a href="q3tableitem.html" class="compat">Q3TableItem</a>s you may need to reimplement this function: see the notes on large tables.</p>
<p>This function deletes the widget at <i>row</i>, <i>col</i>. Note that the widget is not deleted immediately; instead <a href="qobject.html#deleteLater">QObject::deleteLater</a>() is called on the widget to avoid problems with timing issues.</p>
<p><b>See also </b><a href="q3table.html#cellWidget">cellWidget</a>() and <a href="q3table.html#setCellWidget">setCellWidget</a>().</p>
<!-- @@@clearCellWidget -->
<!-- $$$clearSelection[overload1]$$$clearSelectionbool -->
<h3 class="fn"><a name="clearSelection"></a><span class="type">void</span> Q3Table::<span class="name">clearSelection</span> ( <span class="type">bool</span> <i>repaint</i> = true )<tt> [slot]</tt></h3>
<p>Clears all selections and repaints the appropriate regions if <i>repaint</i> is true.</p>
<p><b>See also </b><a href="q3table.html#removeSelection">removeSelection</a>().</p>
<!-- @@@clearSelection -->
<!-- $$$clicked[overload1]$$$clickedintintintconstQPoint& -->
<h3 class="fn"><a name="clicked"></a><span class="type">void</span> Q3Table::<span class="name">clicked</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i>, <span class="type">int</span> <i>button</i>, const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>mousePos</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when mouse button <i>button</i> is clicked. The cell where the event took place is at <i>row</i>, <i>col</i>, and the mouse's position is in <i>mousePos</i>.</p>
<p><b>See also </b><a href="qt.html#MouseButton-enum">Qt::MouseButton</a>.</p>
<!-- @@@clicked -->
<!-- $$$columnAt[overload1]$$$columnAtint -->
<h3 class="fn"><a name="columnAt"></a><span class="type">int</span> Q3Table::<span class="name">columnAt</span> ( <span class="type">int</span> <i>x</i> ) const<tt> [virtual]</tt></h3>
<p>Returns the number of the column at position <i>x</i>. <i>x</i> must be given in content coordinates.</p>
<p><b>See also </b><a href="q3table.html#columnPos">columnPos</a>() and <a href="q3table.html#rowAt">rowAt</a>().</p>
<!-- @@@columnAt -->
<!-- $$$columnClicked[overload1]$$$columnClickedint -->
<h3 class="fn"><a name="columnClicked"></a><span class="type">void</span> Q3Table::<span class="name">columnClicked</span> ( <span class="type">int</span> <i>col</i> )<tt> [virtual protected slot]</tt></h3>
<p>This function is called when the column <i>col</i> has been clicked. The default implementation sorts this column if <a href="q3table.html#sorting-prop">sorting</a>() is true.</p>
<!-- @@@columnClicked -->
<!-- $$$columnIndexChanged[overload1]$$$columnIndexChangedintintint -->
<h3 class="fn"><a name="columnIndexChanged"></a><span class="type">void</span> Q3Table::<span class="name">columnIndexChanged</span> ( <span class="type">int</span> <i>section</i>, <span class="type">int</span> <i>fromIndex</i>, <span class="type">int</span> <i>toIndex</i> )<tt> [virtual protected slot]</tt></h3>
<p>This function is called when column order is to be changed, i.e&#x2e; when the user moved the column header <i>section</i> from <i>fromIndex</i> to <i>toIndex</i>.</p>
<p>If you want to change the column order programmatically, call <a href="q3table.html#swapRows">swapRows</a>() or <a href="q3table.html#swapColumns">swapColumns</a>();</p>
<p><b>See also </b><a href="q3header.html#indexChange">Q3Header::indexChange</a>() and <a href="q3table.html#rowIndexChanged">rowIndexChanged</a>().</p>
<!-- @@@columnIndexChanged -->
<!-- $$$columnPos[overload1]$$$columnPosint -->
<h3 class="fn"><a name="columnPos"></a><span class="type">int</span> Q3Table::<span class="name">columnPos</span> ( <span class="type">int</span> <i>col</i> ) const<tt> [virtual]</tt></h3>
<p>Returns the x-coordinate of the column <i>col</i> in content coordinates.</p>
<p><b>See also </b><a href="q3table.html#columnAt">columnAt</a>() and <a href="q3table.html#rowPos">rowPos</a>().</p>
<!-- @@@columnPos -->
<!-- $$$columnWidth[overload1]$$$columnWidthint -->
<h3 class="fn"><a name="columnWidth"></a><span class="type">int</span> Q3Table::<span class="name">columnWidth</span> ( <span class="type">int</span> <i>col</i> ) const<tt> [virtual]</tt></h3>
<p>Returns the width of column <i>col</i>.</p>
<p><b>See also </b><a href="q3table.html#setColumnWidth">setColumnWidth</a>() and <a href="q3table.html#rowHeight">rowHeight</a>().</p>
<!-- @@@columnWidth -->
<!-- $$$columnWidthChanged[overload1]$$$columnWidthChangedint -->
<h3 class="fn"><a name="columnWidthChanged"></a><span class="type">void</span> Q3Table::<span class="name">columnWidthChanged</span> ( <span class="type">int</span> <i>col</i> )<tt> [virtual protected slot]</tt></h3>
<p>This function should be called whenever the column width of <i>col</i> has been changed. It updates the geometry of any affected columns and repaints the table to reflect the changes it has made.</p>
<!-- @@@columnWidthChanged -->
<!-- $$$contentsContextMenuEvent[overload1]$$$contentsContextMenuEventQContextMenuEvent* -->
<h3 class="fn"><a name="contentsContextMenuEvent"></a><span class="type">void</span> Q3Table::<span class="name">contentsContextMenuEvent</span> ( <span class="type"><a href="qcontextmenuevent.html">QContextMenuEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="q3scrollview.html#contentsContextMenuEvent">Q3ScrollView::contentsContextMenuEvent</a>().</p>
<!-- @@@contentsContextMenuEvent -->
<!-- $$$contentsDragEnterEvent[overload1]$$$contentsDragEnterEventQDragEnterEvent* -->
<h3 class="fn"><a name="contentsDragEnterEvent"></a><span class="type">void</span> Q3Table::<span class="name">contentsDragEnterEvent</span> ( <span class="type"><a href="qdragenterevent.html">QDragEnterEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="q3scrollview.html#contentsDragEnterEvent">Q3ScrollView::contentsDragEnterEvent</a>().</p>
<p>This event handler is called whenever a <a href="q3table.html" class="compat">Q3Table</a> object receives a <a href="qdragenterevent.html">QDragEnterEvent</a> <i>e</i>, i.e&#x2e; when the user pressed the mouse button to drag something.</p>
<p>The focus is moved to the cell where the <a href="qdragenterevent.html">QDragEnterEvent</a> occurred.</p>
<!-- @@@contentsDragEnterEvent -->
<!-- $$$contentsDragLeaveEvent[overload1]$$$contentsDragLeaveEventQDragLeaveEvent* -->
<h3 class="fn"><a name="contentsDragLeaveEvent"></a><span class="type">void</span> Q3Table::<span class="name">contentsDragLeaveEvent</span> ( <span class="type"><a href="qdragleaveevent.html">QDragLeaveEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="q3scrollview.html#contentsDragLeaveEvent">Q3ScrollView::contentsDragLeaveEvent</a>().</p>
<p>This event handler is called when a drag activity leaves <i>this</i> <a href="q3table.html" class="compat">Q3Table</a> object with event <i>e</i>.</p>
<!-- @@@contentsDragLeaveEvent -->
<!-- $$$contentsDragMoveEvent[overload1]$$$contentsDragMoveEventQDragMoveEvent* -->
<h3 class="fn"><a name="contentsDragMoveEvent"></a><span class="type">void</span> Q3Table::<span class="name">contentsDragMoveEvent</span> ( <span class="type"><a href="qdragmoveevent.html">QDragMoveEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="q3scrollview.html#contentsDragMoveEvent">Q3ScrollView::contentsDragMoveEvent</a>().</p>
<p>This event handler is called whenever a <a href="q3table.html" class="compat">Q3Table</a> object receives a <a href="qdragmoveevent.html">QDragMoveEvent</a> <i>e</i>, i.e&#x2e; when the user actually drags the mouse.</p>
<p>The focus is moved to the cell where the <a href="qdragmoveevent.html">QDragMoveEvent</a> occurred.</p>
<!-- @@@contentsDragMoveEvent -->
<!-- $$$contentsDropEvent[overload1]$$$contentsDropEventQDropEvent* -->
<h3 class="fn"><a name="contentsDropEvent"></a><span class="type">void</span> Q3Table::<span class="name">contentsDropEvent</span> ( <span class="type"><a href="qdropevent.html">QDropEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="q3scrollview.html#contentsDropEvent">Q3ScrollView::contentsDropEvent</a>().</p>
<p>This event handler is called when the user ends a drag and drop by dropping something onto <i>this</i> <a href="q3table.html" class="compat">Q3Table</a> and thus triggers the drop event, <i>e</i>.</p>
<!-- @@@contentsDropEvent -->
<!-- $$$contentsMouseDoubleClickEvent[overload1]$$$contentsMouseDoubleClickEventQMouseEvent* -->
<h3 class="fn"><a name="contentsMouseDoubleClickEvent"></a><span class="type">void</span> Q3Table::<span class="name">contentsMouseDoubleClickEvent</span> ( <span class="type"><a href="qmouseevent.html">QMouseEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="q3scrollview.html#contentsMouseDoubleClickEvent">Q3ScrollView::contentsMouseDoubleClickEvent</a>().</p>
<!-- @@@contentsMouseDoubleClickEvent -->
<!-- $$$contentsMouseMoveEvent[overload1]$$$contentsMouseMoveEventQMouseEvent* -->
<h3 class="fn"><a name="contentsMouseMoveEvent"></a><span class="type">void</span> Q3Table::<span class="name">contentsMouseMoveEvent</span> ( <span class="type"><a href="qmouseevent.html">QMouseEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="q3scrollview.html#contentsMouseMoveEvent">Q3ScrollView::contentsMouseMoveEvent</a>().</p>
<!-- @@@contentsMouseMoveEvent -->
<!-- $$$contentsMousePressEvent[overload1]$$$contentsMousePressEventQMouseEvent* -->
<h3 class="fn"><a name="contentsMousePressEvent"></a><span class="type">void</span> Q3Table::<span class="name">contentsMousePressEvent</span> ( <span class="type"><a href="qmouseevent.html">QMouseEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="q3scrollview.html#contentsMousePressEvent">Q3ScrollView::contentsMousePressEvent</a>().</p>
<!-- @@@contentsMousePressEvent -->
<!-- $$$contentsMouseReleaseEvent[overload1]$$$contentsMouseReleaseEventQMouseEvent* -->
<h3 class="fn"><a name="contentsMouseReleaseEvent"></a><span class="type">void</span> Q3Table::<span class="name">contentsMouseReleaseEvent</span> ( <span class="type"><a href="qmouseevent.html">QMouseEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="q3scrollview.html#contentsMouseReleaseEvent">Q3ScrollView::contentsMouseReleaseEvent</a>().</p>
<!-- @@@contentsMouseReleaseEvent -->
<!-- $$$contextMenuRequested[overload1]$$$contextMenuRequestedintintconstQPoint& -->
<h3 class="fn"><a name="contextMenuRequested"></a><span class="type">void</span> Q3Table::<span class="name">contextMenuRequested</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i>, const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>pos</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the user invokes a context menu with the right mouse button (or with a system-specific keypress). The cell where the event took place is at <i>row</i>, <i>col</i>. <i>pos</i> is the position where the context menu will appear in the global coordinate system. This signal is always emitted, even if the contents of the cell are disabled.</p>
<!-- @@@contextMenuRequested -->
<!-- $$$createEditor[overload1]$$$createEditorintintbool -->
<h3 class="fn"><a name="createEditor"></a><span class="type"><a href="qwidget.html">QWidget</a></span> * Q3Table::<span class="name">createEditor</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i>, <span class="type">bool</span> <i>initFromCell</i> ) const<tt> [virtual protected]</tt></h3>
<p>This function returns the widget which should be used as an editor for the contents of the cell at <i>row</i>, <i>col</i>.</p>
<p>If <i>initFromCell</i> is true, the editor is used to edit the current contents of the cell (so the editor widget should be initialized with this content). If <i>initFromCell</i> is false, the content of the cell is replaced with the new content which the user entered into the widget created by this function.</p>
<p>The default functionality is as follows: if <i>initFromCell</i> is true or the cell has a <a href="q3tableitem.html" class="compat">Q3TableItem</a> and the table item's <a href="q3tableitem.html#isReplaceable">Q3TableItem::isReplaceable</a>() is false then the cell is asked to create an appropriate editor (using <a href="q3tableitem.html#createEditor">Q3TableItem::createEditor</a>()). Otherwise a <a href="qlineedit.html">QLineEdit</a> is used as the editor.</p>
<p>If you want to create your own editor for certain cells, implement a custom <a href="q3tableitem.html" class="compat">Q3TableItem</a> subclass and reimplement <a href="q3tableitem.html#createEditor">Q3TableItem::createEditor</a>().</p>
<p>If you are not using <a href="q3tableitem.html" class="compat">Q3TableItem</a>s and you don't want to use a <a href="qlineedit.html">QLineEdit</a> as the default editor, subclass <a href="q3table.html" class="compat">Q3Table</a> and reimplement this function with code like this:</p>
<pre class="cpp"> <span class="type"><a href="q3tableitem.html">Q3TableItem</a></span> <span class="operator">*</span>i <span class="operator">=</span> item(row<span class="operator">,</span> col);
 <span class="keyword">if</span> (initFromCell <span class="operator">|</span><span class="operator">|</span> (i <span class="operator">&amp;</span><span class="operator">&amp;</span> <span class="operator">!</span>i<span class="operator">-</span><span class="operator">&gt;</span>isReplaceable()))
     <span class="comment">// If we had a Q3TableItem ask the base class to create the editor</span>
     <span class="keyword">return</span> <span class="type"><a href="q3table.html">Q3Table</a></span><span class="operator">::</span>createEditor(row<span class="operator">,</span> col<span class="operator">,</span> initFromCell);
 <span class="keyword">else</span>
     <span class="keyword">return</span> <span class="operator">.</span><span class="operator">.</span><span class="operator">.</span>(create your own editor)</pre>
<p>Ownership of the editor widget is transferred to the caller.</p>
<p>If you reimplement this function return 0 for read-only cells. You will need to reimplement <a href="q3table.html#setCellContentFromEditor">setCellContentFromEditor</a>() to retrieve the data the user entered.</p>
<p><b>See also </b><a href="q3tableitem.html#createEditor">Q3TableItem::createEditor</a>().</p>
<!-- @@@createEditor -->
<!-- $$$currEditCol[overload1]$$$currEditCol -->
<h3 class="fn"><a name="currEditCol"></a><span class="type">int</span> Q3Table::<span class="name">currEditCol</span> () const<tt> [protected]</tt></h3>
<p>Returns the current edited column</p>
<!-- @@@currEditCol -->
<!-- $$$currEditRow[overload1]$$$currEditRow -->
<h3 class="fn"><a name="currEditRow"></a><span class="type">int</span> Q3Table::<span class="name">currEditRow</span> () const<tt> [protected]</tt></h3>
<p>Returns the current edited row</p>
<!-- @@@currEditRow -->
<!-- $$$currentChanged[overload1]$$$currentChangedintint -->
<h3 class="fn"><a name="currentChanged"></a><span class="type">void</span> Q3Table::<span class="name">currentChanged</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the current cell has changed to <i>row</i>, <i>col</i>.</p>
<!-- @@@currentChanged -->
<!-- $$$currentColumn[overload1]$$$currentColumn -->
<h3 class="fn"><a name="currentColumn"></a><span class="type">int</span> Q3Table::<span class="name">currentColumn</span> () const</h3>
<p>Returns the current column.</p>
<p><b>See also </b><a href="q3table.html#currentRow">currentRow</a>().</p>
<!-- @@@currentColumn -->
<!-- $$$currentRow[overload1]$$$currentRow -->
<h3 class="fn"><a name="currentRow"></a><span class="type">int</span> Q3Table::<span class="name">currentRow</span> () const</h3>
<p>Returns the current row.</p>
<p><b>See also </b><a href="q3table.html#currentColumn">currentColumn</a>().</p>
<!-- @@@currentRow -->
<!-- $$$currentSelection[overload1]$$$currentSelection -->
<h3 class="fn"><a name="currentSelection"></a><span class="type">int</span> Q3Table::<span class="name">currentSelection</span> () const<tt> [virtual]</tt></h3>
<p>Returns the number of the current selection or -1 if there is no current selection.</p>
<p><b>See also </b><a href="q3table.html#numSelections-prop">numSelections</a>().</p>
<!-- @@@currentSelection -->
<!-- $$$doubleClicked[overload1]$$$doubleClickedintintintconstQPoint& -->
<h3 class="fn"><a name="doubleClicked"></a><span class="type">void</span> Q3Table::<span class="name">doubleClicked</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i>, <span class="type">int</span> <i>button</i>, const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>mousePos</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when mouse button <i>button</i> is double-clicked. The cell where the event took place is at <i>row</i>, <i>col</i>, and the mouse's position is in <i>mousePos</i>.</p>
<p><b>See also </b><a href="qt.html#MouseButton-enum">Qt::MouseButton</a>.</p>
<!-- @@@doubleClicked -->
<!-- $$$dragEnabled[overload1]$$$dragEnabled -->
<h3 class="fn"><a name="dragEnabled"></a><span class="type">bool</span> Q3Table::<span class="name">dragEnabled</span> () const</h3>
<p>If this function returns true, the table supports dragging.</p>
<p><b>See also </b><a href="q3table.html#setDragEnabled">setDragEnabled</a>().</p>
<!-- @@@dragEnabled -->
<!-- $$$dragObject[overload1]$$$dragObject -->
<h3 class="fn"><a name="dragObject"></a><span class="type"><a href="q3dragobject.html">Q3DragObject</a></span> * Q3Table::<span class="name">dragObject</span> ()<tt> [virtual protected]</tt></h3>
<p>If the user presses the mouse on a selected cell, starts moving (i.e&#x2e; dragging), and <a href="q3table.html#dragEnabled">dragEnabled</a>() is true, this function is called to obtain a drag object. A drag using this object begins immediately unless dragObject() returns 0.</p>
<p>By default this function returns 0. You might reimplement it and create a <a href="q3dragobject.html" class="compat">Q3DragObject</a> depending on the selected items.</p>
<p><b>See also </b><a href="q3table.html#dropped">dropped</a>().</p>
<!-- @@@dragObject -->
<!-- $$$drawContents[overload1]$$$drawContentsQPainter*intintintint -->
<h3 class="fn"><a name="drawContents"></a><span class="type">void</span> Q3Table::<span class="name">drawContents</span> ( <span class="type"><a href="qpainter.html">QPainter</a></span> * <i>p</i>, <span class="type">int</span> <i>cx</i>, <span class="type">int</span> <i>cy</i>, <span class="type">int</span> <i>cw</i>, <span class="type">int</span> <i>ch</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="q3scrollview.html#drawContents">Q3ScrollView::drawContents</a>().</p>
<p>Draws the table contents on the painter <i>p</i>. This function is optimized so that it only draws the cells inside the <i>cw</i> pixels wide and <i>ch</i> pixels high clipping rectangle at position <i>cx</i>, <i>cy</i>.</p>
<p>Additionally, drawContents() highlights the current cell.</p>
<!-- @@@drawContents -->
<!-- $$$dropped[overload1]$$$droppedQDropEvent* -->
<h3 class="fn"><a name="dropped"></a><span class="type">void</span> Q3Table::<span class="name">dropped</span> ( <span class="type"><a href="qdropevent.html">QDropEvent</a></span> * <i>e</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when a drop event occurred on the table.</p>
<p><i>e</i> contains information about the drop.</p>
<!-- @@@dropped -->
<!-- $$$editCell[overload1]$$$editCellintintbool -->
<h3 class="fn"><a name="editCell"></a><span class="type">void</span> Q3Table::<span class="name">editCell</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i>, <span class="type">bool</span> <i>replace</i> = false )<tt> [virtual slot]</tt></h3>
<p>Starts editing the cell at <i>row</i>, <i>col</i>.</p>
<p>If <i>replace</i> is true the content of this cell will be replaced by the content of the editor when editing is finished, i.e&#x2e; the user will be entering new data; otherwise the current content of the cell (if any) will be modified in the editor.</p>
<p><b>See also </b><a href="q3table.html#beginEdit">beginEdit</a>().</p>
<!-- @@@editCell -->
<!-- $$$editMode[overload1]$$$editMode -->
<h3 class="fn"><a name="editMode"></a><span class="type"><a href="q3table.html#EditMode-enum">EditMode</a></span> Q3Table::<span class="name">editMode</span> () const<tt> [protected]</tt></h3>
<p>Returns the current edit mode</p>
<p><b>See also </b><a href="q3table.html#setEditMode">setEditMode</a>() and <a href="q3table.html#EditMode-enum">Q3Table::EditMode</a>.</p>
<!-- @@@editMode -->
<!-- $$$endEdit[overload1]$$$endEditintintboolbool -->
<h3 class="fn"><a name="endEdit"></a><span class="type">void</span> Q3Table::<span class="name">endEdit</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i>, <span class="type">bool</span> <i>accept</i>, <span class="type">bool</span> <i>replace</i> )<tt> [virtual protected]</tt></h3>
<p>This function is called when in-place editing of the cell at <i>row</i>, <i>col</i> is requested to stop.</p>
<p>If the cell is not being edited or <i>accept</i> is false the function returns and the cell's contents are left unchanged.</p>
<p>If <i>accept</i> is true the content of the editor must be transferred to the relevant cell. If <i>replace</i> is true the current content of this cell should be replaced by the content of the editor (this means removing the current <a href="q3tableitem.html" class="compat">Q3TableItem</a> of the cell and creating a new one for the cell). Otherwise (if possible) the content of the editor should just be set to the existing <a href="q3tableitem.html" class="compat">Q3TableItem</a> of this cell.</p>
<p><a href="q3table.html#setCellContentFromEditor">setCellContentFromEditor</a>() is called to replace the contents of the cell with the contents of the cell's editor.</p>
<p>Finally <a href="q3table.html#clearCellWidget">clearCellWidget</a>() is called to remove the editor widget.</p>
<p><b>See also </b><a href="q3table.html#setCellContentFromEditor">setCellContentFromEditor</a>() and <a href="q3table.html#beginEdit">beginEdit</a>().</p>
<!-- @@@endEdit -->
<!-- $$$ensureCellVisible[overload1]$$$ensureCellVisibleintint -->
<h3 class="fn"><a name="ensureCellVisible"></a><span class="type">void</span> Q3Table::<span class="name">ensureCellVisible</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i> )</h3>
<p>Scrolls the table until the cell at <i>row</i>, <i>col</i> becomes visible.</p>
<!-- @@@ensureCellVisible -->
<!-- $$$eventFilter[overload1]$$$eventFilterQObject*QEvent* -->
<h3 class="fn"><a name="eventFilter"></a><span class="type">bool</span> Q3Table::<span class="name">eventFilter</span> ( <span class="type"><a href="qobject.html">QObject</a></span> * <i>o</i>, <span class="type"><a href="qevent.html">QEvent</a></span> * <i>e</i> )<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qobject.html#eventFilter">QObject::eventFilter</a>().</p>
<!-- @@@eventFilter -->
<!-- $$$focusInEvent[overload1]$$$focusInEventQFocusEvent* -->
<h3 class="fn"><a name="focusInEvent"></a><span class="type">void</span> Q3Table::<span class="name">focusInEvent</span> ( <span class="type"><a href="qfocusevent.html">QFocusEvent</a></span> * )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#focusInEvent">QWidget::focusInEvent</a>().</p>
<!-- @@@focusInEvent -->
<!-- $$$focusOutEvent[overload1]$$$focusOutEventQFocusEvent* -->
<h3 class="fn"><a name="focusOutEvent"></a><span class="type">void</span> Q3Table::<span class="name">focusOutEvent</span> ( <span class="type"><a href="qfocusevent.html">QFocusEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#focusOutEvent">QWidget::focusOutEvent</a>().</p>
<!-- @@@focusOutEvent -->
<!-- $$$hideColumn[overload1]$$$hideColumnint -->
<h3 class="fn"><a name="hideColumn"></a><span class="type">void</span> Q3Table::<span class="name">hideColumn</span> ( <span class="type">int</span> <i>col</i> )<tt> [virtual slot]</tt></h3>
<p>Hides column <i>col</i>.</p>
<p><b>See also </b><a href="q3table.html#showColumn">showColumn</a>() and <a href="q3table.html#hideRow">hideRow</a>().</p>
<!-- @@@hideColumn -->
<!-- $$$hideRow[overload1]$$$hideRowint -->
<h3 class="fn"><a name="hideRow"></a><span class="type">void</span> Q3Table::<span class="name">hideRow</span> ( <span class="type">int</span> <i>row</i> )<tt> [virtual slot]</tt></h3>
<p>Hides row <i>row</i>.</p>
<p><b>See also </b><a href="q3table.html#showRow">showRow</a>() and <a href="q3table.html#hideColumn">hideColumn</a>().</p>
<!-- @@@hideRow -->
<!-- $$$horizontalHeader[overload1]$$$horizontalHeader -->
<h3 class="fn"><a name="horizontalHeader"></a><span class="type"><a href="q3header.html">Q3Header</a></span> * Q3Table::<span class="name">horizontalHeader</span> () const</h3>
<p>Returns the table's top <a href="q3header.html" class="compat">Q3Header</a>.</p>
<p>This header contains the column labels.</p>
<p>To modify a column label use <a href="q3header.html#setLabel">Q3Header::setLabel</a>().</p>
<p><b>See also </b><a href="q3table.html#verticalHeader">verticalHeader</a>(), <a href="q3table.html#setTopMargin">setTopMargin</a>(), and <a href="q3header.html" class="compat">Q3Header</a>.</p>
<!-- @@@horizontalHeader -->
<!-- $$$indexOf[overload1]$$$indexOfintint -->
<h3 class="fn"><a name="indexOf"></a><span class="type">int</span> Q3Table::<span class="name">indexOf</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i> ) const<tt> [protected]</tt></h3>
<p>Returns a single integer which identifies a particular <i>row</i> and <i>col</i> by mapping the 2D table to a 1D array.</p>
<p>This is useful, for example, if you have a sparse table and want to use a <a href="q3intdict.html" class="compat">Q3IntDict</a> to map integers to the cells that are used.</p>
<!-- @@@indexOf -->
<!-- $$$inputMethodQuery[overload1]$$$inputMethodQueryQt::InputMethodQuery -->
<h3 class="fn"><a name="inputMethodQuery"></a><span class="type"><a href="qvariant.html">QVariant</a></span> Q3Table::<span class="name">inputMethodQuery</span> ( <span class="type"><a href="qt.html#InputMethodQuery-enum">Qt::InputMethodQuery</a></span> <i>query</i> ) const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#inputMethodQuery">QWidget::inputMethodQuery</a>().</p>
<!-- @@@inputMethodQuery -->
<!-- $$$insertColumns[overload1]$$$insertColumnsintint -->
<h3 class="fn"><a name="insertColumns"></a><span class="type">void</span> Q3Table::<span class="name">insertColumns</span> ( <span class="type">int</span> <i>col</i>, <span class="type">int</span> <i>count</i> = 1 )<tt> [virtual slot]</tt></h3>
<p>Inserts <i>count</i> empty columns at column <i>col</i>. Also clears the selection(s).</p>
<p><b>See also </b><a href="q3table.html#insertRows">insertRows</a>() and <a href="q3table.html#removeColumn">removeColumn</a>().</p>
<!-- @@@insertColumns -->
<!-- $$$insertRows[overload1]$$$insertRowsintint -->
<h3 class="fn"><a name="insertRows"></a><span class="type">void</span> Q3Table::<span class="name">insertRows</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>count</i> = 1 )<tt> [virtual slot]</tt></h3>
<p>Inserts <i>count</i> empty rows at row <i>row</i>. Also clears the selection(s).</p>
<p><b>See also </b><a href="q3table.html#insertColumns">insertColumns</a>() and <a href="q3table.html#removeRow">removeRow</a>().</p>
<!-- @@@insertRows -->
<!-- $$$insertWidget[overload1]$$$insertWidgetintintQWidget* -->
<h3 class="fn"><a name="insertWidget"></a><span class="type">void</span> Q3Table::<span class="name">insertWidget</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i>, <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>w</i> )<tt> [virtual protected]</tt></h3>
<p>Inserts widget <i>w</i> at <i>row</i>, <i>col</i> into the internal data structure. See the documentation of <a href="q3table.html#setCellWidget">setCellWidget</a>() for further details.</p>
<p>If you don't use <a href="q3tableitem.html" class="compat">Q3TableItem</a>s you may need to reimplement this function: see the notes on large tables.</p>
<!-- @@@insertWidget -->
<!-- $$$isColumnHidden[overload1]$$$isColumnHiddenint -->
<h3 class="fn"><a name="isColumnHidden"></a><span class="type">bool</span> Q3Table::<span class="name">isColumnHidden</span> ( <span class="type">int</span> <i>col</i> ) const</h3>
<p>Returns true if column <i>col</i> is hidden; otherwise returns false.</p>
<p><b>See also </b><a href="q3table.html#hideColumn">hideColumn</a>() and <a href="q3table.html#isRowHidden">isRowHidden</a>().</p>
<!-- @@@isColumnHidden -->
<!-- $$$isColumnReadOnly[overload1]$$$isColumnReadOnlyint -->
<h3 class="fn"><a name="isColumnReadOnly"></a><span class="type">bool</span> Q3Table::<span class="name">isColumnReadOnly</span> ( <span class="type">int</span> <i>col</i> ) const</h3>
<p>Returns true if column <i>col</i> is read-only; otherwise returns false.</p>
<p>Whether a cell in this column is editable or read-only depends on the cell's EditType, and this setting.</p>
<p><b>See also </b><a href="q3table.html#setColumnReadOnly">setColumnReadOnly</a>() and <a href="q3table.html#isRowReadOnly">isRowReadOnly</a>().</p>
<!-- @@@isColumnReadOnly -->
<!-- $$$isColumnSelected[overload1]$$$isColumnSelectedintbool -->
<h3 class="fn"><a name="isColumnSelected"></a><span class="type">bool</span> Q3Table::<span class="name">isColumnSelected</span> ( <span class="type">int</span> <i>col</i>, <span class="type">bool</span> <i>full</i> = false ) const</h3>
<p>Returns true if column <i>col</i> is selected; otherwise returns false.</p>
<p>If <i>full</i> is false (the default), 'column is selected' means that at least one cell in the column is selected. If <i>full</i> is true, then 'column is selected' means every cell in the column is selected.</p>
<p><b>See also </b><a href="q3table.html#isRowSelected">isRowSelected</a>() and <a href="q3table.html#isSelected">isSelected</a>().</p>
<!-- @@@isColumnSelected -->
<!-- $$$isColumnStretchable[overload1]$$$isColumnStretchableint -->
<h3 class="fn"><a name="isColumnStretchable"></a><span class="type">bool</span> Q3Table::<span class="name">isColumnStretchable</span> ( <span class="type">int</span> <i>col</i> ) const</h3>
<p>Returns true if column <i>col</i> is stretchable; otherwise returns false.</p>
<p><b>See also </b><a href="q3table.html#setColumnStretchable">setColumnStretchable</a>() and <a href="q3table.html#isRowStretchable">isRowStretchable</a>().</p>
<!-- @@@isColumnStretchable -->
<!-- $$$isEditing[overload1]$$$isEditing -->
<h3 class="fn"><a name="isEditing"></a><span class="type">bool</span> Q3Table::<span class="name">isEditing</span> () const<tt> [protected]</tt></h3>
<p>Returns true if the <a href="q3table.html#EditMode-enum">EditMode</a> is <tt>Editing</tt> or <tt>Replacing</tt>; otherwise (i.e&#x2e; the <a href="q3table.html#EditMode-enum">EditMode</a> is <tt>NotEditing</tt>) returns false.</p>
<p><b>See also </b><a href="q3table.html#EditMode-enum">Q3Table::EditMode</a>.</p>
<!-- @@@isEditing -->
<!-- $$$isRowHidden[overload1]$$$isRowHiddenint -->
<h3 class="fn"><a name="isRowHidden"></a><span class="type">bool</span> Q3Table::<span class="name">isRowHidden</span> ( <span class="type">int</span> <i>row</i> ) const</h3>
<p>Returns true if row <i>row</i> is hidden; otherwise returns false.</p>
<p><b>See also </b><a href="q3table.html#hideRow">hideRow</a>() and <a href="q3table.html#isColumnHidden">isColumnHidden</a>().</p>
<!-- @@@isRowHidden -->
<!-- $$$isRowReadOnly[overload1]$$$isRowReadOnlyint -->
<h3 class="fn"><a name="isRowReadOnly"></a><span class="type">bool</span> Q3Table::<span class="name">isRowReadOnly</span> ( <span class="type">int</span> <i>row</i> ) const</h3>
<p>Returns true if row <i>row</i> is read-only; otherwise returns false.</p>
<p>Whether a cell in this row is editable or read-only depends on the cell's <a href="q3tableitem.html#EditType-enum">EditType</a>, and this setting.</p>
<p><b>See also </b><a href="q3table.html#setRowReadOnly">setRowReadOnly</a>() and <a href="q3table.html#isColumnReadOnly">isColumnReadOnly</a>().</p>
<!-- @@@isRowReadOnly -->
<!-- $$$isRowSelected[overload1]$$$isRowSelectedintbool -->
<h3 class="fn"><a name="isRowSelected"></a><span class="type">bool</span> Q3Table::<span class="name">isRowSelected</span> ( <span class="type">int</span> <i>row</i>, <span class="type">bool</span> <i>full</i> = false ) const</h3>
<p>Returns true if row <i>row</i> is selected; otherwise returns false.</p>
<p>If <i>full</i> is false (the default), 'row is selected' means that at least one cell in the row is selected. If <i>full</i> is true, then 'row is selected' means every cell in the row is selected.</p>
<p><b>See also </b><a href="q3table.html#isColumnSelected">isColumnSelected</a>() and <a href="q3table.html#isSelected">isSelected</a>().</p>
<!-- @@@isRowSelected -->
<!-- $$$isRowStretchable[overload1]$$$isRowStretchableint -->
<h3 class="fn"><a name="isRowStretchable"></a><span class="type">bool</span> Q3Table::<span class="name">isRowStretchable</span> ( <span class="type">int</span> <i>row</i> ) const</h3>
<p>Returns true if row <i>row</i> is stretchable; otherwise returns false.</p>
<p><b>See also </b><a href="q3table.html#setRowStretchable">setRowStretchable</a>() and <a href="q3table.html#isColumnStretchable">isColumnStretchable</a>().</p>
<!-- @@@isRowStretchable -->
<!-- $$$isSelected[overload1]$$$isSelectedintint -->
<h3 class="fn"><a name="isSelected"></a><span class="type">bool</span> Q3Table::<span class="name">isSelected</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i> ) const</h3>
<p>Returns true if the cell at <i>row</i>, <i>col</i> is selected; otherwise returns false.</p>
<p><b>See also </b><a href="q3table.html#isRowSelected">isRowSelected</a>() and <a href="q3table.html#isColumnSelected">isColumnSelected</a>().</p>
<!-- @@@isSelected -->
<!-- $$$item[overload1]$$$itemintint -->
<h3 class="fn"><a name="item"></a><span class="type"><a href="q3tableitem.html">Q3TableItem</a></span> * Q3Table::<span class="name">item</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i> ) const<tt> [virtual]</tt></h3>
<p>Returns the <a href="q3tableitem.html" class="compat">Q3TableItem</a> representing the contents of the cell at <i>row</i>, <i>col</i>.</p>
<p>If <i>row</i> or <i>col</i> are out of range or no content has been set for this cell, item() returns 0.</p>
<p>If you don't use <a href="q3tableitem.html" class="compat">Q3TableItem</a>s you may need to reimplement this function: see the notes on large tables.</p>
<p><b>See also </b><a href="q3table.html#setItem">setItem</a>().</p>
<!-- @@@item -->
<!-- $$$keyPressEvent[overload1]$$$keyPressEventQKeyEvent* -->
<h3 class="fn"><a name="keyPressEvent"></a><span class="type">void</span> Q3Table::<span class="name">keyPressEvent</span> ( <span class="type"><a href="qkeyevent.html">QKeyEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#keyPressEvent">QWidget::keyPressEvent</a>().</p>
<!-- @@@keyPressEvent -->
<!-- $$$paintCell[overload1]$$$paintCellQPainter*intintconstQRect&boolconstQColorGroup& -->
<h3 class="fn"><a name="paintCell"></a><span class="type">void</span> Q3Table::<span class="name">paintCell</span> ( <span class="type"><a href="qpainter.html">QPainter</a></span> * <i>p</i>, <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i>, const <span class="type"><a href="qrect.html">QRect</a></span> &amp; <i>cr</i>, <span class="type">bool</span> <i>selected</i>, const <span class="type"><a href="qcolorgroup.html">QColorGroup</a></span> &amp; <i>cg</i> )<tt> [virtual]</tt></h3>
<p>Paints the cell at <i>row</i>, <i>col</i> on the painter <i>p</i>. The painter has already been translated to the cell's origin. <i>cr</i> describes the cell coordinates in the content coordinate system.</p>
<p>If <i>selected</i> is true the cell is highlighted.</p>
<p><i>cg</i> is the colorgroup which should be used to draw the cell content.</p>
<p>If you want to draw custom cell content, for example right-aligned text, you must either reimplement paintCell(), or subclass <a href="q3tableitem.html" class="compat">Q3TableItem</a> and reimplement <a href="q3tableitem.html#paint">Q3TableItem::paint</a>() to do the custom drawing.</p>
<p>If you're using a <a href="q3tableitem.html" class="compat">Q3TableItem</a> subclass, for example, to store a data structure, then reimplementing <a href="q3tableitem.html#paint">Q3TableItem::paint</a>() may be the best approach. For data you want to draw immediately, e.g&#x2e; data retrieved from a database, it is probably best to reimplement paintCell(). Note that if you reimplement paintCell(), i.e&#x2e; don't use <a href="q3tableitem.html" class="compat">Q3TableItem</a>s, you must reimplement other functions: see the notes on large tables.</p>
<p>Note that the painter is not clipped by default in order to get maximum efficiency. If you want clipping, use code like this:</p>
<pre class="cpp"> p<span class="operator">-</span><span class="operator">&gt;</span>setClipRect(cellRect(row<span class="operator">,</span> col)<span class="operator">,</span> <span class="type"><a href="qpainter.html">QPainter</a></span><span class="operator">::</span>CoordPainter);
 <span class="comment">//... your drawing code</span>
 p<span class="operator">-</span><span class="operator">&gt;</span>setClipping(<span class="keyword">false</span>);</pre>
<!-- @@@paintCell -->
<!-- $$$paintCell$$$paintCellQPainter*intintconstQRect&bool -->
<h3 class="fn"><a name="paintCell-2"></a><span class="type">void</span> Q3Table::<span class="name">paintCell</span> ( <span class="type"><a href="qpainter.html">QPainter</a></span> * <i>p</i>, <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i>, const <span class="type"><a href="qrect.html">QRect</a></span> &amp; <i>cr</i>, <span class="type">bool</span> <i>selected</i> )<tt> [virtual]</tt></h3>
<p>This is an overloaded function.</p>
<p>Use the other <a href="q3table.html#paintCell">paintCell</a>() function. This function is only included for backwards compatibility.</p>
<!-- @@@paintCell -->
<!-- $$$paintEmptyArea[overload1]$$$paintEmptyAreaQPainter*intintintint -->
<h3 class="fn"><a name="paintEmptyArea"></a><span class="type">void</span> Q3Table::<span class="name">paintEmptyArea</span> ( <span class="type"><a href="qpainter.html">QPainter</a></span> * <i>p</i>, <span class="type">int</span> <i>cx</i>, <span class="type">int</span> <i>cy</i>, <span class="type">int</span> <i>cw</i>, <span class="type">int</span> <i>ch</i> )<tt> [virtual protected]</tt></h3>
<p>This function fills the <i>cw</i> pixels wide and <i>ch</i> pixels high rectangle starting at position <i>cx</i>, <i>cy</i> with the background color using the painter <i>p</i>.</p>
<p>paintEmptyArea() is invoked by <a href="q3table.html#drawContents">drawContents</a>() to erase or fill unused areas.</p>
<!-- @@@paintEmptyArea -->
<!-- $$$paintEvent[overload1]$$$paintEventQPaintEvent* -->
<h3 class="fn"><a name="paintEvent"></a><span class="type">void</span> Q3Table::<span class="name">paintEvent</span> ( <span class="type"><a href="qpaintevent.html">QPaintEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#paintEvent">QWidget::paintEvent</a>().</p>
<!-- @@@paintEvent -->
<!-- $$$paintFocus[overload1]$$$paintFocusQPainter*constQRect& -->
<h3 class="fn"><a name="paintFocus"></a><span class="type">void</span> Q3Table::<span class="name">paintFocus</span> ( <span class="type"><a href="qpainter.html">QPainter</a></span> * <i>p</i>, const <span class="type"><a href="qrect.html">QRect</a></span> &amp; <i>cr</i> )<tt> [virtual]</tt></h3>
<p>Draws the focus rectangle of the current cell (see <a href="q3table.html#currentRow">currentRow</a>(), <a href="q3table.html#currentColumn">currentColumn</a>()).</p>
<p>The painter <i>p</i> is already translated to the cell's origin, while <i>cr</i> specifies the cell's geometry in content coordinates.</p>
<!-- @@@paintFocus -->
<!-- $$$pixmap[overload1]$$$pixmapintint -->
<h3 class="fn"><a name="pixmap"></a><span class="type"><a href="qpixmap.html">QPixmap</a></span> Q3Table::<span class="name">pixmap</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i> ) const<tt> [virtual]</tt></h3>
<p>Returns the pixmap set for the cell at <i>row</i>, <i>col</i>, or a null-pixmap if the cell contains no pixmap.</p>
<p><b>See also </b><a href="q3table.html#setPixmap">setPixmap</a>().</p>
<!-- @@@pixmap -->
<!-- $$$pressed[overload1]$$$pressedintintintconstQPoint& -->
<h3 class="fn"><a name="pressed"></a><span class="type">void</span> Q3Table::<span class="name">pressed</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i>, <span class="type">int</span> <i>button</i>, const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>mousePos</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when mouse button <i>button</i> is pressed. The cell where the event took place is at <i>row</i>, <i>col</i>, and the mouse's position is in <i>mousePos</i>.</p>
<p><b>See also </b><a href="qt.html#MouseButton-enum">Qt::MouseButton</a>.</p>
<!-- @@@pressed -->
<!-- $$$removeColumn[overload1]$$$removeColumnint -->
<h3 class="fn"><a name="removeColumn"></a><span class="type">void</span> Q3Table::<span class="name">removeColumn</span> ( <span class="type">int</span> <i>col</i> )<tt> [virtual slot]</tt></h3>
<p>Removes column <i>col</i>, and deletes all its cells including any table items and widgets the cells may contain. Also clears the selection(s).</p>
<p><b>See also </b><a href="q3table.html#removeColumns">removeColumns</a>(), <a href="q3table.html#hideColumn">hideColumn</a>(), <a href="q3table.html#insertColumns">insertColumns</a>(), and <a href="q3table.html#removeRow">removeRow</a>().</p>
<!-- @@@removeColumn -->
<!-- $$$removeColumns[overload1]$$$removeColumnsconstQ3MemArray<int>& -->
<h3 class="fn"><a name="removeColumns"></a><span class="type">void</span> Q3Table::<span class="name">removeColumns</span> ( const <span class="type"><a href="q3memarray.html">Q3MemArray</a></span>&lt;<span class="type">int</span>&gt; &amp; <i>cols</i> )<tt> [virtual slot]</tt></h3>
<p>Removes the columns listed in the array <i>cols</i>, and deletes all their cells including any table items and widgets the cells may contain.</p>
<p>The array passed in must only contain valid columns (in the range from 0 to <a href="q3table.html#numCols-prop">numCols</a>() - 1) with no duplicates, and must be sorted in ascending order. Also clears the selection(s).</p>
<p><b>See also </b><a href="q3table.html#removeColumn">removeColumn</a>(), <a href="q3table.html#insertColumns">insertColumns</a>(), and <a href="q3table.html#removeRows">removeRows</a>().</p>
<!-- @@@removeColumns -->
<!-- $$$removeRow[overload1]$$$removeRowint -->
<h3 class="fn"><a name="removeRow"></a><span class="type">void</span> Q3Table::<span class="name">removeRow</span> ( <span class="type">int</span> <i>row</i> )<tt> [virtual slot]</tt></h3>
<p>Removes row <i>row</i>, and deletes all its cells including any table items and widgets the cells may contain. Also clears the selection(s).</p>
<p><b>See also </b><a href="q3table.html#hideRow">hideRow</a>(), <a href="q3table.html#insertRows">insertRows</a>(), <a href="q3table.html#removeColumn">removeColumn</a>(), and <a href="q3table.html#removeRows">removeRows</a>().</p>
<!-- @@@removeRow -->
<!-- $$$removeRows[overload1]$$$removeRowsconstQ3MemArray<int>& -->
<h3 class="fn"><a name="removeRows"></a><span class="type">void</span> Q3Table::<span class="name">removeRows</span> ( const <span class="type"><a href="q3memarray.html">Q3MemArray</a></span>&lt;<span class="type">int</span>&gt; &amp; <i>rows</i> )<tt> [virtual slot]</tt></h3>
<p>Removes the rows listed in the array <i>rows</i>, and deletes all their cells including any table items and widgets the cells may contain.</p>
<p>The array passed in must only contain valid rows (in the range from 0 to <a href="q3table.html#numRows-prop">numRows</a>() - 1) with no duplicates, and must be sorted in ascending order. Also clears the selection(s).</p>
<p><b>See also </b><a href="q3table.html#removeRow">removeRow</a>(), <a href="q3table.html#insertRows">insertRows</a>(), and <a href="q3table.html#removeColumns">removeColumns</a>().</p>
<!-- @@@removeRows -->
<!-- $$$removeSelection[overload1]$$$removeSelectionconstQ3TableSelection& -->
<h3 class="fn"><a name="removeSelection"></a><span class="type">void</span> Q3Table::<span class="name">removeSelection</span> ( const <span class="type"><a href="q3tableselection.html">Q3TableSelection</a></span> &amp; <i>s</i> )<tt> [virtual]</tt></h3>
<p>If the table has a selection, <i>s</i>, this selection is removed from the table.</p>
<p><b>See also </b><a href="q3table.html#addSelection">addSelection</a>() and <a href="q3table.html#numSelections-prop">numSelections</a>().</p>
<!-- @@@removeSelection -->
<!-- $$$removeSelection$$$removeSelectionint -->
<h3 class="fn"><a name="removeSelection-2"></a><span class="type">void</span> Q3Table::<span class="name">removeSelection</span> ( <span class="type">int</span> <i>num</i> )<tt> [virtual]</tt></h3>
<p>This is an overloaded function.</p>
<p>Removes selection number <i>num</i> from the table.</p>
<p><b>See also </b><a href="q3table.html#numSelections-prop">numSelections</a>(), <a href="q3table.html#addSelection">addSelection</a>(), and <a href="q3table.html#clearSelection">clearSelection</a>().</p>
<!-- @@@removeSelection -->
<!-- $$$repaintSelections[overload1]$$$repaintSelections -->
<h3 class="fn"><a name="repaintSelections"></a><span class="type">void</span> Q3Table::<span class="name">repaintSelections</span> ()</h3>
<p>Repaints all selections</p>
<!-- @@@repaintSelections -->
<!-- $$$resizeData[overload1]$$$resizeDataint -->
<h3 class="fn"><a name="resizeData"></a><span class="type">void</span> Q3Table::<span class="name">resizeData</span> ( <span class="type">int</span> <i>len</i> )<tt> [virtual protected]</tt></h3>
<p>This is called when <a href="q3table.html" class="compat">Q3Table</a>'s internal array needs to be resized to <i>len</i> elements.</p>
<p>If you don't use Q3TableItems you should reimplement this as an empty method to avoid wasting memory. See the notes on large tables for further details.</p>
<!-- @@@resizeData -->
<!-- $$$rowAt[overload1]$$$rowAtint -->
<h3 class="fn"><a name="rowAt"></a><span class="type">int</span> Q3Table::<span class="name">rowAt</span> ( <span class="type">int</span> <i>y</i> ) const<tt> [virtual]</tt></h3>
<p>Returns the number of the row at position <i>y</i>. <i>y</i> must be given in content coordinates.</p>
<p><b>See also </b><a href="q3table.html#rowPos">rowPos</a>() and <a href="q3table.html#columnAt">columnAt</a>().</p>
<!-- @@@rowAt -->
<!-- $$$rowHeight[overload1]$$$rowHeightint -->
<h3 class="fn"><a name="rowHeight"></a><span class="type">int</span> Q3Table::<span class="name">rowHeight</span> ( <span class="type">int</span> <i>row</i> ) const<tt> [virtual]</tt></h3>
<p>Returns the height of row <i>row</i>.</p>
<p><b>See also </b><a href="q3table.html#setRowHeight">setRowHeight</a>() and <a href="q3table.html#columnWidth">columnWidth</a>().</p>
<!-- @@@rowHeight -->
<!-- $$$rowHeightChanged[overload1]$$$rowHeightChangedint -->
<h3 class="fn"><a name="rowHeightChanged"></a><span class="type">void</span> Q3Table::<span class="name">rowHeightChanged</span> ( <span class="type">int</span> <i>row</i> )<tt> [virtual protected slot]</tt></h3>
<p>This function should be called whenever the row height of <i>row</i> has been changed. It updates the geometry of any affected rows and repaints the table to reflect the changes it has made.</p>
<!-- @@@rowHeightChanged -->
<!-- $$$rowIndexChanged[overload1]$$$rowIndexChangedintintint -->
<h3 class="fn"><a name="rowIndexChanged"></a><span class="type">void</span> Q3Table::<span class="name">rowIndexChanged</span> ( <span class="type">int</span> <i>section</i>, <span class="type">int</span> <i>fromIndex</i>, <span class="type">int</span> <i>toIndex</i> )<tt> [virtual protected slot]</tt></h3>
<p>This function is called when the order of the rows is to be changed, i.e&#x2e; the user moved the row header section <i>section</i> from <i>fromIndex</i> to <i>toIndex</i>.</p>
<p>If you want to change the order programmatically, call <a href="q3table.html#swapRows">swapRows</a>() or <a href="q3table.html#swapColumns">swapColumns</a>();</p>
<p><b>See also </b><a href="q3header.html#indexChange">Q3Header::indexChange</a>() and <a href="q3table.html#columnIndexChanged">columnIndexChanged</a>().</p>
<!-- @@@rowIndexChanged -->
<!-- $$$rowPos[overload1]$$$rowPosint -->
<h3 class="fn"><a name="rowPos"></a><span class="type">int</span> Q3Table::<span class="name">rowPos</span> ( <span class="type">int</span> <i>row</i> ) const<tt> [virtual]</tt></h3>
<p>Returns the y-coordinate of the row <i>row</i> in content coordinates.</p>
<p><b>See also </b><a href="q3table.html#rowAt">rowAt</a>() and <a href="q3table.html#columnPos">columnPos</a>().</p>
<!-- @@@rowPos -->
<!-- $$$selectCells[overload1]$$$selectCellsintintintint -->
<h3 class="fn"><a name="selectCells"></a><span class="type">void</span> Q3Table::<span class="name">selectCells</span> ( <span class="type">int</span> <i>start_row</i>, <span class="type">int</span> <i>start_col</i>, <span class="type">int</span> <i>end_row</i>, <span class="type">int</span> <i>end_col</i> )</h3>
<p>Selects the range starting at <i>start_row</i> and <i>start_col</i> and ending at <i>end_row</i> and <i>end_col</i>.</p>
<p><b>See also </b><a href="q3tableselection.html" class="compat">Q3TableSelection</a>.</p>
<!-- @@@selectCells -->
<!-- $$$selectColumn[overload1]$$$selectColumnint -->
<h3 class="fn"><a name="selectColumn"></a><span class="type">void</span> Q3Table::<span class="name">selectColumn</span> ( <span class="type">int</span> <i>col</i> )<tt> [virtual]</tt></h3>
<p>Selects the column <i>col</i>.</p>
<p><b>See also </b><a href="q3tableselection.html" class="compat">Q3TableSelection</a>.</p>
<!-- @@@selectColumn -->
<!-- $$$selectRow[overload1]$$$selectRowint -->
<h3 class="fn"><a name="selectRow"></a><span class="type">void</span> Q3Table::<span class="name">selectRow</span> ( <span class="type">int</span> <i>row</i> )<tt> [virtual]</tt></h3>
<p>Selects the row <i>row</i>.</p>
<p><b>See also </b><a href="q3tableselection.html" class="compat">Q3TableSelection</a>.</p>
<!-- @@@selectRow -->
<!-- $$$selection[overload1]$$$selectionint -->
<h3 class="fn"><a name="selection"></a><span class="type"><a href="q3tableselection.html">Q3TableSelection</a></span> Q3Table::<span class="name">selection</span> ( <span class="type">int</span> <i>num</i> ) const</h3>
<p>Returns selection number <i>num</i>, or an inactive <a href="q3tableselection.html" class="compat">Q3TableSelection</a> if <i>num</i> is out of range (see <a href="q3tableselection.html#isActive">Q3TableSelection::isActive</a>()).</p>
<!-- @@@selection -->
<!-- $$$selectionChanged[overload1]$$$selectionChanged -->
<h3 class="fn"><a name="selectionChanged"></a><span class="type">void</span> Q3Table::<span class="name">selectionChanged</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted whenever a selection changes.</p>
<p><b>See also </b><a href="q3tableselection.html" class="compat">Q3TableSelection</a>.</p>
<!-- @@@selectionChanged -->
<!-- $$$setCellContentFromEditor[overload1]$$$setCellContentFromEditorintint -->
<h3 class="fn"><a name="setCellContentFromEditor"></a><span class="type">void</span> Q3Table::<span class="name">setCellContentFromEditor</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i> )<tt> [virtual protected]</tt></h3>
<p>This function is called to replace the contents of the cell at <i>row</i>, <i>col</i> with the contents of the cell's editor.</p>
<p>If there already exists a <a href="q3tableitem.html" class="compat">Q3TableItem</a> for the cell, it calls <a href="q3tableitem.html#setContentFromEditor">Q3TableItem::setContentFromEditor</a>() on this <a href="q3tableitem.html" class="compat">Q3TableItem</a>.</p>
<p>If, for example, you want to create different <a href="q3tableitem.html" class="compat">Q3TableItem</a>s depending on the contents of the editor, you might reimplement this function.</p>
<p>If you want to work without <a href="q3tableitem.html" class="compat">Q3TableItem</a>s, you will need to reimplement this function to save the data the user entered into your data structure. (See the notes on large tables.)</p>
<p><b>See also </b><a href="q3tableitem.html#setContentFromEditor">Q3TableItem::setContentFromEditor</a>() and <a href="q3table.html#createEditor">createEditor</a>().</p>
<!-- @@@setCellContentFromEditor -->
<!-- $$$setCellWidget[overload1]$$$setCellWidgetintintQWidget* -->
<h3 class="fn"><a name="setCellWidget"></a><span class="type">void</span> Q3Table::<span class="name">setCellWidget</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i>, <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>e</i> )<tt> [virtual]</tt></h3>
<p>Sets the widget <i>e</i> to the cell at <i>row</i>, <i>col</i> and takes care of placing and resizing the widget when the cell geometry changes.</p>
<p>By default widgets are inserted into a vector with <a href="q3table.html#numRows-prop">numRows</a>() * <a href="q3table.html#numCols-prop">numCols</a>() elements. In very large tables you will probably want to store the widgets in a data structure that consumes less memory (see the notes on large tables). To support the use of your own data structure this function calls <a href="q3table.html#insertWidget">insertWidget</a>() to add the widget to the internal data structure. To use your own data structure reimplement <a href="q3table.html#insertWidget">insertWidget</a>(), <a href="q3table.html#cellWidget">cellWidget</a>() and <a href="q3table.html#clearCellWidget">clearCellWidget</a>().</p>
<p>Cell widgets are created dynamically with the <tt>new</tt> operator. The cell widgets are destroyed automatically once the table is destroyed; the table takes ownership of the widget when using setCellWidget.</p>
<p><b>See also </b><a href="q3table.html#cellWidget">cellWidget</a>().</p>
<!-- @@@setCellWidget -->
<!-- $$$setColumnLabels[overload1]$$$setColumnLabelsconstQStringList& -->
<h3 class="fn"><a name="setColumnLabels"></a><span class="type">void</span> Q3Table::<span class="name">setColumnLabels</span> ( const <span class="type"><a href="qstringlist.html">QStringList</a></span> &amp; <i>labels</i> )<tt> [slot]</tt></h3>
<p>Sets the section labels of the <a href="q3table.html#horizontalHeader">horizontalHeader</a>() to <i>labels</i></p>
<!-- @@@setColumnLabels -->
<!-- $$$setColumnReadOnly[overload1]$$$setColumnReadOnlyintbool -->
<h3 class="fn"><a name="setColumnReadOnly"></a><span class="type">void</span> Q3Table::<span class="name">setColumnReadOnly</span> ( <span class="type">int</span> <i>col</i>, <span class="type">bool</span> <i>ro</i> )<tt> [virtual slot]</tt></h3>
<p>If <i>ro</i> is true, column <i>col</i> is set to be read-only; otherwise the column is set to be editable.</p>
<p>Whether a cell in this column is editable or read-only depends on the cell's EditType, and this setting.</p>
<p><b>See also </b><a href="q3table.html#isColumnReadOnly">isColumnReadOnly</a>(), <a href="q3table.html#setRowReadOnly">setRowReadOnly</a>(), and <a href="q3table.html#readOnly-prop">setReadOnly</a>().</p>
<!-- @@@setColumnReadOnly -->
<!-- $$$setColumnStretchable[overload1]$$$setColumnStretchableintbool -->
<h3 class="fn"><a name="setColumnStretchable"></a><span class="type">void</span> Q3Table::<span class="name">setColumnStretchable</span> ( <span class="type">int</span> <i>col</i>, <span class="type">bool</span> <i>stretch</i> )<tt> [virtual slot]</tt></h3>
<p>If <i>stretch</i> is true, column <i>col</i> is set to be stretchable; otherwise column <i>col</i> is set to be unstretchable.</p>
<p>If the table widget's width decreases or increases stretchable columns will grow narrower or wider to fit the space available as completely as possible. The user cannot manually resize stretchable columns.</p>
<p><b>See also </b><a href="q3table.html#isColumnStretchable">isColumnStretchable</a>(), <a href="q3table.html#setRowStretchable">setRowStretchable</a>(), and <a href="q3table.html#adjustColumn">adjustColumn</a>().</p>
<!-- @@@setColumnStretchable -->
<!-- $$$setColumnWidth[overload1]$$$setColumnWidthintint -->
<h3 class="fn"><a name="setColumnWidth"></a><span class="type">void</span> Q3Table::<span class="name">setColumnWidth</span> ( <span class="type">int</span> <i>col</i>, <span class="type">int</span> <i>w</i> )<tt> [virtual slot]</tt></h3>
<p>Resizes column <i>col</i> to be <i>w</i> pixels wide.</p>
<p><b>See also </b><a href="q3table.html#columnWidth">columnWidth</a>() and <a href="q3table.html#setRowHeight">setRowHeight</a>().</p>
<!-- @@@setColumnWidth -->
<!-- $$$setCurrentCell[overload1]$$$setCurrentCellintint -->
<h3 class="fn"><a name="setCurrentCell"></a><span class="type">void</span> Q3Table::<span class="name">setCurrentCell</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i> )<tt> [virtual slot]</tt></h3>
<p>Moves the focus to the cell at <i>row</i>, <i>col</i>.</p>
<p><b>See also </b><a href="q3table.html#currentRow">currentRow</a>() and <a href="q3table.html#currentColumn">currentColumn</a>().</p>
<!-- @@@setCurrentCell -->
<!-- $$$setDragEnabled[overload1]$$$setDragEnabledbool -->
<h3 class="fn"><a name="setDragEnabled"></a><span class="type">void</span> Q3Table::<span class="name">setDragEnabled</span> ( <span class="type">bool</span> <i>b</i> )<tt> [virtual slot]</tt></h3>
<p>If <i>b</i> is true, the table starts a drag (see <a href="q3table.html#dragObject">dragObject</a>()) when the user presses and moves the mouse on a selected cell.</p>
<p><b>See also </b><a href="q3table.html#dragEnabled">dragEnabled</a>().</p>
<!-- @@@setDragEnabled -->
<!-- $$$setEditMode[overload1]$$$setEditModeEditModeintint -->
<h3 class="fn"><a name="setEditMode"></a><span class="type">void</span> Q3Table::<span class="name">setEditMode</span> ( <span class="type"><a href="q3table.html#EditMode-enum">EditMode</a></span> <i>mode</i>, <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i> )<tt> [protected]</tt></h3>
<p>Sets the current edit mode to <i>mode</i>, the current edit row to <i>row</i> and the current edit column to <i>col</i>.</p>
<p><b>See also </b><a href="q3table.html#editMode">editMode</a>() and <a href="q3table.html#EditMode-enum">EditMode</a>.</p>
<!-- @@@setEditMode -->
<!-- $$$setItem[overload1]$$$setItemintintQ3TableItem* -->
<h3 class="fn"><a name="setItem"></a><span class="type">void</span> Q3Table::<span class="name">setItem</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i>, <span class="type"><a href="q3tableitem.html">Q3TableItem</a></span> * <i>item</i> )<tt> [virtual]</tt></h3>
<p>Inserts the table item <i>item</i> into the table at row <i>row</i>, column <i>col</i>, and repaints the cell. If a table item already exists in this cell it is deleted and replaced with <i>item</i>. The table takes ownership of the table item.</p>
<p>If you don't use <a href="q3tableitem.html" class="compat">Q3TableItem</a>s you may need to reimplement this function: see the notes on large tables.</p>
<p><b>See also </b><a href="q3table.html#item">item</a>() and <a href="q3table.html#takeItem">takeItem</a>().</p>
<!-- @@@setItem -->
<!-- $$$setLeftMargin[overload1]$$$setLeftMarginint -->
<h3 class="fn"><a name="setLeftMargin"></a><span class="type">void</span> Q3Table::<span class="name">setLeftMargin</span> ( <span class="type">int</span> <i>m</i> )<tt> [virtual slot]</tt></h3>
<p>Sets the left margin to be <i>m</i> pixels wide.</p>
<p>The <a href="q3table.html#verticalHeader">verticalHeader</a>(), which displays row labels, occupies this margin.</p>
<p>In an Arabic or Hebrew localization, the <a href="q3table.html#verticalHeader">verticalHeader</a>() will appear on the right side of the table, and this call will set the right margin.</p>
<p><b>See also </b><a href="q3scrollview.html#leftMargin">leftMargin</a>(), <a href="q3table.html#setTopMargin">setTopMargin</a>(), and <a href="q3table.html#verticalHeader">verticalHeader</a>().</p>
<!-- @@@setLeftMargin -->
<!-- $$$setPixmap[overload1]$$$setPixmapintintconstQPixmap& -->
<h3 class="fn"><a name="setPixmap"></a><span class="type">void</span> Q3Table::<span class="name">setPixmap</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i>, const <span class="type"><a href="qpixmap.html">QPixmap</a></span> &amp; <i>pix</i> )<tt> [virtual]</tt></h3>
<p>Sets the pixmap in the cell at <i>row</i>, <i>col</i> to <i>pix</i>.</p>
<p>If the cell does not contain a table item a <a href="q3tableitem.html" class="compat">Q3TableItem</a> is created with an <a href="q3tableitem.html#EditType-enum">EditType</a> of <tt>OnTyping</tt>, otherwise the existing table item's pixmap (if any) is replaced with <i>pix</i>.</p>
<p>Note that <a href="q3combotableitem.html" class="compat">Q3ComboTableItem</a>s and <a href="q3checktableitem.html" class="compat">Q3CheckTableItem</a>s don't show pixmaps.</p>
<p><b>See also </b><a href="q3table.html#pixmap">pixmap</a>(), <a href="q3table.html#setText">setText</a>(), <a href="q3table.html#setItem">setItem</a>(), and <a href="q3tableitem.html#setPixmap">Q3TableItem::setPixmap</a>().</p>
<!-- @@@setPixmap -->
<!-- $$$setRowHeight[overload1]$$$setRowHeightintint -->
<h3 class="fn"><a name="setRowHeight"></a><span class="type">void</span> Q3Table::<span class="name">setRowHeight</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>h</i> )<tt> [virtual slot]</tt></h3>
<p>Resizes row <i>row</i> to be <i>h</i> pixels high.</p>
<p><b>See also </b><a href="q3table.html#rowHeight">rowHeight</a>() and <a href="q3table.html#setColumnWidth">setColumnWidth</a>().</p>
<!-- @@@setRowHeight -->
<!-- $$$setRowLabels[overload1]$$$setRowLabelsconstQStringList& -->
<h3 class="fn"><a name="setRowLabels"></a><span class="type">void</span> Q3Table::<span class="name">setRowLabels</span> ( const <span class="type"><a href="qstringlist.html">QStringList</a></span> &amp; <i>labels</i> )<tt> [slot]</tt></h3>
<p>Sets the section labels of the <a href="q3table.html#verticalHeader">verticalHeader</a>() to <i>labels</i></p>
<!-- @@@setRowLabels -->
<!-- $$$setRowReadOnly[overload1]$$$setRowReadOnlyintbool -->
<h3 class="fn"><a name="setRowReadOnly"></a><span class="type">void</span> Q3Table::<span class="name">setRowReadOnly</span> ( <span class="type">int</span> <i>row</i>, <span class="type">bool</span> <i>ro</i> )<tt> [virtual slot]</tt></h3>
<p>If <i>ro</i> is true, row <i>row</i> is set to be read-only; otherwise the row is set to be editable.</p>
<p>Whether a cell in this row is editable or read-only depends on the cell's EditType, and this setting.</p>
<p><b>See also </b><a href="q3table.html#isRowReadOnly">isRowReadOnly</a>(), <a href="q3table.html#setColumnReadOnly">setColumnReadOnly</a>(), and <a href="q3table.html#readOnly-prop">setReadOnly</a>().</p>
<!-- @@@setRowReadOnly -->
<!-- $$$setRowStretchable[overload1]$$$setRowStretchableintbool -->
<h3 class="fn"><a name="setRowStretchable"></a><span class="type">void</span> Q3Table::<span class="name">setRowStretchable</span> ( <span class="type">int</span> <i>row</i>, <span class="type">bool</span> <i>stretch</i> )<tt> [virtual slot]</tt></h3>
<p>If <i>stretch</i> is true, row <i>row</i> is set to be stretchable; otherwise row <i>row</i> is set to be unstretchable.</p>
<p>If the table widget's height decreases or increases stretchable rows will grow shorter or taller to fit the space available as completely as possible. The user cannot manually resize stretchable rows.</p>
<p><b>See also </b><a href="q3table.html#isRowStretchable">isRowStretchable</a>() and <a href="q3table.html#setColumnStretchable">setColumnStretchable</a>().</p>
<!-- @@@setRowStretchable -->
<!-- $$$setText[overload1]$$$setTextintintconstQString& -->
<h3 class="fn"><a name="setText"></a><span class="type">void</span> Q3Table::<span class="name">setText</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i> )<tt> [virtual]</tt></h3>
<p>Sets the text in the cell at <i>row</i>, <i>col</i> to <i>text</i>.</p>
<p>If the cell does not contain a table item a <a href="q3tableitem.html" class="compat">Q3TableItem</a> is created with an <a href="q3tableitem.html#EditType-enum">EditType</a> of <tt>OnTyping</tt>, otherwise the existing table item's text (if any) is replaced with <i>text</i>.</p>
<p><b>See also </b><a href="q3table.html#text">text</a>(), <a href="q3table.html#setPixmap">setPixmap</a>(), <a href="q3table.html#setItem">setItem</a>(), and <a href="q3tableitem.html#setText">Q3TableItem::setText</a>().</p>
<!-- @@@setText -->
<!-- $$$setTopMargin[overload1]$$$setTopMarginint -->
<h3 class="fn"><a name="setTopMargin"></a><span class="type">void</span> Q3Table::<span class="name">setTopMargin</span> ( <span class="type">int</span> <i>m</i> )<tt> [virtual slot]</tt></h3>
<p>Sets the top margin to be <i>m</i> pixels high.</p>
<p>The <a href="q3table.html#horizontalHeader">horizontalHeader</a>(), which displays column labels, occupies this margin.</p>
<p><b>See also </b><a href="q3scrollview.html#topMargin">topMargin</a>() and <a href="q3table.html#setLeftMargin">setLeftMargin</a>().</p>
<!-- @@@setTopMargin -->
<!-- $$$showColumn[overload1]$$$showColumnint -->
<h3 class="fn"><a name="showColumn"></a><span class="type">void</span> Q3Table::<span class="name">showColumn</span> ( <span class="type">int</span> <i>col</i> )<tt> [virtual slot]</tt></h3>
<p>Shows column <i>col</i>.</p>
<p><b>See also </b><a href="q3table.html#hideColumn">hideColumn</a>() and <a href="q3table.html#showRow">showRow</a>().</p>
<!-- @@@showColumn -->
<!-- $$$showEvent[overload1]$$$showEventQShowEvent* -->
<h3 class="fn"><a name="showEvent"></a><span class="type">void</span> Q3Table::<span class="name">showEvent</span> ( <span class="type"><a href="qshowevent.html">QShowEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#showEvent">QWidget::showEvent</a>().</p>
<!-- @@@showEvent -->
<!-- $$$showRow[overload1]$$$showRowint -->
<h3 class="fn"><a name="showRow"></a><span class="type">void</span> Q3Table::<span class="name">showRow</span> ( <span class="type">int</span> <i>row</i> )<tt> [virtual slot]</tt></h3>
<p>Shows row <i>row</i>.</p>
<p><b>See also </b><a href="q3table.html#hideRow">hideRow</a>() and <a href="q3table.html#showColumn">showColumn</a>().</p>
<!-- @@@showRow -->
<!-- $$$sizeHint[overload1]$$$sizeHint -->
<h3 class="fn"><a name="sizeHint"></a><span class="type"><a href="qsize.html">QSize</a></span> Q3Table::<span class="name">sizeHint</span> () const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#sizeHint-prop">QWidget::sizeHint</a>().</p>
<!-- @@@sizeHint -->
<!-- $$$sortColumn[overload1]$$$sortColumnintboolbool -->
<h3 class="fn"><a name="sortColumn"></a><span class="type">void</span> Q3Table::<span class="name">sortColumn</span> ( <span class="type">int</span> <i>col</i>, <span class="type">bool</span> <i>ascending</i> = true, <span class="type">bool</span> <i>wholeRows</i> = false )<tt> [virtual]</tt></h3>
<p>Sorts column <i>col</i>. If <i>ascending</i> is true the sort is in ascending order, otherwise the sort is in descending order.</p>
<p>If <i>wholeRows</i> is true, entire rows are sorted using <a href="q3table.html#swapRows">swapRows</a>(); otherwise only cells in the column are sorted using <a href="q3table.html#swapCells">swapCells</a>().</p>
<p>Note that if you are not using Q3TableItems you will need to reimplement <a href="q3table.html#swapRows">swapRows</a>() and <a href="q3table.html#swapCells">swapCells</a>(). (See the notes on large tables.)</p>
<p><b>See also </b><a href="q3table.html#swapRows">swapRows</a>().</p>
<!-- @@@sortColumn -->
<!-- $$$startDrag[overload1]$$$startDrag -->
<h3 class="fn"><a name="startDrag"></a><span class="type">void</span> Q3Table::<span class="name">startDrag</span> ()<tt> [virtual protected]</tt></h3>
<p>Starts a drag.</p>
<p>Usually you don't need to call or reimplement this function yourself.</p>
<p><b>See also </b><a href="q3table.html#dragObject">dragObject</a>().</p>
<!-- @@@startDrag -->
<!-- $$$swapCells[overload1]$$$swapCellsintintintint -->
<h3 class="fn"><a name="swapCells"></a><span class="type">void</span> Q3Table::<span class="name">swapCells</span> ( <span class="type">int</span> <i>row1</i>, <span class="type">int</span> <i>col1</i>, <span class="type">int</span> <i>row2</i>, <span class="type">int</span> <i>col2</i> )<tt> [virtual slot]</tt></h3>
<p>Swaps the contents of the cell at <i>row1</i>, <i>col1</i> with the contents of the cell at <i>row2</i>, <i>col2</i>.</p>
<p>This function is also called when the table is sorted.</p>
<p>If you don't use <a href="q3tableitem.html" class="compat">Q3TableItem</a>s and want your users to be able to swap cells, you will need to reimplement this function. (See the notes on large tables.)</p>
<p><b>See also </b><a href="q3table.html#swapColumns">swapColumns</a>() and <a href="q3table.html#swapRows">swapRows</a>().</p>
<!-- @@@swapCells -->
<!-- $$$swapColumns[overload1]$$$swapColumnsintintbool -->
<h3 class="fn"><a name="swapColumns"></a><span class="type">void</span> Q3Table::<span class="name">swapColumns</span> ( <span class="type">int</span> <i>col1</i>, <span class="type">int</span> <i>col2</i>, <span class="type">bool</span> <i>swapHeader</i> = false )<tt> [virtual slot]</tt></h3>
<p>Swaps the data in <i>col1</i> with <i>col2</i>.</p>
<p>This function is used to swap the positions of two columns. It is called when the user changes the order of columns (see <a href="q3table.html#columnMovingEnabled-prop">setColumnMovingEnabled</a>(), and when columns are sorted.</p>
<p>If you don't use <a href="q3tableitem.html" class="compat">Q3TableItem</a>s and want your users to be able to swap columns you will need to reimplement this function. (See the notes on large tables.)</p>
<p>If <i>swapHeader</i> is true, the columns' header contents is also swapped.</p>
<p><b>See also </b><a href="q3table.html#swapCells">swapCells</a>().</p>
<!-- @@@swapColumns -->
<!-- $$$swapRows[overload1]$$$swapRowsintintbool -->
<h3 class="fn"><a name="swapRows"></a><span class="type">void</span> Q3Table::<span class="name">swapRows</span> ( <span class="type">int</span> <i>row1</i>, <span class="type">int</span> <i>row2</i>, <span class="type">bool</span> <i>swapHeader</i> = false )<tt> [virtual slot]</tt></h3>
<p>Swaps the data in <i>row1</i> and <i>row2</i>.</p>
<p>This function is used to swap the positions of two rows. It is called when the user changes the order of rows (see <a href="q3table.html#rowMovingEnabled-prop">setRowMovingEnabled</a>()), and when rows are sorted.</p>
<p>If you don't use <a href="q3tableitem.html" class="compat">Q3TableItem</a>s and want your users to be able to swap rows, e.g&#x2e; for sorting, you will need to reimplement this function. (See the notes on large tables.)</p>
<p>If <i>swapHeader</i> is true, the rows' header contents is also swapped.</p>
<p>This function will not update the <a href="q3table.html" class="compat">Q3Table</a>, you will have to do this manually, e.g&#x2e; by calling <a href="q3scrollview.html#updateContents">updateContents</a>().</p>
<p><b>See also </b><a href="q3table.html#swapColumns">swapColumns</a>() and <a href="q3table.html#swapCells">swapCells</a>().</p>
<!-- @@@swapRows -->
<!-- $$$takeItem[overload1]$$$takeItemQ3TableItem* -->
<h3 class="fn"><a name="takeItem"></a><span class="type">void</span> Q3Table::<span class="name">takeItem</span> ( <span class="type"><a href="q3tableitem.html">Q3TableItem</a></span> * <i>i</i> )<tt> [virtual]</tt></h3>
<p>Takes the table item <i>i</i> out of the table. This function does <i>not</i> delete the table item. You must either delete the table item yourself or put it into a table (using <a href="q3table.html#setItem">setItem</a>()) which will then take ownership of it.</p>
<p>Use this function if you want to move an item from one cell in a table to another, or to move an item from one table to another, reinserting the item with <a href="q3table.html#setItem">setItem</a>().</p>
<p>If you want to exchange two cells use <a href="q3table.html#swapCells">swapCells</a>().</p>
<!-- @@@takeItem -->
<!-- $$$text[overload1]$$$textintint -->
<h3 class="fn"><a name="text"></a><span class="type"><a href="qstring.html">QString</a></span> Q3Table::<span class="name">text</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i> ) const<tt> [virtual]</tt></h3>
<p>Returns the text in the cell at <i>row</i>, <i>col</i>, or an empty string if the relevant item does not exist or has no text.</p>
<p><b>See also </b><a href="q3table.html#setText">setText</a>() and <a href="q3table.html#setPixmap">setPixmap</a>().</p>
<!-- @@@text -->
<!-- $$$updateCell[overload1]$$$updateCellintint -->
<h3 class="fn"><a name="updateCell"></a><span class="type">void</span> Q3Table::<span class="name">updateCell</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i> )</h3>
<p>Repaints the cell at <i>row</i>, <i>col</i>.</p>
<!-- @@@updateCell -->
<!-- $$$updateHeaderStates[overload1]$$$updateHeaderStates -->
<h3 class="fn"><a name="updateHeaderStates"></a><span class="type">void</span> Q3Table::<span class="name">updateHeaderStates</span> ()</h3>
<p>This functions updates all the header states to be in sync with the current selections. This should be called after programmatically changing, adding or removing selections, so that the headers are updated.</p>
<!-- @@@updateHeaderStates -->
<!-- $$$valueChanged[overload1]$$$valueChangedintint -->
<h3 class="fn"><a name="valueChanged"></a><span class="type">void</span> Q3Table::<span class="name">valueChanged</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>col</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the user changed the value in the cell at <i>row</i>, <i>col</i>.</p>
<!-- @@@valueChanged -->
<!-- $$$verticalHeader[overload1]$$$verticalHeader -->
<h3 class="fn"><a name="verticalHeader"></a><span class="type"><a href="q3header.html">Q3Header</a></span> * Q3Table::<span class="name">verticalHeader</span> () const</h3>
<p>Returns the table's vertical <a href="q3header.html" class="compat">Q3Header</a>.</p>
<p>This header contains the row labels.</p>
<p><b>See also </b><a href="q3table.html#horizontalHeader">horizontalHeader</a>(), <a href="q3table.html#setLeftMargin">setLeftMargin</a>(), and <a href="q3header.html" class="compat">Q3Header</a>.</p>
<!-- @@@verticalHeader -->
<!-- $$$viewportResizeEvent[overload1]$$$viewportResizeEventQResizeEvent* -->
<h3 class="fn"><a name="viewportResizeEvent"></a><span class="type">void</span> Q3Table::<span class="name">viewportResizeEvent</span> ( <span class="type"><a href="qresizeevent.html">QResizeEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="q3scrollview.html#viewportResizeEvent">Q3ScrollView::viewportResizeEvent</a>().</p>
<!-- @@@viewportResizeEvent -->
</div>
      </div>
    </div>
    </div> 
    <div class="ft">
      <span></span>
    </div>
  </div> 
  <div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2015 The Qt Company Ltd.
      Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      Qt and respective logos are trademarks of The Qt Company Ltd 
      in Finland and/or other countries worldwide. All other trademarks are property
      of their respective owners. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
  </div>

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