Sophie

Sophie

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

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" />
<!-- qtableview.cpp -->
  <title>Qt 4.8: QTableView Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/style.css" />
  <script src="scripts/jquery.js" type="text/javascript"></script>
  <script src="scripts/functions.js" type="text/javascript"></script>
  <link rel="stylesheet" type="text/css" href="style/superfish.css" />
  <link rel="stylesheet" type="text/css" href="style/narrow.css" />
  <!--[if IE]>
<meta name="MSSmartTagsPreventParsing" content="true">
<meta http-equiv="imagetoolbar" content="no">
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie6.css">
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie7.css">
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/style_ie8.css">
<![endif]-->

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

</head>
<body class="" onload="CheckEmptyAndLoadList();">
 <div class="header" id="qtdocheader">
    <div class="content"> 
    <div id="nav-logo">
      <a href="index.html">Home</a></div>
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
    <div id="narrowsearch"></div>
    <div id="nav-topright">
      <ul>
        <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li>
        <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li>
        <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/">
          DOC</a></li>
        <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li>
      </ul>
    </div>
    <div id="shortCut">
      <ul>
        <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li>
        <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS        </a></li>
      </ul>
     </div>
 <ul class="sf-menu" id="narrowmenu"> 
             <li><a href="#">API Lookup</a> 
                 <ul> 
                     <li><a href="classes.html">Class index</a></li> 
           <li><a href="functions.html">Function index</a></li> 
           <li><a href="modules.html">Modules</a></li> 
           <li><a href="namespaces.html">Namespaces</a></li> 
           <li><a href="qtglobal.html">Global Declarations</a></li> 
           <li><a href="qdeclarativeelements.html">QML elements</a></li> 
             </ul> 
             </li> 
             <li><a href="#">Qt Topics</a> 
                 <ul> 
                        <li><a href="qt-basic-concepts.html">Programming with Qt</a></li>  
                        <li><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li>  
                        <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li>  
                        <li><a href="supported-platforms.html">Supported Platforms</a></li>  
                        <li><a href="technology-apis.html">Qt and Key Technologies</a></li>  
                        <li><a href="best-practices.html">How-To's and Best Practices</a></li>  
              </ul> 
                 </li> 
                 <li><a href="#">Examples</a> 
                     <ul> 
                       <li><a href="all-examples.html">Examples</a></li> 
                       <li><a href="tutorials.html">Tutorials</a></li> 
                       <li><a href="demos.html">Demos</a></li> 
                       <li><a href="qdeclarativeexamples.html">QML Examples</a></li> 
                </ul> 
                     </li> 
                 </ul> 
    </div>
  </div>
  <div class="wrapper">
    <div class="hd">
      <span></span>
    </div>
    <div class="bd group">
      <div class="sidebar">
        <div class="searchlabel">
          Search index:</div>
        <div class="search" id="sidebarsearch">
          <form id="qtdocsearch" action="" onsubmit="return false;">
            <fieldset>
              <input type="text" name="searchstring" id="pageType" value="" />
 <div id="resultdialog"> 
 <a href="#" id="resultclose">Close</a> 
 <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> 
 <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span>&nbsp;results:</p> 
 <ul id="resultlist" class="all"> 
 </ul> 
 </div> 
            </fieldset>
          </form>
        </div>
        <div class="box first bottombar" id="lookup">
          <h2 title="API Lookup"><span></span>
            API Lookup</h2>
          <div  id="list001" class="list">
          <ul id="ul001" >
              <li class="defaultLink"><a href="classes.html">Class index</a></li>
              <li class="defaultLink"><a href="functions.html">Function index</a></li>
              <li class="defaultLink"><a href="modules.html">Modules</a></li>
              <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
              <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
              <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
            </ul> 
          </div>
        </div>
        <div class="box bottombar" id="topics">
          <h2 title="Qt Topics"><span></span>
            Qt Topics</h2>
          <div id="list002" class="list">
            <ul id="ul002" >
               <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> 
               <li class="defaultLink"><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li> 
               <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> 
               <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li>  
               <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> 
               <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> 
            </ul>  
          </div>
        </div>
        <div class="box" id="examples">
          <h2 title="Examples"><span></span>
            Examples</h2>
          <div id="list003" class="list">
        <ul id="ul003">
              <li class="defaultLink"><a href="all-examples.html">Examples</a></li>
              <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
              <li class="defaultLink"><a href="demos.html">Demos</a></li>
              <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
            </ul> 
          </div>
        </div>
      </div>
      <div class="wrap">
        <div class="toolbar">
          <div class="breadcrumb toolblock">
            <ul>
              <li class="first"><a href="index.html">Home</a></li>
              <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtgui.html">QtGui</a></li>
<li>QTableView</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="#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="#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="#navigation">Navigation</a></li>
<li class="level2"><a href="#visual-appearance">Visual Appearance</a></li>
<li class="level2"><a href="#coordinate-systems">Coordinate Systems</a></li>
<li class="level2"><a href="#styles">Styles</a></li>
</ul>
</div>
<h1 class="title">QTableView Class Reference</h1>
<!-- $$$QTableView-brief -->
<p>The QTableView class provides a default model/view implementation of a table view. <a href="#details">More...</a></p>
<!-- @@@QTableView -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QTableView&gt;</span></pre><p><b>Inherits: </b><a href="qabstractitemview.html">QAbstractItemView</a>.</p>
<p><b>Inherited by: </b><a href="qtablewidget.html">QTableWidget</a>.</p>
<ul>
<li><a href="qtableview-members.html">List of all members, including inherited members</a></li>
<li><a href="qtableview-obsolete.html">Obsolete members</a></li>
</ul>
<a name="properties"></a>
<h2>Properties</h2>
<table class="propsummary">
<tr><td class="topAlign"><ul>
<li class="fn"><b><a href="qtableview.html#cornerButtonEnabled-prop">cornerButtonEnabled</a></b> : bool</li>
<li class="fn"><b><a href="qtableview.html#gridStyle-prop">gridStyle</a></b> : Qt::PenStyle</li>
<li class="fn"><b><a href="qtableview.html#showGrid-prop">showGrid</a></b> : bool</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="qtableview.html#sortingEnabled-prop">sortingEnabled</a></b> : bool</li>
<li class="fn"><b><a href="qtableview.html#wordWrap-prop">wordWrap</a></b> : bool</li>
</ul>
</td></tr>
</table>
<ul>
<li class="fn">16 properties inherited from <a href="qabstractitemview.html#properties">QAbstractItemView</a></li>
<li class="fn">2 properties inherited from <a href="qabstractscrollarea.html#properties">QAbstractScrollArea</a></li>
<li class="fn">6 properties inherited from <a href="qframe.html#properties">QFrame</a></li>
<li class="fn">58 properties inherited from <a href="qwidget.html#properties">QWidget</a></li>
<li class="fn">1 property inherited from <a href="qobject.html#properties">QObject</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#QTableView">QTableView</a></b> ( QWidget * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#dtor.QTableView">~QTableView</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#clearSpans">clearSpans</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#columnAt">columnAt</a></b> ( int <i>x</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#columnSpan">columnSpan</a></b> ( int <i>row</i>, int <i>column</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#columnViewportPosition">columnViewportPosition</a></b> ( int <i>column</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#columnWidth">columnWidth</a></b> ( int <i>column</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::PenStyle </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#gridStyle-prop">gridStyle</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QHeaderView * </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#horizontalHeader">horizontalHeader</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#isColumnHidden">isColumnHidden</a></b> ( int <i>column</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#cornerButtonEnabled-prop">isCornerButtonEnabled</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtableview.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="qtableview.html#sortingEnabled-prop">isSortingEnabled</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#rowAt">rowAt</a></b> ( int <i>y</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#rowHeight">rowHeight</a></b> ( int <i>row</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#rowSpan">rowSpan</a></b> ( int <i>row</i>, int <i>column</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#rowViewportPosition">rowViewportPosition</a></b> ( int <i>row</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#setColumnHidden">setColumnHidden</a></b> ( int <i>column</i>, bool <i>hide</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#setColumnWidth">setColumnWidth</a></b> ( int <i>column</i>, int <i>width</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#cornerButtonEnabled-prop">setCornerButtonEnabled</a></b> ( bool <i>enable</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#gridStyle-prop">setGridStyle</a></b> ( Qt::PenStyle <i>style</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#setHorizontalHeader">setHorizontalHeader</a></b> ( QHeaderView * <i>header</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#setRowHeight">setRowHeight</a></b> ( int <i>row</i>, int <i>height</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#setRowHidden">setRowHidden</a></b> ( int <i>row</i>, bool <i>hide</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#sortingEnabled-prop">setSortingEnabled</a></b> ( bool <i>enable</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#setSpan">setSpan</a></b> ( int <i>row</i>, int <i>column</i>, int <i>rowSpanCount</i>, int <i>columnSpanCount</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#setVerticalHeader">setVerticalHeader</a></b> ( QHeaderView * <i>header</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#wordWrap-prop">setWordWrap</a></b> ( bool <i>on</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#showGrid-prop">showGrid</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#sortByColumn">sortByColumn</a></b> ( int <i>column</i>, Qt::SortOrder <i>order</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QHeaderView * </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#verticalHeader">verticalHeader</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#wordWrap-prop">wordWrap</a></b> () const</td></tr>
</table>
<a name="reimplemented-public-functions"></a>
<h2>Reimplemented Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual QModelIndex </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#indexAt">indexAt</a></b> ( const QPoint &amp; <i>pos</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#setModel">setModel</a></b> ( QAbstractItemModel * <i>model</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#setRootIndex">setRootIndex</a></b> ( const QModelIndex &amp; <i>index</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#setSelectionModel">setSelectionModel</a></b> ( QItemSelectionModel * <i>selectionModel</i> )</td></tr>
</table>
<ul>
<li class="fn">57 public functions inherited from <a href="qabstractitemview.html#public-functions">QAbstractItemView</a></li>
<li class="fn">17 public functions inherited from <a href="qabstractscrollarea.html#public-functions">QAbstractScrollArea</a></li>
<li class="fn">14 public functions inherited from <a href="qframe.html#public-functions">QFrame</a></li>
<li class="fn">221 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
<li class="fn">29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
<li class="fn">13 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<a name="public-slots"></a>
<h2>Public Slots</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#hideColumn">hideColumn</a></b> ( int <i>column</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#hideRow">hideRow</a></b> ( int <i>row</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#resizeColumnToContents">resizeColumnToContents</a></b> ( int <i>column</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#resizeColumnsToContents">resizeColumnsToContents</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#resizeRowToContents">resizeRowToContents</a></b> ( int <i>row</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#resizeRowsToContents">resizeRowsToContents</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#selectColumn">selectColumn</a></b> ( int <i>column</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#selectRow">selectRow</a></b> ( int <i>row</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#showGrid-prop">setShowGrid</a></b> ( bool <i>show</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#showColumn">showColumn</a></b> ( int <i>column</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#showRow">showRow</a></b> ( int <i>row</i> )</td></tr>
</table>
<ul>
<li class="fn">9 public slots inherited from <a href="qabstractitemview.html#public-slots">QAbstractItemView</a></li>
<li class="fn">19 public slots inherited from <a href="qwidget.html#public-slots">QWidget</a></li>
<li class="fn">1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
</ul>
<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="qtableview.html#currentChanged">currentChanged</a></b> ( const QModelIndex &amp; <i>current</i>, const QModelIndex &amp; <i>previous</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#horizontalOffset">horizontalOffset</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#isIndexHidden">isIndexHidden</a></b> ( const QModelIndex &amp; <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QModelIndex </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#moveCursor">moveCursor</a></b> ( CursorAction <i>cursorAction</i>, Qt::KeyboardModifiers <i>modifiers</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#paintEvent">paintEvent</a></b> ( QPaintEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QModelIndexList </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#selectedIndexes">selectedIndexes</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#selectionChanged">selectionChanged</a></b> ( const QItemSelection &amp; <i>selected</i>, const QItemSelection &amp; <i>deselected</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#setSelection">setSelection</a></b> ( const QRect &amp; <i>rect</i>, QItemSelectionModel::SelectionFlags <i>flags</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#sizeHintForColumn">sizeHintForColumn</a></b> ( int <i>column</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#sizeHintForRow">sizeHintForRow</a></b> ( int <i>row</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#timerEvent">timerEvent</a></b> ( QTimerEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#updateGeometries">updateGeometries</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#verticalOffset">verticalOffset</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QStyleOptionViewItem </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#viewOptions">viewOptions</a></b> () const</td></tr>
</table>
<ul>
<li class="fn">36 protected functions inherited from <a href="qabstractitemview.html#protected-functions">QAbstractItemView</a></li>
<li class="fn">18 protected functions inherited from <a href="qabstractscrollarea.html#protected-functions">QAbstractScrollArea</a></li>
<li class="fn">3 protected functions inherited from <a href="qframe.html#protected-functions">QFrame</a></li>
<li class="fn">37 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
<li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
<li class="fn">1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li>
</ul>
<a name="protected-slots"></a>
<h2>Protected Slots</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#columnCountChanged">columnCountChanged</a></b> ( int <i>oldCount</i>, int <i>newCount</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#columnMoved">columnMoved</a></b> ( int <i>column</i>, int <i>oldIndex</i>, int <i>newIndex</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#columnResized">columnResized</a></b> ( int <i>column</i>, int <i>oldWidth</i>, int <i>newWidth</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#rowCountChanged">rowCountChanged</a></b> ( int <i>oldCount</i>, int <i>newCount</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#rowMoved">rowMoved</a></b> ( int <i>row</i>, int <i>oldIndex</i>, int <i>newIndex</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#rowResized">rowResized</a></b> ( int <i>row</i>, int <i>oldHeight</i>, int <i>newHeight</i> )</td></tr>
</table>
<ul>
<li class="fn">9 protected slots inherited from <a href="qabstractitemview.html#protected-slots">QAbstractItemView</a></li>
<li class="fn">1 protected slot inherited from <a href="qabstractscrollarea.html#protected-slots">QAbstractScrollArea</a></li>
<li class="fn">1 protected slot inherited from <a href="qwidget.html#protected-slots">QWidget</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">6 signals inherited from <a href="qabstractitemview.html#signals">QAbstractItemView</a></li>
<li class="fn">1 signal inherited from <a href="qwidget.html#signals">QWidget</a></li>
<li class="fn">1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
<li class="fn">4 static public members inherited from <a href="qwidget.html#static-public-members">QWidget</a></li>
<li class="fn">7 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
<li class="fn">36 protected functions inherited from <a href="qabstractitemview.html#protected-functions">QAbstractItemView</a></li>
<li class="fn">18 protected functions inherited from <a href="qabstractscrollarea.html#protected-functions">QAbstractScrollArea</a></li>
<li class="fn">3 protected functions inherited from <a href="qframe.html#protected-functions">QFrame</a></li>
<li class="fn">37 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
<li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
<li class="fn">1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li>
</ul>
<a name="details"></a>
<!-- $$$QTableView-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QTableView class provides a default model/view implementation of a table view.</p>
<p>A QTableView implements a table view that displays items from a model. This class is used to provide standard tables that were previously provided by the <a href="porting4.html#qtable">QTable</a> class, but using the more flexible approach provided by Qt's model/view architecture.</p>
<p>The QTableView class is one of the <a href="model-view.html">Model/View Classes</a> and is part of Qt's <a href="model-view-programming.html">model/view framework</a>.</p>
<p>QTableView implements the interfaces defined by the <a href="qabstractitemview.html">QAbstractItemView</a> class to allow it to display data provided by models derived from the <a href="qabstractitemmodel.html">QAbstractItemModel</a> class.</p>
<a name="navigation"></a>
<h3>Navigation</h3>
<p>You can navigate the cells in the table by clicking on a cell with the mouse, or by using the arrow keys. Because QTableView enables <a href="qabstractitemview.html#tabKeyNavigation-prop">tabKeyNavigation</a> by default, you can also hit Tab and Backtab to move from cell to cell.</p>
<a name="visual-appearance"></a>
<h3>Visual Appearance</h3>
<p>The table has a vertical header that can be obtained using the <a href="qtableview.html#verticalHeader">verticalHeader</a>() function, and a horizontal header that is available through the <a href="qtableview.html#horizontalHeader">horizontalHeader</a>() function. The height of each row in the table can be found by using <a href="qtableview.html#rowHeight">rowHeight</a>(); similarly, the width of columns can be found using <a href="qtableview.html#columnWidth">columnWidth</a>(). Since both of these are plain widgets, you can hide either of them using their <a href="qwidget.html#hide">hide</a>() functions.</p>
<p>Rows and columns can be hidden and shown with <a href="qtableview.html#hideRow">hideRow</a>(), <a href="qtableview.html#hideColumn">hideColumn</a>(), <a href="qtableview.html#showRow">showRow</a>(), and <a href="qtableview.html#showColumn">showColumn</a>(). They can be selected with <a href="qtableview.html#selectRow">selectRow</a>() and <a href="qtableview.html#selectColumn">selectColumn</a>(). The table will show a grid depending on the <a href="qtableview.html#showGrid-prop">showGrid</a> property.</p>
<p>The items shown in a table view, like those in the other item views, are rendered and edited using standard <a href="qitemdelegate.html">delegates</a>. However, for some tasks it is sometimes useful to be able to insert widgets in a table instead. Widgets are set for particular indexes with the <a href="qabstractitemview.html#setIndexWidget">setIndexWidget()</a> function, and later retrieved with <a href="qabstractitemview.html#indexWidget">indexWidget()</a>.</p>
<table class="generic">
<tr valign="top" class="odd"><td ><img src="images/qtableview-resized.png" alt="" /></td><td >By default, the cells in a table do not expand to fill the available space.<p>You can make the cells fill the available space by stretching the last header section. Access the relevant header using <a href="qtableview.html#horizontalHeader">horizontalHeader</a>() or <a href="qtableview.html#verticalHeader">verticalHeader</a>() and set the header's <a href="qheaderview.html#stretchLastSection-prop">stretchLastSection</a> property.</p>
<p>To distribute the available space according to the space requirement of each column or row, call the view's <a href="qtableview.html#resizeColumnsToContents">resizeColumnsToContents</a>() or <a href="qtableview.html#resizeRowsToContents">resizeRowsToContents</a>() functions.</p>
</td></tr>
</table>
<a name="coordinate-systems"></a>
<h3>Coordinate Systems</h3>
<p>For some specialized forms of tables it is useful to be able to convert between row and column indexes and widget coordinates. The <a href="qtableview.html#rowAt">rowAt</a>() function provides the y-coordinate within the view of the specified row; the row index can be used to obtain a corresponding y-coordinate with <a href="qtableview.html#rowViewportPosition">rowViewportPosition</a>(). The <a href="qtableview.html#columnAt">columnAt</a>() and <a href="qtableview.html#columnViewportPosition">columnViewportPosition</a>() functions provide the equivalent conversion operations between x-coordinates and column indexes.</p>
<a name="styles"></a>
<h3>Styles</h3>
<p>QTableView is styled appropriately for each platform. The following images show how it looks on three different platforms. Go to the <a href="gallery.html">Qt Widget Gallery</a> to see its appearance in other styles.</p>
<table class="generic" width="100%">
 <tr valign="top" class="odd"><td ><img src="images/windowsxp-tableview.png" alt="Screenshot of a Windows XP style table view" /></td><td ><img src="images/macintosh-tableview.png" alt="Screenshot of a Macintosh style table view" /></td><td ><img src="images/plastique-tableview.png" alt="Screenshot of a Plastique style table view" /></td></tr>
<tr valign="top" class="even"><td >A <a href="gallery-windowsxp.html">Windows XP style</a> table view.</td><td >A <a href="gallery-macintosh.html">Macintosh style</a> table view.</td><td >A <a href="gallery-plastique.html">Plastique style</a> table view.</td></tr>
</table>
</div>
<p><b>See also </b><a href="qtablewidget.html">QTableWidget</a>, <a href="model-view-programming.html#view-classes">View Classes</a>, <a href="qabstractitemmodel.html">QAbstractItemModel</a>, <a href="qabstractitemview.html">QAbstractItemView</a>, <a href="itemviews-chart.html">Chart Example</a>, <a href="itemviews-pixelator.html">Pixelator Example</a>, and <a href="sql-tablemodel.html">Table Model Example</a>.</p>
<!-- @@@QTableView -->
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$cornerButtonEnabled-prop$$$isCornerButtonEnabled$$$setCornerButtonEnabledbool -->
<h3 class="fn"><a name="cornerButtonEnabled-prop"></a><span class="name">cornerButtonEnabled</span> : <span class="type">bool</span></h3>
<p>This property holds whether the button in the top-left corner is enabled.</p>
<p>If this property is true then button in the top-left corner of the table view is enabled. Clicking on this button will select all the cells in the table view.</p>
<p>This property is true by default.</p>
<p>This property was introduced in Qt 4.3.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isCornerButtonEnabled</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCornerButtonEnabled</b></span> ( bool <i>enable</i> )</td></tr>
</table>
<!-- @@@cornerButtonEnabled -->
<!-- $$$gridStyle-prop$$$gridStyle$$$setGridStyleQt::PenStyle -->
<h3 class="fn"><a name="gridStyle-prop"></a><span class="name">gridStyle</span> : <span class="type"><a href="qt.html#PenStyle-enum">Qt::PenStyle</a></span></h3>
<p>This property holds the pen style used to draw the grid.</p>
<p>This property holds the style used when drawing the grid (see <a href="qtableview.html#showGrid-prop">showGrid</a>).</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> Qt::PenStyle </td><td class="memItemRight bottomAlign"><span class="name"><b>gridStyle</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setGridStyle</b></span> ( Qt::PenStyle <i>style</i> )</td></tr>
</table>
<!-- @@@gridStyle -->
<!-- $$$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 grid is shown.</p>
<p>If this property is true a grid is drawn for the table; if the property is false, no grid is drawn. The default value is true.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>showGrid</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShowGrid</b></span> ( bool <i>show</i> )</td></tr>
</table>
<!-- @@@showGrid -->
<!-- $$$sortingEnabled-prop$$$isSortingEnabled$$$setSortingEnabledbool -->
<h3 class="fn"><a name="sortingEnabled-prop"></a><span class="name">sortingEnabled</span> : <span class="type">bool</span></h3>
<p>This property holds whether sorting is enabled.</p>
<p>If this property is true, sorting is enabled for the table. If this property is false, sorting is not enabled. The default value is false.</p>
<p><b>Note:</b>. Setting the property to true with setSortingEnabled() immediately triggers a call to <a href="qtableview.html#sortByColumn">sortByColumn</a>() with the current sort section and order.</p>
<p>This property was introduced in Qt 4.2.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isSortingEnabled</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSortingEnabled</b></span> ( bool <i>enable</i> )</td></tr>
</table>
<p><b>See also </b><a href="qtableview.html#sortByColumn">sortByColumn</a>().</p>
<!-- @@@sortingEnabled -->
<!-- $$$wordWrap-prop$$$wordWrap$$$setWordWrapbool -->
<h3 class="fn"><a name="wordWrap-prop"></a><span class="name">wordWrap</span> : <span class="type">bool</span></h3>
<p>This property holds the item text word-wrapping policy.</p>
<p>If this property is true then the item text is wrapped where necessary at word-breaks; otherwise it is not wrapped at all. This property is true by default.</p>
<p>Note that even of wrapping is enabled, the cell will not be expanded to fit all text. Ellipsis will be inserted according to the current <a href="qabstractitemview.html#textElideMode-prop">textElideMode</a>.</p>
<p>This property was introduced in Qt 4.3.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>wordWrap</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setWordWrap</b></span> ( bool <i>on</i> )</td></tr>
</table>
<!-- @@@wordWrap -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QTableView[overload1]$$$QTableViewQWidget* -->
<h3 class="fn"><a name="QTableView"></a>QTableView::<span class="name">QTableView</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0 )</h3>
<p>Constructs a table view with a <i>parent</i> to represent the data.</p>
<p><b>See also </b><a href="qabstractitemmodel.html">QAbstractItemModel</a>.</p>
<!-- @@@QTableView -->
<!-- $$$~QTableView[overload1]$$$~QTableView -->
<h3 class="fn"><a name="dtor.QTableView"></a>QTableView::<span class="name">~QTableView</span> ()</h3>
<p>Destroys the table view.</p>
<!-- @@@~QTableView -->
<!-- $$$clearSpans[overload1]$$$clearSpans -->
<h3 class="fn"><a name="clearSpans"></a><span class="type">void</span> QTableView::<span class="name">clearSpans</span> ()</h3>
<p>Removes all row and column spans in the table view.</p>
<p>This function was introduced in Qt 4.4.</p>
<p><b>See also </b><a href="qtableview.html#setSpan">setSpan</a>().</p>
<!-- @@@clearSpans -->
<!-- $$$columnAt[overload1]$$$columnAtint -->
<h3 class="fn"><a name="columnAt"></a><span class="type">int</span> QTableView::<span class="name">columnAt</span> ( <span class="type">int</span> <i>x</i> ) const</h3>
<p>Returns the column in which the given x-coordinate, <i>x</i>, in contents coordinates is located.</p>
<p><b>Note:</b> This function returns -1 if the given coordinate is not valid (has no column).</p>
<p><b>See also </b><a href="qtableview.html#rowAt">rowAt</a>().</p>
<!-- @@@columnAt -->
<!-- $$$columnCountChanged[overload1]$$$columnCountChangedintint -->
<h3 class="fn"><a name="columnCountChanged"></a><span class="type">void</span> QTableView::<span class="name">columnCountChanged</span> ( <span class="type">int</span> <i>oldCount</i>, <span class="type">int</span> <i>newCount</i> )<tt> [protected slot]</tt></h3>
<p>This slot is called whenever columns are added or deleted. The previous number of columns is specified by <i>oldCount</i>, and the new number of columns is specified by <i>newCount</i>.</p>
<!-- @@@columnCountChanged -->
<!-- $$$columnMoved[overload1]$$$columnMovedintintint -->
<h3 class="fn"><a name="columnMoved"></a><span class="type">void</span> QTableView::<span class="name">columnMoved</span> ( <span class="type">int</span> <i>column</i>, <span class="type">int</span> <i>oldIndex</i>, <span class="type">int</span> <i>newIndex</i> )<tt> [protected slot]</tt></h3>
<p>This slot is called to change the index of the given <i>column</i> in the table view. The old index is specified by <i>oldIndex</i>, and the new index by <i>newIndex</i>.</p>
<p><b>See also </b><a href="qtableview.html#rowMoved">rowMoved</a>().</p>
<!-- @@@columnMoved -->
<!-- $$$columnResized[overload1]$$$columnResizedintintint -->
<h3 class="fn"><a name="columnResized"></a><span class="type">void</span> QTableView::<span class="name">columnResized</span> ( <span class="type">int</span> <i>column</i>, <span class="type">int</span> <i>oldWidth</i>, <span class="type">int</span> <i>newWidth</i> )<tt> [protected slot]</tt></h3>
<p>This slot is called to change the width of the given <i>column</i>. The old width is specified by <i>oldWidth</i>, and the new width by <i>newWidth</i>.</p>
<p><b>See also </b><a href="qtableview.html#rowResized">rowResized</a>().</p>
<!-- @@@columnResized -->
<!-- $$$columnSpan[overload1]$$$columnSpanintint -->
<h3 class="fn"><a name="columnSpan"></a><span class="type">int</span> QTableView::<span class="name">columnSpan</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>column</i> ) const</h3>
<p>Returns the column span of the table element at (<i>row</i>, <i>column</i>). The default is 1.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also </b><a href="qtableview.html#setSpan">setSpan</a>() and <a href="qtableview.html#rowSpan">rowSpan</a>().</p>
<!-- @@@columnSpan -->
<!-- $$$columnViewportPosition[overload1]$$$columnViewportPositionint -->
<h3 class="fn"><a name="columnViewportPosition"></a><span class="type">int</span> QTableView::<span class="name">columnViewportPosition</span> ( <span class="type">int</span> <i>column</i> ) const</h3>
<p>Returns the x-coordinate in contents coordinates of the given <i>column</i>.</p>
<!-- @@@columnViewportPosition -->
<!-- $$$columnWidth[overload1]$$$columnWidthint -->
<h3 class="fn"><a name="columnWidth"></a><span class="type">int</span> QTableView::<span class="name">columnWidth</span> ( <span class="type">int</span> <i>column</i> ) const</h3>
<p>Returns the width of the given <i>column</i>.</p>
<p><b>See also </b><a href="qtableview.html#setColumnWidth">setColumnWidth</a>(), <a href="qtableview.html#resizeColumnToContents">resizeColumnToContents</a>(), and <a href="qtableview.html#rowHeight">rowHeight</a>().</p>
<!-- @@@columnWidth -->
<!-- $$$currentChanged[overload1]$$$currentChangedconstQModelIndex&constQModelIndex& -->
<h3 class="fn"><a name="currentChanged"></a><span class="type">void</span> QTableView::<span class="name">currentChanged</span> ( const <span class="type"><a href="qmodelindex.html">QModelIndex</a></span> &amp; <i>current</i>, const <span class="type"><a href="qmodelindex.html">QModelIndex</a></span> &amp; <i>previous</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#currentChanged">QAbstractItemView::currentChanged</a>().</p>
<!-- @@@currentChanged -->
<!-- $$$hideColumn[overload1]$$$hideColumnint -->
<h3 class="fn"><a name="hideColumn"></a><span class="type">void</span> QTableView::<span class="name">hideColumn</span> ( <span class="type">int</span> <i>column</i> )<tt> [slot]</tt></h3>
<p>Hide the given <i>column</i>.</p>
<p><b>See also </b><a href="qtableview.html#showColumn">showColumn</a>() and <a href="qtableview.html#hideRow">hideRow</a>().</p>
<!-- @@@hideColumn -->
<!-- $$$hideRow[overload1]$$$hideRowint -->
<h3 class="fn"><a name="hideRow"></a><span class="type">void</span> QTableView::<span class="name">hideRow</span> ( <span class="type">int</span> <i>row</i> )<tt> [slot]</tt></h3>
<p>Hide the given <i>row</i>.</p>
<p><b>See also </b><a href="qtableview.html#showRow">showRow</a>() and <a href="qtableview.html#hideColumn">hideColumn</a>().</p>
<!-- @@@hideRow -->
<!-- $$$horizontalHeader[overload1]$$$horizontalHeader -->
<h3 class="fn"><a name="horizontalHeader"></a><span class="type"><a href="qheaderview.html">QHeaderView</a></span> * QTableView::<span class="name">horizontalHeader</span> () const</h3>
<p>Returns the table view's horizontal header.</p>
<p><b>See also </b><a href="qtableview.html#setHorizontalHeader">setHorizontalHeader</a>(), <a href="qtableview.html#verticalHeader">verticalHeader</a>(), and <a href="qabstractitemmodel.html#headerData">QAbstractItemModel::headerData</a>().</p>
<!-- @@@horizontalHeader -->
<!-- $$$horizontalOffset[overload1]$$$horizontalOffset -->
<h3 class="fn"><a name="horizontalOffset"></a><span class="type">int</span> QTableView::<span class="name">horizontalOffset</span> () const<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#horizontalOffset">QAbstractItemView::horizontalOffset</a>().</p>
<p>Returns the horizontal offset of the items in the table view.</p>
<p>Note that the table view uses the horizontal header section positions to determine the positions of columns in the view.</p>
<p><b>See also </b><a href="qtableview.html#verticalOffset">verticalOffset</a>().</p>
<!-- @@@horizontalOffset -->
<!-- $$$indexAt[overload1]$$$indexAtconstQPoint& -->
<h3 class="fn"><a name="indexAt"></a><span class="type"><a href="qmodelindex.html">QModelIndex</a></span> QTableView::<span class="name">indexAt</span> ( const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>pos</i> ) const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#indexAt">QAbstractItemView::indexAt</a>().</p>
<p>Returns the index position of the model item corresponding to the table item at position <i>pos</i> in contents coordinates.</p>
<!-- @@@indexAt -->
<!-- $$$isColumnHidden[overload1]$$$isColumnHiddenint -->
<h3 class="fn"><a name="isColumnHidden"></a><span class="type">bool</span> QTableView::<span class="name">isColumnHidden</span> ( <span class="type">int</span> <i>column</i> ) const</h3>
<p>Returns true if the given <i>column</i> is hidden; otherwise returns false.</p>
<p><b>See also </b><a href="qtableview.html#isRowHidden">isRowHidden</a>().</p>
<!-- @@@isColumnHidden -->
<!-- $$$isIndexHidden[overload1]$$$isIndexHiddenconstQModelIndex& -->
<h3 class="fn"><a name="isIndexHidden"></a><span class="type">bool</span> QTableView::<span class="name">isIndexHidden</span> ( const <span class="type"><a href="qmodelindex.html">QModelIndex</a></span> &amp; <i>index</i> ) const<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#isIndexHidden">QAbstractItemView::isIndexHidden</a>().</p>
<!-- @@@isIndexHidden -->
<!-- $$$isRowHidden[overload1]$$$isRowHiddenint -->
<h3 class="fn"><a name="isRowHidden"></a><span class="type">bool</span> QTableView::<span class="name">isRowHidden</span> ( <span class="type">int</span> <i>row</i> ) const</h3>
<p>Returns true if the given <i>row</i> is hidden; otherwise returns false.</p>
<p><b>See also </b><a href="qtableview.html#isColumnHidden">isColumnHidden</a>().</p>
<!-- @@@isRowHidden -->
<!-- $$$moveCursor[overload1]$$$moveCursorCursorActionQt::KeyboardModifiers -->
<h3 class="fn"><a name="moveCursor"></a><span class="type"><a href="qmodelindex.html">QModelIndex</a></span> QTableView::<span class="name">moveCursor</span> ( <span class="type"><a href="qabstractitemview.html#CursorAction-enum">CursorAction</a></span> <i>cursorAction</i>, <span class="type"><a href="qt.html#KeyboardModifier-enum">Qt::KeyboardModifiers</a></span> <i>modifiers</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#moveCursor">QAbstractItemView::moveCursor</a>().</p>
<p>Moves the cursor in accordance with the given <i>cursorAction</i>, using the information provided by the <i>modifiers</i>.</p>
<p><b>See also </b><a href="qabstractitemview.html#CursorAction-enum">QAbstractItemView::CursorAction</a>.</p>
<!-- @@@moveCursor -->
<!-- $$$paintEvent[overload1]$$$paintEventQPaintEvent* -->
<h3 class="fn"><a name="paintEvent"></a><span class="type">void</span> QTableView::<span class="name">paintEvent</span> ( <span class="type"><a href="qpaintevent.html">QPaintEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#paintEvent">QWidget::paintEvent</a>().</p>
<p>Paints the table on receipt of the given paint event <i>event</i>.</p>
<!-- @@@paintEvent -->
<!-- $$$resizeColumnToContents[overload1]$$$resizeColumnToContentsint -->
<h3 class="fn"><a name="resizeColumnToContents"></a><span class="type">void</span> QTableView::<span class="name">resizeColumnToContents</span> ( <span class="type">int</span> <i>column</i> )<tt> [slot]</tt></h3>
<p>Resizes the given <i>column</i> based on the size hints of the delegate used to render each item in the column.</p>
<p><b>Note:</b> Only visible columns will be resized. Reimplement <a href="qtableview.html#sizeHintForColumn">sizeHintForColumn</a>() to resize hidden columns as well.</p>
<!-- @@@resizeColumnToContents -->
<!-- $$$resizeColumnsToContents[overload1]$$$resizeColumnsToContents -->
<h3 class="fn"><a name="resizeColumnsToContents"></a><span class="type">void</span> QTableView::<span class="name">resizeColumnsToContents</span> ()<tt> [slot]</tt></h3>
<p>Resizes all columns based on the size hints of the delegate used to render each item in the columns.</p>
<!-- @@@resizeColumnsToContents -->
<!-- $$$resizeRowToContents[overload1]$$$resizeRowToContentsint -->
<h3 class="fn"><a name="resizeRowToContents"></a><span class="type">void</span> QTableView::<span class="name">resizeRowToContents</span> ( <span class="type">int</span> <i>row</i> )<tt> [slot]</tt></h3>
<p>Resizes the given <i>row</i> based on the size hints of the delegate used to render each item in the row.</p>
<!-- @@@resizeRowToContents -->
<!-- $$$resizeRowsToContents[overload1]$$$resizeRowsToContents -->
<h3 class="fn"><a name="resizeRowsToContents"></a><span class="type">void</span> QTableView::<span class="name">resizeRowsToContents</span> ()<tt> [slot]</tt></h3>
<p>Resizes all rows based on the size hints of the delegate used to render each item in the rows.</p>
<!-- @@@resizeRowsToContents -->
<!-- $$$rowAt[overload1]$$$rowAtint -->
<h3 class="fn"><a name="rowAt"></a><span class="type">int</span> QTableView::<span class="name">rowAt</span> ( <span class="type">int</span> <i>y</i> ) const</h3>
<p>Returns the row in which the given y-coordinate, <i>y</i>, in contents coordinates is located.</p>
<p><b>Note:</b> This function returns -1 if the given coordinate is not valid (has no row).</p>
<p><b>See also </b><a href="qtableview.html#columnAt">columnAt</a>().</p>
<!-- @@@rowAt -->
<!-- $$$rowCountChanged[overload1]$$$rowCountChangedintint -->
<h3 class="fn"><a name="rowCountChanged"></a><span class="type">void</span> QTableView::<span class="name">rowCountChanged</span> ( <span class="type">int</span> <i>oldCount</i>, <span class="type">int</span> <i>newCount</i> )<tt> [protected slot]</tt></h3>
<p>This slot is called whenever rows are added or deleted. The previous number of rows is specified by <i>oldCount</i>, and the new number of rows is specified by <i>newCount</i>.</p>
<!-- @@@rowCountChanged -->
<!-- $$$rowHeight[overload1]$$$rowHeightint -->
<h3 class="fn"><a name="rowHeight"></a><span class="type">int</span> QTableView::<span class="name">rowHeight</span> ( <span class="type">int</span> <i>row</i> ) const</h3>
<p>Returns the height of the given <i>row</i>.</p>
<p><b>See also </b><a href="qtableview.html#setRowHeight">setRowHeight</a>(), <a href="qtableview.html#resizeRowToContents">resizeRowToContents</a>(), and <a href="qtableview.html#columnWidth">columnWidth</a>().</p>
<!-- @@@rowHeight -->
<!-- $$$rowMoved[overload1]$$$rowMovedintintint -->
<h3 class="fn"><a name="rowMoved"></a><span class="type">void</span> QTableView::<span class="name">rowMoved</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>oldIndex</i>, <span class="type">int</span> <i>newIndex</i> )<tt> [protected slot]</tt></h3>
<p>This slot is called to change the index of the given <i>row</i> in the table view. The old index is specified by <i>oldIndex</i>, and the new index by <i>newIndex</i>.</p>
<p><b>See also </b><a href="qtableview.html#columnMoved">columnMoved</a>().</p>
<!-- @@@rowMoved -->
<!-- $$$rowResized[overload1]$$$rowResizedintintint -->
<h3 class="fn"><a name="rowResized"></a><span class="type">void</span> QTableView::<span class="name">rowResized</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>oldHeight</i>, <span class="type">int</span> <i>newHeight</i> )<tt> [protected slot]</tt></h3>
<p>This slot is called to change the height of the given <i>row</i>. The old height is specified by <i>oldHeight</i>, and the new height by <i>newHeight</i>.</p>
<p><b>See also </b><a href="qtableview.html#columnResized">columnResized</a>().</p>
<!-- @@@rowResized -->
<!-- $$$rowSpan[overload1]$$$rowSpanintint -->
<h3 class="fn"><a name="rowSpan"></a><span class="type">int</span> QTableView::<span class="name">rowSpan</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>column</i> ) const</h3>
<p>Returns the row span of the table element at (<i>row</i>, <i>column</i>). The default is 1.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also </b><a href="qtableview.html#setSpan">setSpan</a>() and <a href="qtableview.html#columnSpan">columnSpan</a>().</p>
<!-- @@@rowSpan -->
<!-- $$$rowViewportPosition[overload1]$$$rowViewportPositionint -->
<h3 class="fn"><a name="rowViewportPosition"></a><span class="type">int</span> QTableView::<span class="name">rowViewportPosition</span> ( <span class="type">int</span> <i>row</i> ) const</h3>
<p>Returns the y-coordinate in contents coordinates of the given <i>row</i>.</p>
<!-- @@@rowViewportPosition -->
<!-- $$$selectColumn[overload1]$$$selectColumnint -->
<h3 class="fn"><a name="selectColumn"></a><span class="type">void</span> QTableView::<span class="name">selectColumn</span> ( <span class="type">int</span> <i>column</i> )<tt> [slot]</tt></h3>
<p>Selects the given <i>column</i> in the table view if the current <a href="qabstractitemview.html#SelectionMode-enum">SelectionMode</a> and <a href="qabstractitemview.html#SelectionBehavior-enum">SelectionBehavior</a> allows columns to be selected.</p>
<p><b>See also </b><a href="qtableview.html#selectRow">selectRow</a>().</p>
<!-- @@@selectColumn -->
<!-- $$$selectRow[overload1]$$$selectRowint -->
<h3 class="fn"><a name="selectRow"></a><span class="type">void</span> QTableView::<span class="name">selectRow</span> ( <span class="type">int</span> <i>row</i> )<tt> [slot]</tt></h3>
<p>Selects the given <i>row</i> in the table view if the current <a href="qabstractitemview.html#SelectionMode-enum">SelectionMode</a> and <a href="qabstractitemview.html#SelectionBehavior-enum">SelectionBehavior</a> allows rows to be selected.</p>
<p><b>See also </b><a href="qtableview.html#selectColumn">selectColumn</a>().</p>
<!-- @@@selectRow -->
<!-- $$$selectedIndexes[overload1]$$$selectedIndexes -->
<h3 class="fn"><a name="selectedIndexes"></a><span class="type"><a href="qmodelindex.html#QModelIndexList-typedef">QModelIndexList</a></span> QTableView::<span class="name">selectedIndexes</span> () const<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#selectedIndexes">QAbstractItemView::selectedIndexes</a>().</p>
<!-- @@@selectedIndexes -->
<!-- $$$selectionChanged[overload1]$$$selectionChangedconstQItemSelection&constQItemSelection& -->
<h3 class="fn"><a name="selectionChanged"></a><span class="type">void</span> QTableView::<span class="name">selectionChanged</span> ( const <span class="type"><a href="qitemselection.html">QItemSelection</a></span> &amp; <i>selected</i>, const <span class="type"><a href="qitemselection.html">QItemSelection</a></span> &amp; <i>deselected</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#selectionChanged">QAbstractItemView::selectionChanged</a>().</p>
<!-- @@@selectionChanged -->
<!-- $$$setColumnHidden[overload1]$$$setColumnHiddenintbool -->
<h3 class="fn"><a name="setColumnHidden"></a><span class="type">void</span> QTableView::<span class="name">setColumnHidden</span> ( <span class="type">int</span> <i>column</i>, <span class="type">bool</span> <i>hide</i> )</h3>
<p>If <i>hide</i> is true the given <i>column</i> will be hidden; otherwise it will be shown.</p>
<p><b>See also </b><a href="qtableview.html#isColumnHidden">isColumnHidden</a>() and <a href="qtableview.html#setRowHidden">setRowHidden</a>().</p>
<!-- @@@setColumnHidden -->
<!-- $$$setColumnWidth[overload1]$$$setColumnWidthintint -->
<h3 class="fn"><a name="setColumnWidth"></a><span class="type">void</span> QTableView::<span class="name">setColumnWidth</span> ( <span class="type">int</span> <i>column</i>, <span class="type">int</span> <i>width</i> )</h3>
<p>Sets the width of the given <i>column</i> to be <i>width</i>.</p>
<p>This function was introduced in Qt 4.1.</p>
<p><b>See also </b><a href="qtableview.html#columnWidth">columnWidth</a>().</p>
<!-- @@@setColumnWidth -->
<!-- $$$setHorizontalHeader[overload1]$$$setHorizontalHeaderQHeaderView* -->
<h3 class="fn"><a name="setHorizontalHeader"></a><span class="type">void</span> QTableView::<span class="name">setHorizontalHeader</span> ( <span class="type"><a href="qheaderview.html">QHeaderView</a></span> * <i>header</i> )</h3>
<p>Sets the widget to use for the horizontal header to <i>header</i>.</p>
<p><b>See also </b><a href="qtableview.html#horizontalHeader">horizontalHeader</a>() and <a href="qtableview.html#setVerticalHeader">setVerticalHeader</a>().</p>
<!-- @@@setHorizontalHeader -->
<!-- $$$setModel[overload1]$$$setModelQAbstractItemModel* -->
<h3 class="fn"><a name="setModel"></a><span class="type">void</span> QTableView::<span class="name">setModel</span> ( <span class="type"><a href="qabstractitemmodel.html">QAbstractItemModel</a></span> * <i>model</i> )<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#setModel">QAbstractItemView::setModel</a>().</p>
<!-- @@@setModel -->
<!-- $$$setRootIndex[overload1]$$$setRootIndexconstQModelIndex& -->
<h3 class="fn"><a name="setRootIndex"></a><span class="type">void</span> QTableView::<span class="name">setRootIndex</span> ( const <span class="type"><a href="qmodelindex.html">QModelIndex</a></span> &amp; <i>index</i> )<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#setRootIndex">QAbstractItemView::setRootIndex</a>().</p>
<!-- @@@setRootIndex -->
<!-- $$$setRowHeight[overload1]$$$setRowHeightintint -->
<h3 class="fn"><a name="setRowHeight"></a><span class="type">void</span> QTableView::<span class="name">setRowHeight</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>height</i> )</h3>
<p>Sets the height of the given <i>row</i> to be <i>height</i>.</p>
<p>This function was introduced in Qt 4.1.</p>
<p><b>See also </b><a href="qtableview.html#rowHeight">rowHeight</a>().</p>
<!-- @@@setRowHeight -->
<!-- $$$setRowHidden[overload1]$$$setRowHiddenintbool -->
<h3 class="fn"><a name="setRowHidden"></a><span class="type">void</span> QTableView::<span class="name">setRowHidden</span> ( <span class="type">int</span> <i>row</i>, <span class="type">bool</span> <i>hide</i> )</h3>
<p>If <i>hide</i> is true <i>row</i> will be hidden, otherwise it will be shown.</p>
<p><b>See also </b><a href="qtableview.html#isRowHidden">isRowHidden</a>() and <a href="qtableview.html#setColumnHidden">setColumnHidden</a>().</p>
<!-- @@@setRowHidden -->
<!-- $$$setSelection[overload1]$$$setSelectionconstQRect&QItemSelectionModel::SelectionFlags -->
<h3 class="fn"><a name="setSelection"></a><span class="type">void</span> QTableView::<span class="name">setSelection</span> ( const <span class="type"><a href="qrect.html">QRect</a></span> &amp; <i>rect</i>, <span class="type"><a href="qitemselectionmodel.html#SelectionFlag-enum">QItemSelectionModel::SelectionFlags</a></span> <i>flags</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#setSelection">QAbstractItemView::setSelection</a>().</p>
<p>Selects the items within the given <i>rect</i> and in accordance with the specified selection <i>flags</i>.</p>
<!-- @@@setSelection -->
<!-- $$$setSelectionModel[overload1]$$$setSelectionModelQItemSelectionModel* -->
<h3 class="fn"><a name="setSelectionModel"></a><span class="type">void</span> QTableView::<span class="name">setSelectionModel</span> ( <span class="type"><a href="qitemselectionmodel.html">QItemSelectionModel</a></span> * <i>selectionModel</i> )<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#setSelectionModel">QAbstractItemView::setSelectionModel</a>().</p>
<!-- @@@setSelectionModel -->
<!-- $$$setSpan[overload1]$$$setSpanintintintint -->
<h3 class="fn"><a name="setSpan"></a><span class="type">void</span> QTableView::<span class="name">setSpan</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>column</i>, <span class="type">int</span> <i>rowSpanCount</i>, <span class="type">int</span> <i>columnSpanCount</i> )</h3>
<p>Sets the span of the table element at (<i>row</i>, <i>column</i>) to the number of rows and columns specified by (<i>rowSpanCount</i>, <i>columnSpanCount</i>).</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also </b><a href="qtableview.html#rowSpan">rowSpan</a>() and <a href="qtableview.html#columnSpan">columnSpan</a>().</p>
<!-- @@@setSpan -->
<!-- $$$setVerticalHeader[overload1]$$$setVerticalHeaderQHeaderView* -->
<h3 class="fn"><a name="setVerticalHeader"></a><span class="type">void</span> QTableView::<span class="name">setVerticalHeader</span> ( <span class="type"><a href="qheaderview.html">QHeaderView</a></span> * <i>header</i> )</h3>
<p>Sets the widget to use for the vertical header to <i>header</i>.</p>
<p><b>See also </b><a href="qtableview.html#verticalHeader">verticalHeader</a>() and <a href="qtableview.html#setHorizontalHeader">setHorizontalHeader</a>().</p>
<!-- @@@setVerticalHeader -->
<!-- $$$showColumn[overload1]$$$showColumnint -->
<h3 class="fn"><a name="showColumn"></a><span class="type">void</span> QTableView::<span class="name">showColumn</span> ( <span class="type">int</span> <i>column</i> )<tt> [slot]</tt></h3>
<p>Show the given <i>column</i>.</p>
<p><b>See also </b><a href="qtableview.html#hideColumn">hideColumn</a>() and <a href="qtableview.html#showRow">showRow</a>().</p>
<!-- @@@showColumn -->
<!-- $$$showRow[overload1]$$$showRowint -->
<h3 class="fn"><a name="showRow"></a><span class="type">void</span> QTableView::<span class="name">showRow</span> ( <span class="type">int</span> <i>row</i> )<tt> [slot]</tt></h3>
<p>Show the given <i>row</i>.</p>
<p><b>See also </b><a href="qtableview.html#hideRow">hideRow</a>() and <a href="qtableview.html#showColumn">showColumn</a>().</p>
<!-- @@@showRow -->
<!-- $$$sizeHintForColumn[overload1]$$$sizeHintForColumnint -->
<h3 class="fn"><a name="sizeHintForColumn"></a><span class="type">int</span> QTableView::<span class="name">sizeHintForColumn</span> ( <span class="type">int</span> <i>column</i> ) const<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#sizeHintForColumn">QAbstractItemView::sizeHintForColumn</a>().</p>
<p>Returns the size hint for the given <i>column</i>'s width or -1 if there is no model.</p>
<p>If you need to set the width of a given column to a fixed value, call <a href="qheaderview.html#resizeSection">QHeaderView::resizeSection</a>() on the table's horizontal header.</p>
<p>If you reimplement this function in a subclass, note that the value you return will be used when <a href="qtableview.html#resizeColumnToContents">resizeColumnToContents</a>() or <a href="qheaderview.html#resizeSections">QHeaderView::resizeSections</a>() is called. If a larger column width is required by either the horizontal header or the item delegate, the larger width will be used instead.</p>
<p><b>See also </b><a href="qwidget.html#sizeHint-prop">QWidget::sizeHint</a> and <a href="qtableview.html#horizontalHeader">horizontalHeader</a>().</p>
<!-- @@@sizeHintForColumn -->
<!-- $$$sizeHintForRow[overload1]$$$sizeHintForRowint -->
<h3 class="fn"><a name="sizeHintForRow"></a><span class="type">int</span> QTableView::<span class="name">sizeHintForRow</span> ( <span class="type">int</span> <i>row</i> ) const<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#sizeHintForRow">QAbstractItemView::sizeHintForRow</a>().</p>
<p>Returns the size hint for the given <i>row</i>'s height or -1 if there is no model.</p>
<p>If you need to set the height of a given row to a fixed value, call <a href="qheaderview.html#resizeSection">QHeaderView::resizeSection</a>() on the table's vertical header.</p>
<p>If you reimplement this function in a subclass, note that the value you return is only used when <a href="qtableview.html#resizeRowToContents">resizeRowToContents</a>() is called. In that case, if a larger row height is required by either the vertical header or the item delegate, that width will be used instead.</p>
<p><b>See also </b><a href="qwidget.html#sizeHint-prop">QWidget::sizeHint</a> and <a href="qtableview.html#verticalHeader">verticalHeader</a>().</p>
<!-- @@@sizeHintForRow -->
<!-- $$$sortByColumn[overload1]$$$sortByColumnintQt::SortOrder -->
<h3 class="fn"><a name="sortByColumn"></a><span class="type">void</span> QTableView::<span class="name">sortByColumn</span> ( <span class="type">int</span> <i>column</i>, <span class="type"><a href="qt.html#SortOrder-enum">Qt::SortOrder</a></span> <i>order</i> )</h3>
<p>Sorts the model by the values in the given <i>column</i> in the given <i>order</i>.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also </b><a href="qtableview.html#sortingEnabled-prop">sortingEnabled</a>.</p>
<!-- @@@sortByColumn -->
<!-- $$$timerEvent[overload1]$$$timerEventQTimerEvent* -->
<h3 class="fn"><a name="timerEvent"></a><span class="type">void</span> QTableView::<span class="name">timerEvent</span> ( <span class="type"><a href="qtimerevent.html">QTimerEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qobject.html#timerEvent">QObject::timerEvent</a>().</p>
<!-- @@@timerEvent -->
<!-- $$$updateGeometries[overload1]$$$updateGeometries -->
<h3 class="fn"><a name="updateGeometries"></a><span class="type">void</span> QTableView::<span class="name">updateGeometries</span> ()<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#updateGeometries">QAbstractItemView::updateGeometries</a>().</p>
<!-- @@@updateGeometries -->
<!-- $$$verticalHeader[overload1]$$$verticalHeader -->
<h3 class="fn"><a name="verticalHeader"></a><span class="type"><a href="qheaderview.html">QHeaderView</a></span> * QTableView::<span class="name">verticalHeader</span> () const</h3>
<p>Returns the table view's vertical header.</p>
<p><b>See also </b><a href="qtableview.html#setVerticalHeader">setVerticalHeader</a>(), <a href="qtableview.html#horizontalHeader">horizontalHeader</a>(), and <a href="qabstractitemmodel.html#headerData">QAbstractItemModel::headerData</a>().</p>
<!-- @@@verticalHeader -->
<!-- $$$verticalOffset[overload1]$$$verticalOffset -->
<h3 class="fn"><a name="verticalOffset"></a><span class="type">int</span> QTableView::<span class="name">verticalOffset</span> () const<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#verticalOffset">QAbstractItemView::verticalOffset</a>().</p>
<p>Returns the vertical offset of the items in the table view.</p>
<p>Note that the table view uses the vertical header section positions to determine the positions of rows in the view.</p>
<p><b>See also </b><a href="qtableview.html#horizontalOffset">horizontalOffset</a>().</p>
<!-- @@@verticalOffset -->
<!-- $$$viewOptions[overload1]$$$viewOptions -->
<h3 class="fn"><a name="viewOptions"></a><span class="type"><a href="qstyleoptionviewitem.html">QStyleOptionViewItem</a></span> QTableView::<span class="name">viewOptions</span> () const<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#viewOptions">QAbstractItemView::viewOptions</a>().</p>
<!-- @@@viewOptions -->
</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>