Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > b796bb6846bef0871594624de2c980c0 > files > 4135

qtbase5-doc-5.12.6-4.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qtableview.cpp -->
  <title>QTableView Class | Qt Widgets 5.12.6</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.12</td><td ><a href="qtwidgets-index.html">Qt Widgets</a></td><td ><a href="qtwidgets-module.html">C++ Classes</a></td><td >QTableView</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtwidgets-index.html">Qt 5.12.6 Reference Documentation</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<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="#reimplemented-public-functions">Reimplemented Public Functions</a></li>
<li class="level1"><a href="#public-slots">Public Slots</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</a></li>
<li class="level1"><a href="#reimplemented-protected-functions">Reimplemented 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>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QTableView Class</h1>
<!-- $$$QTableView-brief -->
<p>The <a href="qtableview.html">QTableView</a> class provides a default model/view implementation of a table view. <a href="#details">More...</a></p>
<!-- @@@QTableView -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QTableView&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += widgets</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qabstractitemview.html">QAbstractItemView</a></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="qtablewidget.html">QTableWidget</a></p>
</td></tr></table></div><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 id="properties">Properties</h2>
<div class="table"><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></div>
<ul>
<li class="fn">16 properties inherited from <a href="qabstractitemview.html#properties">QAbstractItemView</a></li>
<li class="fn">3 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">59 properties inherited from <a href="qwidget.html#properties">QWidget</a></li>
<li class="fn">1 property inherited from <a href="../qtcore/qobject.html#properties">QObject</a></li>
</ul>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><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> = nullptr)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </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#setSortingEnabled">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></div>
<a name="reimplemented-public-functions"></a>
<h2 id="reimplemented-public-functions">Reimplemented Public Functions</h2>
<div class="table"><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 override</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>) override</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>) override</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>) override</td></tr>
</table></div>
<ul>
<li class="fn">60 public functions inherited from <a href="qabstractitemview.html#public-functions">QAbstractItemView</a></li>
<li class="fn">20 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">214 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
<li class="fn">31 public functions inherited from <a href="../qtcore/qobject.html#public-functions">QObject</a></li>
<li class="fn">14 public functions inherited from <a href="../qtgui/qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<a name="public-slots"></a>
<h2 id="public-slots">Public Slots</h2>
<div class="table"><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></div>
<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="../qtcore/qobject.html#public-slots">QObject</a></li>
</ul>
<a name="static-public-members"></a>
<h2 id="static-public-members">Static Public Members</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> const QMetaObject </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#staticMetaObject-var">staticMetaObject</a></b></td></tr>
</table></div>
<ul>
<li class="fn">5 static public members inherited from <a href="qwidget.html#static-public-members">QWidget</a></li>
<li class="fn">9 static public members inherited from <a href="../qtcore/qobject.html#static-public-members">QObject</a></li>
</ul>
<a name="reimplemented-protected-functions"></a>
<h2 id="reimplemented-protected-functions">Reimplemented Protected Functions</h2>
<div class="table"><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>) override</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 override</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 override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QModelIndex </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#moveCursor">moveCursor</a></b>(QAbstractItemView::CursorAction <i>cursorAction</i>, Qt::KeyboardModifiers <i>modifiers</i>) override</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>) override</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 override</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>) override</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>) override</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 override</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 override</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>) override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#updateGeometries">updateGeometries</a></b>() override</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 override</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 override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSize </td><td class="memItemRight bottomAlign"><b><a href="qtableview.html#viewportSizeHint">viewportSizeHint</a></b>() const override</td></tr>
</table></div>
<ul>
<li class="fn">38 protected functions inherited from <a href="qabstractitemview.html#protected-functions">QAbstractItemView</a></li>
<li class="fn">20 protected functions inherited from <a href="qabstractscrollarea.html#protected-functions">QAbstractScrollArea</a></li>
<li class="fn">4 protected functions inherited from <a href="qframe.html#protected-functions">QFrame</a></li>
<li class="fn">35 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
<li class="fn">9 protected functions inherited from <a href="../qtcore/qobject.html#protected-functions">QObject</a></li>
<li class="fn">1 protected function inherited from <a href="../qtgui/qpaintdevice.html#protected-functions">QPaintDevice</a></li>
</ul>
<a name="protected-slots"></a>
<h2 id="protected-slots">Protected Slots</h2>
<div class="table"><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></div>
<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="qwidget.html#protected-slots">QWidget</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">7 signals inherited from <a href="qabstractitemview.html#signals">QAbstractItemView</a></li>
<li class="fn">3 signals inherited from <a href="qwidget.html#signals">QWidget</a></li>
<li class="fn">2 signals inherited from <a href="../qtcore/qobject.html#signals">QObject</a></li>
<li class="fn">38 protected functions inherited from <a href="qabstractitemview.html#protected-functions">QAbstractItemView</a></li>
<li class="fn">20 protected functions inherited from <a href="qabstractscrollarea.html#protected-functions">QAbstractScrollArea</a></li>
<li class="fn">4 protected functions inherited from <a href="qframe.html#protected-functions">QFrame</a></li>
<li class="fn">35 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
<li class="fn">9 protected functions inherited from <a href="../qtcore/qobject.html#protected-functions">QObject</a></li>
<li class="fn">1 protected function inherited from <a href="../qtgui/qpaintdevice.html#protected-functions">QPaintDevice</a></li>
</ul>
<a name="details"></a>
<!-- $$$QTableView-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qtableview.html">QTableView</a> class provides a default model/view implementation of a table view.</p>
<p class="centerAlign"><img src="images/windows-tableview.png" alt="" /></p><p>A <a href="qtableview.html">QTableView</a> implements a table view that displays items from a model. This class is used to provide standard tables that were previously provided by the QTable class, but using the more flexible approach provided by Qt's model/view architecture.</p>
<p>The <a href="qtableview.html">QTableView</a> class is one of the <a href="model-view-programming.html#model-view-classes">Model/View Classes</a> and is part of Qt's <a href="model-view-programming.html">model/view framework</a>.</p>
<p><a href="qtableview.html">QTableView</a> 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="../qtcore/qabstractitemmodel.html">QAbstractItemModel</a> class.</p>
<a name="navigation"></a>
<h3 id="navigation">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 <a href="qtableview.html">QTableView</a> 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 id="visual-appearance">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>
<div class="table"><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></div>
<a name="coordinate-systems"></a>
<h3 id="coordinate-systems">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>
</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="../qtcore/qabstractitemmodel.html">QAbstractItemModel</a>, <a href="qabstractitemview.html">QAbstractItemView</a>, <a href="qtwidgets-itemviews-chart-example.html">Chart Example</a>, <a href="qtwidgets-itemviews-pixelator-example.html">Pixelator Example</a>, and <a href="../qtsql/qtsql-tablemodel-example.html">Table Model Example</a>.</p>
<!-- @@@QTableView -->
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$cornerButtonEnabled-prop$$$isCornerButtonEnabled$$$setCornerButtonEnabledbool -->
<h3 class="fn" id="cornerButtonEnabled-prop"><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 <code>true</code> 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 <code>true</code> by default.</p>
<p>This property was introduced in  Qt 4.3.</p>
<p><b>Access functions:</b></p>
<div class="table"><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></div>
<!-- @@@cornerButtonEnabled -->
<!-- $$$gridStyle-prop$$$gridStyle$$$setGridStyleQt::PenStyle -->
<h3 class="fn" id="gridStyle-prop"><a name="gridStyle-prop"></a><span class="name">gridStyle</span> : <span class="type"><a href="../qtcore/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>
<div class="table"><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></div>
<!-- @@@gridStyle -->
<!-- $$$showGrid-prop$$$showGrid$$$setShowGridbool -->
<h3 class="fn" id="showGrid-prop"><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 <code>true</code> a grid is drawn for the table; if the property is <code>false</code>, no grid is drawn. The default value is true.</p>
<p><b>Access functions:</b></p>
<div class="table"><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></div>
<!-- @@@showGrid -->
<!-- $$$sortingEnabled-prop$$$isSortingEnabled$$$setSortingEnabledbool -->
<h3 class="fn" id="sortingEnabled-prop"><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 <code>true</code>, sorting is enabled for the table. If this property is <code>false</code>, sorting is not enabled. The default value is false.</p>
<p><b>Note: </b>. Setting the property to true with <a href="qtableview.html#setSortingEnabled">setSortingEnabled</a>() 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>
<div class="table"><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><a href="qtableview.html#setSortingEnabled">setSortingEnabled</a></b></span>(bool <i>enable</i>)</td></tr>
</table></div>
<p><b>See also </b><a href="qtableview.html#sortByColumn">sortByColumn</a>().</p>
<!-- @@@sortingEnabled -->
<!-- $$$wordWrap-prop$$$wordWrap$$$setWordWrapbool -->
<h3 class="fn" id="wordWrap-prop"><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 <code>true</code> then the item text is wrapped where necessary at word-breaks; otherwise it is not wrapped at all. This property is <code>true</code> 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>
<div class="table"><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></div>
<!-- @@@wordWrap -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QTableView[overload1]$$$QTableViewQWidget* -->
<h3 class="fn" id="QTableView"><a name="QTableView"></a>QTableView::<span class="name">QTableView</span>(<span class="type"><a href="qwidget.html#QWidget">QWidget</a></span> *<i>parent</i> = nullptr)</h3>
<p>Constructs a table view with a <i>parent</i> to represent the data.</p>
<p><b>See also </b><a href="../qtcore/qabstractitemmodel.html">QAbstractItemModel</a>.</p>
<!-- @@@QTableView -->
<!-- $$$~QTableView[overload1]$$$~QTableView -->
<h3 class="fn" id="dtor.QTableView"><a name="dtor.QTableView"></a><code>[virtual] </code>QTableView::<span class="name">~QTableView</span>()</h3>
<p>Destroys the table view.</p>
<!-- @@@~QTableView -->
<!-- $$$clearSpans[overload1]$$$clearSpans -->
<h3 class="fn" id="clearSpans"><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" id="columnAt"><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" id="columnCountChanged"><a name="columnCountChanged"></a><code>[protected slot] </code><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>)</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" id="columnMoved"><a name="columnMoved"></a><code>[protected slot] </code><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>)</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" id="columnResized"><a name="columnResized"></a><code>[protected slot] </code><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>)</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" id="columnSpan"><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" id="columnViewportPosition"><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" id="columnWidth"><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" id="currentChanged"><a name="currentChanged"></a><code>[override virtual protected] </code><span class="type">void</span> QTableView::<span class="name">currentChanged</span>(const <span class="type"><a href="../qtcore/qmodelindex.html">QModelIndex</a></span> &amp;<i>current</i>, const <span class="type"><a href="../qtcore/qmodelindex.html">QModelIndex</a></span> &amp;<i>previous</i>)</h3>
<p>Reimplemented from <a href="qabstractitemview.html#currentChanged">QAbstractItemView::currentChanged</a>().</p>
<!-- @@@currentChanged -->
<!-- $$$hideColumn[overload1]$$$hideColumnint -->
<h3 class="fn" id="hideColumn"><a name="hideColumn"></a><code>[slot] </code><span class="type">void</span> QTableView::<span class="name">hideColumn</span>(<span class="type">int</span> <i>column</i>)</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" id="hideRow"><a name="hideRow"></a><code>[slot] </code><span class="type">void</span> QTableView::<span class="name">hideRow</span>(<span class="type">int</span> <i>row</i>)</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" id="horizontalHeader"><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="../qtcore/qabstractitemmodel.html#headerData">QAbstractItemModel::headerData</a>().</p>
<!-- @@@horizontalHeader -->
<!-- $$$horizontalOffset[overload1]$$$horizontalOffset -->
<h3 class="fn" id="horizontalOffset"><a name="horizontalOffset"></a><code>[override virtual protected] </code><span class="type">int</span> QTableView::<span class="name">horizontalOffset</span>() const</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" id="indexAt"><a name="indexAt"></a><code>[override virtual] </code><span class="type"><a href="../qtcore/qmodelindex.html">QModelIndex</a></span> QTableView::<span class="name">indexAt</span>(const <span class="type"><a href="../qtcore/qpoint.html">QPoint</a></span> &amp;<i>pos</i>) const</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" id="isColumnHidden"><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 <code>true</code> if the given <i>column</i> is hidden; otherwise returns <code>false</code>.</p>
<p><b>See also </b><a href="qtableview.html#isRowHidden">isRowHidden</a>().</p>
<!-- @@@isColumnHidden -->
<!-- $$$isIndexHidden[overload1]$$$isIndexHiddenconstQModelIndex& -->
<h3 class="fn" id="isIndexHidden"><a name="isIndexHidden"></a><code>[override virtual protected] </code><span class="type">bool</span> QTableView::<span class="name">isIndexHidden</span>(const <span class="type"><a href="../qtcore/qmodelindex.html">QModelIndex</a></span> &amp;<i>index</i>) const</h3>
<p>Reimplemented from <a href="qabstractitemview.html#isIndexHidden">QAbstractItemView::isIndexHidden</a>().</p>
<!-- @@@isIndexHidden -->
<!-- $$$isRowHidden[overload1]$$$isRowHiddenint -->
<h3 class="fn" id="isRowHidden"><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 <code>true</code> if the given <i>row</i> is hidden; otherwise returns <code>false</code>.</p>
<p><b>See also </b><a href="qtableview.html#isColumnHidden">isColumnHidden</a>().</p>
<!-- @@@isRowHidden -->
<!-- $$$moveCursor[overload1]$$$moveCursorQAbstractItemView::CursorActionQt::KeyboardModifiers -->
<h3 class="fn" id="moveCursor"><a name="moveCursor"></a><code>[override virtual protected] </code><span class="type"><a href="../qtcore/qmodelindex.html">QModelIndex</a></span> QTableView::<span class="name">moveCursor</span>(<span class="type"><a href="qabstractitemview.html#CursorAction-enum">QAbstractItemView::CursorAction</a></span> <i>cursorAction</i>, <span class="type"><a href="../qtcore/qt.html#KeyboardModifier-enum">Qt::KeyboardModifiers</a></span> <i>modifiers</i>)</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" id="paintEvent"><a name="paintEvent"></a><code>[override virtual protected] </code><span class="type">void</span> QTableView::<span class="name">paintEvent</span>(<span class="type"><a href="../qtgui/qpaintevent.html">QPaintEvent</a></span> *<i>event</i>)</h3>
<p>Reimplemented from <a href="qabstractscrollarea.html#paintEvent">QAbstractScrollArea::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" id="resizeColumnToContents"><a name="resizeColumnToContents"></a><code>[slot] </code><span class="type">void</span> QTableView::<span class="name">resizeColumnToContents</span>(<span class="type">int</span> <i>column</i>)</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><p><b>See also </b><a href="qtableview.html#resizeColumnsToContents">resizeColumnsToContents</a>(), <a href="qtableview.html#sizeHintForColumn">sizeHintForColumn</a>(), and <a href="qheaderview.html#resizeContentsPrecision">QHeaderView::resizeContentsPrecision</a>().</p>
<!-- @@@resizeColumnToContents -->
<!-- $$$resizeColumnsToContents[overload1]$$$resizeColumnsToContents -->
<h3 class="fn" id="resizeColumnsToContents"><a name="resizeColumnsToContents"></a><code>[slot] </code><span class="type">void</span> QTableView::<span class="name">resizeColumnsToContents</span>()</h3>
<p>Resizes all columns based on the size hints of the delegate used to render each item in the columns.</p>
<p><b>See also </b><a href="qtableview.html#resizeColumnToContents">resizeColumnToContents</a>(), <a href="qtableview.html#sizeHintForColumn">sizeHintForColumn</a>(), and <a href="qheaderview.html#resizeContentsPrecision">QHeaderView::resizeContentsPrecision</a>().</p>
<!-- @@@resizeColumnsToContents -->
<!-- $$$resizeRowToContents[overload1]$$$resizeRowToContentsint -->
<h3 class="fn" id="resizeRowToContents"><a name="resizeRowToContents"></a><code>[slot] </code><span class="type">void</span> QTableView::<span class="name">resizeRowToContents</span>(<span class="type">int</span> <i>row</i>)</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>
<p><b>See also </b><a href="qtableview.html#resizeRowsToContents">resizeRowsToContents</a>(), <a href="qtableview.html#sizeHintForRow">sizeHintForRow</a>(), and <a href="qheaderview.html#resizeContentsPrecision">QHeaderView::resizeContentsPrecision</a>().</p>
<!-- @@@resizeRowToContents -->
<!-- $$$resizeRowsToContents[overload1]$$$resizeRowsToContents -->
<h3 class="fn" id="resizeRowsToContents"><a name="resizeRowsToContents"></a><code>[slot] </code><span class="type">void</span> QTableView::<span class="name">resizeRowsToContents</span>()</h3>
<p>Resizes all rows based on the size hints of the delegate used to render each item in the rows.</p>
<p><b>See also </b><a href="qtableview.html#resizeRowToContents">resizeRowToContents</a>(), <a href="qtableview.html#sizeHintForRow">sizeHintForRow</a>(), and <a href="qheaderview.html#resizeContentsPrecision">QHeaderView::resizeContentsPrecision</a>().</p>
<!-- @@@resizeRowsToContents -->
<!-- $$$rowAt[overload1]$$$rowAtint -->
<h3 class="fn" id="rowAt"><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" id="rowCountChanged"><a name="rowCountChanged"></a><code>[protected slot] </code><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>)</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" id="rowHeight"><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" id="rowMoved"><a name="rowMoved"></a><code>[protected slot] </code><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>)</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" id="rowResized"><a name="rowResized"></a><code>[protected slot] </code><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>)</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" id="rowSpan"><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" id="rowViewportPosition"><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" id="selectColumn"><a name="selectColumn"></a><code>[slot] </code><span class="type">void</span> QTableView::<span class="name">selectColumn</span>(<span class="type">int</span> <i>column</i>)</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" id="selectRow"><a name="selectRow"></a><code>[slot] </code><span class="type">void</span> QTableView::<span class="name">selectRow</span>(<span class="type">int</span> <i>row</i>)</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" id="selectedIndexes"><a name="selectedIndexes"></a><code>[override virtual protected] </code><span class="type"><a href="../qtcore/qmodelindex.html#QModelIndexList-typedef">QModelIndexList</a></span> QTableView::<span class="name">selectedIndexes</span>() const</h3>
<p>Reimplemented from <a href="qabstractitemview.html#selectedIndexes">QAbstractItemView::selectedIndexes</a>().</p>
<!-- @@@selectedIndexes -->
<!-- $$$selectionChanged[overload1]$$$selectionChangedconstQItemSelection&constQItemSelection& -->
<h3 class="fn" id="selectionChanged"><a name="selectionChanged"></a><code>[override virtual protected] </code><span class="type">void</span> QTableView::<span class="name">selectionChanged</span>(const <span class="type"><a href="../qtcore/qitemselection.html">QItemSelection</a></span> &amp;<i>selected</i>, const <span class="type"><a href="../qtcore/qitemselection.html">QItemSelection</a></span> &amp;<i>deselected</i>)</h3>
<p>Reimplemented from <a href="qabstractitemview.html#selectionChanged">QAbstractItemView::selectionChanged</a>().</p>
<!-- @@@selectionChanged -->
<!-- $$$setColumnHidden[overload1]$$$setColumnHiddenintbool -->
<h3 class="fn" id="setColumnHidden"><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" id="setColumnWidth"><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" id="setHorizontalHeader"><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" id="setModel"><a name="setModel"></a><code>[override virtual] </code><span class="type">void</span> QTableView::<span class="name">setModel</span>(<span class="type"><a href="../qtcore/qabstractitemmodel.html">QAbstractItemModel</a></span> *<i>model</i>)</h3>
<p>Reimplemented from <a href="qabstractitemview.html#setModel">QAbstractItemView::setModel</a>().</p>
<!-- @@@setModel -->
<!-- $$$setRootIndex[overload1]$$$setRootIndexconstQModelIndex& -->
<h3 class="fn" id="setRootIndex"><a name="setRootIndex"></a><code>[override virtual] </code><span class="type">void</span> QTableView::<span class="name">setRootIndex</span>(const <span class="type"><a href="../qtcore/qmodelindex.html">QModelIndex</a></span> &amp;<i>index</i>)</h3>
<p>Reimplemented from <a href="qabstractitemview.html#setRootIndex">QAbstractItemView::setRootIndex</a>().</p>
<!-- @@@setRootIndex -->
<!-- $$$setRowHeight[overload1]$$$setRowHeightintint -->
<h3 class="fn" id="setRowHeight"><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" id="setRowHidden"><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" id="setSelection"><a name="setSelection"></a><code>[override virtual protected] </code><span class="type">void</span> QTableView::<span class="name">setSelection</span>(const <span class="type"><a href="../qtcore/qrect.html">QRect</a></span> &amp;<i>rect</i>, <span class="type"><a href="../qtcore/qitemselectionmodel.html#SelectionFlag-enum">QItemSelectionModel::SelectionFlags</a></span> <i>flags</i>)</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" id="setSelectionModel"><a name="setSelectionModel"></a><code>[override virtual] </code><span class="type">void</span> QTableView::<span class="name">setSelectionModel</span>(<span class="type"><a href="../qtcore/qitemselectionmodel.html">QItemSelectionModel</a></span> *<i>selectionModel</i>)</h3>
<p>Reimplemented from <a href="qabstractitemview.html#setSelectionModel">QAbstractItemView::setSelectionModel</a>().</p>
<!-- @@@setSelectionModel -->
<!-- $$$setSortingEnabled -->
<h3 class="fn" id="setSortingEnabled"><a name="setSortingEnabled"></a><span class="type">void</span> QTableView::<span class="name">setSortingEnabled</span>(<span class="type">bool</span> <i>enable</i>)</h3>
<p>If <i>enable</i> is true, enables sorting for the table and immediately trigger a call to <a href="qtableview.html#sortByColumn">sortByColumn</a>() with the current sort section and order</p>
<p><b>Note:</b> Setter function for property <a href="qtableview.html#sortingEnabled-prop">sortingEnabled</a>. </p><p><b>See also </b><a href="qtableview.html#sortingEnabled-prop">isSortingEnabled</a>().</p>
<!-- @@@setSortingEnabled -->
<!-- $$$setSpan[overload1]$$$setSpanintintintint -->
<h3 class="fn" id="setSpan"><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" id="setVerticalHeader"><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" id="showColumn"><a name="showColumn"></a><code>[slot] </code><span class="type">void</span> QTableView::<span class="name">showColumn</span>(<span class="type">int</span> <i>column</i>)</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" id="showRow"><a name="showRow"></a><code>[slot] </code><span class="type">void</span> QTableView::<span class="name">showRow</span>(<span class="type">int</span> <i>row</i>)</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" id="sizeHintForColumn"><a name="sizeHintForColumn"></a><code>[override virtual protected] </code><span class="type">int</span> QTableView::<span class="name">sizeHintForColumn</span>(<span class="type">int</span> <i>column</i>) const</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-1">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>, <a href="qtableview.html#horizontalHeader">horizontalHeader</a>(), and <a href="qheaderview.html#resizeContentsPrecision">QHeaderView::resizeContentsPrecision</a>().</p>
<!-- @@@sizeHintForColumn -->
<!-- $$$sizeHintForRow[overload1]$$$sizeHintForRowint -->
<h3 class="fn" id="sizeHintForRow"><a name="sizeHintForRow"></a><code>[override virtual protected] </code><span class="type">int</span> QTableView::<span class="name">sizeHintForRow</span>(<span class="type">int</span> <i>row</i>) const</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>, <a href="qtableview.html#verticalHeader">verticalHeader</a>(), and <a href="qheaderview.html#resizeContentsPrecision">QHeaderView::resizeContentsPrecision</a>().</p>
<!-- @@@sizeHintForRow -->
<!-- $$$sortByColumn[overload1]$$$sortByColumnintQt::SortOrder -->
<h3 class="fn" id="sortByColumn"><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="../qtcore/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" id="timerEvent"><a name="timerEvent"></a><code>[override virtual protected] </code><span class="type">void</span> QTableView::<span class="name">timerEvent</span>(<span class="type"><a href="../qtcore/qtimerevent.html">QTimerEvent</a></span> *<i>event</i>)</h3>
<p>Reimplemented from <a href="qabstractitemview.html#timerEvent">QAbstractItemView::timerEvent</a>().</p>
<!-- @@@timerEvent -->
<!-- $$$updateGeometries[overload1]$$$updateGeometries -->
<h3 class="fn" id="updateGeometries"><a name="updateGeometries"></a><code>[override virtual protected] </code><span class="type">void</span> QTableView::<span class="name">updateGeometries</span>()</h3>
<p>Reimplemented from <a href="qabstractitemview.html#updateGeometries">QAbstractItemView::updateGeometries</a>().</p>
<!-- @@@updateGeometries -->
<!-- $$$verticalHeader[overload1]$$$verticalHeader -->
<h3 class="fn" id="verticalHeader"><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="../qtcore/qabstractitemmodel.html#headerData">QAbstractItemModel::headerData</a>().</p>
<!-- @@@verticalHeader -->
<!-- $$$verticalOffset[overload1]$$$verticalOffset -->
<h3 class="fn" id="verticalOffset"><a name="verticalOffset"></a><code>[override virtual protected] </code><span class="type">int</span> QTableView::<span class="name">verticalOffset</span>() const</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" id="viewOptions"><a name="viewOptions"></a><code>[override virtual protected] </code><span class="type"><a href="qstyleoptionviewitem.html">QStyleOptionViewItem</a></span> QTableView::<span class="name">viewOptions</span>() const</h3>
<p>Reimplemented from <a href="qabstractitemview.html#viewOptions">QAbstractItemView::viewOptions</a>().</p>
<!-- @@@viewOptions -->
<!-- $$$viewportSizeHint[overload1]$$$viewportSizeHint -->
<h3 class="fn" id="viewportSizeHint"><a name="viewportSizeHint"></a><code>[override virtual protected] </code><span class="type"><a href="../qtcore/qsize.html">QSize</a></span> QTableView::<span class="name">viewportSizeHint</span>() const</h3>
<p>Reimplemented from <a href="qabstractitemview.html#viewportSizeHint">QAbstractItemView::viewportSizeHint</a>().</p>
<!-- @@@viewportSizeHint -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    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.<br/>    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. </p>
</div>
</body>
</html>