Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 1dd17e0d683ef79b4bb6872bbf359d7f > files > 5489

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" />
<!-- qheaderview.cpp -->
  <title>Qt 4.8: QHeaderView 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>QHeaderView</li>
            </ul>
          </div>
          <div class="toolbuttons toolblock">
            <ul>
              <li id="smallA" class="t_button">A</li>
              <li id="medA" class="t_button active">A</li>
              <li id="bigA" class="t_button">A</li>
              <li id="print" class="t_button"><a href="javascript:this.print();">
                <span>Print</span></a></li>
            </ul>
        </div>
        </div>
        <div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#public-slots">Public Slots</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#protected-slots">Protected Slots</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
<li class="level2"><a href="#moving-header-sections">Moving Header Sections</a></li>
<li class="level2"><a href="#appearance">Appearance</a></li>
</ul>
</div>
<h1 class="title">QHeaderView Class Reference</h1>
<!-- $$$QHeaderView-brief -->
<p>The QHeaderView class provides a header row or header column for item views. <a href="#details">More...</a></p>
<!-- @@@QHeaderView -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QHeaderView&gt;</span></pre><p><b>Inherits: </b><a href="qabstractitemview.html">QAbstractItemView</a>.</p>
<ul>
<li><a href="qheaderview-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#ResizeMode-enum">ResizeMode</a></b> { Interactive, Fixed, Stretch, ResizeToContents, Custom }</td></tr>
</table>
<a name="properties"></a>
<h2>Properties</h2>
<table class="propsummary">
<tr><td class="topAlign"><ul>
<li class="fn"><b><a href="qheaderview.html#cascadingSectionResizes-prop">cascadingSectionResizes</a></b> : bool</li>
<li class="fn"><b><a href="qheaderview.html#defaultAlignment-prop">defaultAlignment</a></b> : Qt::Alignment</li>
<li class="fn"><b><a href="qheaderview.html#defaultSectionSize-prop">defaultSectionSize</a></b> : int</li>
<li class="fn"><b><a href="qheaderview.html#highlightSections-prop">highlightSections</a></b> : bool</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="qheaderview.html#minimumSectionSize-prop">minimumSectionSize</a></b> : int</li>
<li class="fn"><b><a href="qheaderview.html#showSortIndicator-prop">showSortIndicator</a></b> : bool</li>
<li class="fn"><b><a href="qheaderview.html#stretchLastSection-prop">stretchLastSection</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="qheaderview.html#QHeaderView">QHeaderView</a></b> ( Qt::Orientation <i>orientation</i>, QWidget * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#dtor.QHeaderView">~QHeaderView</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#cascadingSectionResizes-prop">cascadingSectionResizes</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#count">count</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::Alignment </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#defaultAlignment-prop">defaultAlignment</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#defaultSectionSize-prop">defaultSectionSize</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#hiddenSectionCount">hiddenSectionCount</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#hideSection">hideSection</a></b> ( int <i>logicalIndex</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#highlightSections-prop">highlightSections</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#isClickable">isClickable</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#isMovable">isMovable</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#isSectionHidden">isSectionHidden</a></b> ( int <i>logicalIndex</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#showSortIndicator-prop">isSortIndicatorShown</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#length">length</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#logicalIndex">logicalIndex</a></b> ( int <i>visualIndex</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#logicalIndexAt">logicalIndexAt</a></b> ( int <i>position</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#logicalIndexAt-2">logicalIndexAt</a></b> ( int <i>x</i>, int <i>y</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#logicalIndexAt-3">logicalIndexAt</a></b> ( const QPoint &amp; <i>pos</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#minimumSectionSize-prop">minimumSectionSize</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#moveSection">moveSection</a></b> ( int <i>from</i>, int <i>to</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#offset">offset</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::Orientation </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#orientation">orientation</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> ResizeMode </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#resizeMode">resizeMode</a></b> ( int <i>logicalIndex</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#resizeSection">resizeSection</a></b> ( int <i>logicalIndex</i>, int <i>size</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#resizeSections">resizeSections</a></b> ( QHeaderView::ResizeMode <i>mode</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#restoreState">restoreState</a></b> ( const QByteArray &amp; <i>state</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QByteArray </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#saveState">saveState</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#sectionPosition">sectionPosition</a></b> ( int <i>logicalIndex</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#sectionSize">sectionSize</a></b> ( int <i>logicalIndex</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#sectionSizeHint">sectionSizeHint</a></b> ( int <i>logicalIndex</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#sectionViewportPosition">sectionViewportPosition</a></b> ( int <i>logicalIndex</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#sectionsHidden">sectionsHidden</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#sectionsMoved">sectionsMoved</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#cascadingSectionResizes-prop">setCascadingSectionResizes</a></b> ( bool <i>enable</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#setClickable">setClickable</a></b> ( bool <i>clickable</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#defaultAlignment-prop">setDefaultAlignment</a></b> ( Qt::Alignment <i>alignment</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#defaultSectionSize-prop">setDefaultSectionSize</a></b> ( int <i>size</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#highlightSections-prop">setHighlightSections</a></b> ( bool <i>highlight</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#minimumSectionSize-prop">setMinimumSectionSize</a></b> ( int <i>size</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#setMovable">setMovable</a></b> ( bool <i>movable</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#setResizeMode">setResizeMode</a></b> ( ResizeMode <i>mode</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#setResizeMode-2">setResizeMode</a></b> ( int <i>logicalIndex</i>, ResizeMode <i>mode</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#setSectionHidden">setSectionHidden</a></b> ( int <i>logicalIndex</i>, bool <i>hide</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#setSortIndicator">setSortIndicator</a></b> ( int <i>logicalIndex</i>, Qt::SortOrder <i>order</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#showSortIndicator-prop">setSortIndicatorShown</a></b> ( bool <i>show</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#stretchLastSection-prop">setStretchLastSection</a></b> ( bool <i>stretch</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#showSection">showSection</a></b> ( int <i>logicalIndex</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::SortOrder </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#sortIndicatorOrder">sortIndicatorOrder</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#sortIndicatorSection">sortIndicatorSection</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#stretchLastSection-prop">stretchLastSection</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#stretchSectionCount">stretchSectionCount</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#swapSections">swapSections</a></b> ( int <i>first</i>, int <i>second</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#visualIndex">visualIndex</a></b> ( int <i>logicalIndex</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#visualIndexAt">visualIndexAt</a></b> ( int <i>position</i> ) 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 void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#reset">reset</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#setModel">setModel</a></b> ( QAbstractItemModel * <i>model</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSize </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#sizeHint">sizeHint</a></b> () const</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="qheaderview.html#headerDataChanged">headerDataChanged</a></b> ( Qt::Orientation <i>orientation</i>, int <i>logicalFirst</i>, int <i>logicalLast</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#setOffset">setOffset</a></b> ( int <i>offset</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#setOffsetToLastSection">setOffsetToLastSection</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#setOffsetToSectionPosition">setOffsetToSectionPosition</a></b> ( int <i>visualIndex</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="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#geometriesChanged">geometriesChanged</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#sectionAutoResize">sectionAutoResize</a></b> ( int <i>logicalIndex</i>, QHeaderView::ResizeMode <i>mode</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#sectionClicked">sectionClicked</a></b> ( int <i>logicalIndex</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#sectionCountChanged">sectionCountChanged</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="qheaderview.html#sectionDoubleClicked">sectionDoubleClicked</a></b> ( int <i>logicalIndex</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#sectionEntered">sectionEntered</a></b> ( int <i>logicalIndex</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#sectionHandleDoubleClicked">sectionHandleDoubleClicked</a></b> ( int <i>logicalIndex</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#sectionMoved">sectionMoved</a></b> ( int <i>logicalIndex</i>, int <i>oldVisualIndex</i>, int <i>newVisualIndex</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#sectionPressed">sectionPressed</a></b> ( int <i>logicalIndex</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#sectionResized">sectionResized</a></b> ( int <i>logicalIndex</i>, int <i>oldSize</i>, int <i>newSize</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#sortIndicatorChanged">sortIndicatorChanged</a></b> ( int <i>logicalIndex</i>, Qt::SortOrder <i>order</i> )</td></tr>
</table>
<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>
</ul>
<a name="protected-functions"></a>
<h2>Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#initStyleOption">initStyleOption</a></b> ( QStyleOptionHeader * <i>option</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#paintSection">paintSection</a></b> ( QPainter * <i>painter</i>, const QRect &amp; <i>rect</i>, int <i>logicalIndex</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSize </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#sectionSizeFromContents">sectionSizeFromContents</a></b> ( int <i>logicalIndex</i> ) const</td></tr>
</table>
<a name="reimplemented-protected-functions"></a>
<h2>Reimplemented Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#currentChanged">currentChanged</a></b> ( const QModelIndex &amp; <i>current</i>, const QModelIndex &amp; <i>old</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#event">event</a></b> ( QEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#horizontalOffset">horizontalOffset</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#mouseDoubleClickEvent">mouseDoubleClickEvent</a></b> ( QMouseEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#mouseMoveEvent">mouseMoveEvent</a></b> ( QMouseEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#mousePressEvent">mousePressEvent</a></b> ( QMouseEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#mouseReleaseEvent">mouseReleaseEvent</a></b> ( QMouseEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#paintEvent">paintEvent</a></b> ( QPaintEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.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="qheaderview.html#verticalOffset">verticalOffset</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#viewportEvent">viewportEvent</a></b> ( QEvent * <i>e</i> )</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="qheaderview.html#resizeSections-2">resizeSections</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#sectionsAboutToBeRemoved">sectionsAboutToBeRemoved</a></b> ( const QModelIndex &amp; <i>parent</i>, int <i>logicalFirst</i>, int <i>logicalLast</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheaderview.html#sectionsInserted">sectionsInserted</a></b> ( const QModelIndex &amp; <i>parent</i>, int <i>logicalFirst</i>, int <i>logicalLast</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">4 static public members inherited from <a href="qwidget.html#static-public-members">QWidget</a></li>
<li class="fn">7 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
</ul>
<a name="details"></a>
<!-- $$$QHeaderView-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QHeaderView class provides a header row or header column for item views.</p>
<p>A QHeaderView displays the headers used in item views such as the <a href="qtableview.html">QTableView</a> and <a href="qtreeview.html">QTreeView</a> classes. It takes the place of Qt3's <tt>QHeader</tt> class previously used for the same purpose, but uses the Qt's model/view architecture for consistency with the item view classes.</p>
<p>The QHeaderView 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>The header gets the data for each section from the model using the <a href="qabstractitemmodel.html#headerData">QAbstractItemModel::headerData</a>() function. You can set the data by using <a href="qabstractitemmodel.html#setHeaderData">QAbstractItemModel::setHeaderData</a>().</p>
<p>Each header has an <a href="qheaderview.html#orientation">orientation</a>() and a number of sections, given by the <a href="qheaderview.html#count">count</a>() function. A section refers to a part of the header - either a row or a column, depending on the orientation.</p>
<p>Sections can be moved and resized using <a href="qheaderview.html#moveSection">moveSection</a>() and <a href="qheaderview.html#resizeSection">resizeSection</a>(); they can also be hidden and shown with <a href="qheaderview.html#hideSection">hideSection</a>() and <a href="qheaderview.html#showSection">showSection</a>().</p>
<p>Each section of a header is described by a section ID, specified by its section(), and can be located at a particular <a href="qheaderview.html#visualIndex">visualIndex</a>() in the header. A section can have a sort indicator set with <a href="qheaderview.html#setSortIndicator">setSortIndicator</a>(); this indicates whether the items in the associated item view will be sorted in the order given by the section.</p>
<p>For a horizontal header the section is equivalent to a column in the model, and for a vertical header the section is equivalent to a row in the model.</p>
<a name="moving-header-sections"></a>
<h3>Moving Header Sections</h3>
<p>A header can be fixed in place, or made movable with <a href="qheaderview.html#setMovable">setMovable</a>(). It can be made clickable with <a href="qheaderview.html#setClickable">setClickable</a>(), and has resizing behavior in accordance with <a href="qheaderview.html#setResizeMode">setResizeMode</a>().</p>
<p><b>Note:</b> Double-clicking on a header to resize a section only applies for visible rows.</p>
<p>A header will emit <a href="qheaderview.html#sectionMoved">sectionMoved</a>() if the user moves a section, <a href="qheaderview.html#sectionResized">sectionResized</a>() if the user resizes a section, and <a href="qheaderview.html#sectionClicked">sectionClicked</a>() as well as <a href="qheaderview.html#sectionHandleDoubleClicked">sectionHandleDoubleClicked</a>() in response to mouse clicks. A header will also emit <a href="qheaderview.html#sectionCountChanged">sectionCountChanged</a>() and <a href="qheaderview.html#sectionAutoResize">sectionAutoResize</a>().</p>
<p>You can identify a section using the <a href="qheaderview.html#logicalIndex">logicalIndex</a>() and <a href="qheaderview.html#logicalIndexAt">logicalIndexAt</a>() functions, or by its index position, using the <a href="qheaderview.html#visualIndex">visualIndex</a>() and <a href="qheaderview.html#visualIndexAt">visualIndexAt</a>() functions. The visual index will change if a section is moved, but the logical index will not change.</p>
<a name="appearance"></a>
<h3>Appearance</h3>
<p><a href="qtablewidget.html">QTableWidget</a> and <a href="qtableview.html">QTableView</a> create default headers. If you want the headers to be visible, you can use <a href="qwidget.html#visible-prop">setVisible()</a>.</p>
<p>Not all <a href="qt.html#ItemDataRole-enum">ItemDataRole</a>s will have an effect on a QHeaderView. If you need to draw other roles, you can subclass QHeaderView and reimplement <a href="qheaderview.html#paintEvent">paintEvent()</a>. QHeaderView respects the following item data roles: <a href="qt.html#ItemDataRole-enum">TextAlignmentRole</a>, <a href="qt.html#ItemDataRole-enum">DisplayRole</a>, <a href="qt.html#ItemDataRole-enum">FontRole</a>, <a href="qt.html#ItemDataRole-enum">DecorationRole</a>, <a href="qt.html#ItemDataRole-enum">ForegroundRole</a>, and <a href="qt.html#ItemDataRole-enum">BackgroundRole</a>.</p>
<p><b>Note:</b> Each header renders the data for each section itself, and does not rely on a delegate. As a result, calling a header's <a href="qabstractitemview.html#setItemDelegate">setItemDelegate</a>() function will have no effect.</p>
</div>
<p><b>See also </b><a href="model-view-programming.html">Model/View Programming</a>, <a href="qlistview.html">QListView</a>, <a href="qtableview.html">QTableView</a>, and <a href="qtreeview.html">QTreeView</a>.</p>
<!-- @@@QHeaderView -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$ResizeMode$$$Interactive$$$Stretch$$$Fixed$$$ResizeToContents$$$Custom -->
<h3 class="fn"><a name="ResizeMode-enum"></a>enum QHeaderView::<span class="name">ResizeMode</span></h3>
<p>The resize mode specifies the behavior of the header sections. It can be set on the entire header view or on individual sections using <a href="qheaderview.html#setResizeMode">setResizeMode</a>().</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QHeaderView::Interactive</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The user can resize the section. The section can also be resized programmatically using <a href="qheaderview.html#resizeSection">resizeSection</a>(). The section size defaults to <a href="qheaderview.html#defaultSectionSize-prop">defaultSectionSize</a>. (See also <a href="qheaderview.html#cascadingSectionResizes-prop">cascadingSectionResizes</a>.)</td></tr>
<tr><td class="topAlign"><tt>QHeaderView::Fixed</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">The user cannot resize the section. The section can only be resized programmatically using <a href="qheaderview.html#resizeSection">resizeSection</a>(). The section size defaults to <a href="qheaderview.html#defaultSectionSize-prop">defaultSectionSize</a>.</td></tr>
<tr><td class="topAlign"><tt>QHeaderView::Stretch</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign"><a href="qheaderview.html">QHeaderView</a> will automatically resize the section to fill the available space. The size cannot be changed by the user or programmatically.</td></tr>
<tr><td class="topAlign"><tt>QHeaderView::ResizeToContents</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign"><a href="qheaderview.html">QHeaderView</a> will automatically resize the section to its optimal size based on the contents of the entire column or row. The size cannot be changed by the user or programmatically. (This value was introduced in 4.2)</td></tr>
</table>
<p>The following values are obsolete:</p>
<table class="valuelist"><tr valign="top" class="even"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QHeaderView::Custom</tt></td><td class="topAlign"><tt>Fixed</tt></td><td class="topAlign">Use Fixed instead.</td></tr>
</table>
<p><b>See also </b><a href="qheaderview.html#setResizeMode">setResizeMode</a>(), <a href="qheaderview.html#stretchLastSection-prop">stretchLastSection</a>, and <a href="qheaderview.html#minimumSectionSize-prop">minimumSectionSize</a>.</p>
<!-- @@@ResizeMode -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$cascadingSectionResizes-prop$$$cascadingSectionResizes$$$setCascadingSectionResizesbool -->
<h3 class="fn"><a name="cascadingSectionResizes-prop"></a><span class="name">cascadingSectionResizes</span> : <span class="type">bool</span></h3>
<p>This property holds whether interactive resizing will be cascaded to the following sections once the section being resized by the user has reached its minimum size.</p>
<p>This property only affects sections that have <a href="qheaderview.html#ResizeMode-enum">Interactive</a> as their resize mode.</p>
<p>The default value is false.</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>cascadingSectionResizes</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCascadingSectionResizes</b></span> ( bool <i>enable</i> )</td></tr>
</table>
<p><b>See also </b><a href="qheaderview.html#setResizeMode">setResizeMode</a>().</p>
<!-- @@@cascadingSectionResizes -->
<!-- $$$defaultAlignment-prop$$$defaultAlignment$$$setDefaultAlignmentQt::Alignment -->
<h3 class="fn"><a name="defaultAlignment-prop"></a><span class="name">defaultAlignment</span> : <span class="type"><a href="qt.html#AlignmentFlag-enum">Qt::Alignment</a></span></h3>
<p>This property holds the default alignment of the text in each header section.</p>
<p>This property was introduced in Qt 4.1.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> Qt::Alignment </td><td class="memItemRight bottomAlign"><span class="name"><b>defaultAlignment</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDefaultAlignment</b></span> ( Qt::Alignment <i>alignment</i> )</td></tr>
</table>
<!-- @@@defaultAlignment -->
<!-- $$$defaultSectionSize-prop$$$defaultSectionSize$$$setDefaultSectionSizeint -->
<h3 class="fn"><a name="defaultSectionSize-prop"></a><span class="name">defaultSectionSize</span> : <span class="type">int</span></h3>
<p>This property holds the default size of the header sections before resizing.</p>
<p>This property only affects sections that have <a href="qheaderview.html#ResizeMode-enum">Interactive</a> or <a href="qheaderview.html#ResizeMode-enum">Fixed</a> as their resize mode.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>defaultSectionSize</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDefaultSectionSize</b></span> ( int <i>size</i> )</td></tr>
</table>
<p><b>See also </b><a href="qheaderview.html#setResizeMode">setResizeMode</a>() and <a href="qheaderview.html#minimumSectionSize-prop">minimumSectionSize</a>.</p>
<!-- @@@defaultSectionSize -->
<!-- $$$highlightSections-prop$$$highlightSections$$$setHighlightSectionsbool -->
<h3 class="fn"><a name="highlightSections-prop"></a><span class="name">highlightSections</span> : <span class="type">bool</span></h3>
<p>This property holds whether the sections containing selected items are highlighted.</p>
<p>By default, this property is false.</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>highlightSections</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setHighlightSections</b></span> ( bool <i>highlight</i> )</td></tr>
</table>
<!-- @@@highlightSections -->
<!-- $$$minimumSectionSize-prop$$$minimumSectionSize$$$setMinimumSectionSizeint -->
<h3 class="fn"><a name="minimumSectionSize-prop"></a><span class="name">minimumSectionSize</span> : <span class="type">int</span></h3>
<p>This property holds the minimum size of the header sections.</p>
<p>The minimum section size is the smallest section size allowed. If the minimum section size is set to -1, <a href="qheaderview.html">QHeaderView</a> will use the maximum of the <a href="qapplication.html#globalStrut-prop">global strut</a> or the <a href="qwidget.html#fontMetrics">font metrics</a> size.</p>
<p>This property is honored by all <a href="qheaderview.html#ResizeMode-enum">resize modes</a>.</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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>minimumSectionSize</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMinimumSectionSize</b></span> ( int <i>size</i> )</td></tr>
</table>
<p><b>See also </b><a href="qheaderview.html#setResizeMode">setResizeMode</a>() and <a href="qheaderview.html#defaultSectionSize-prop">defaultSectionSize</a>.</p>
<!-- @@@minimumSectionSize -->
<!-- $$$showSortIndicator-prop$$$isSortIndicatorShown$$$setSortIndicatorShownbool -->
<h3 class="fn"><a name="showSortIndicator-prop"></a><span class="name">showSortIndicator</span> : <span class="type">bool</span></h3>
<p>This property holds whether the sort indicator is shown.</p>
<p>By default, this property is false.</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>isSortIndicatorShown</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSortIndicatorShown</b></span> ( bool <i>show</i> )</td></tr>
</table>
<p><b>See also </b><a href="qheaderview.html#setClickable">setClickable</a>().</p>
<!-- @@@showSortIndicator -->
<!-- $$$stretchLastSection-prop$$$stretchLastSection$$$setStretchLastSectionbool -->
<h3 class="fn"><a name="stretchLastSection-prop"></a><span class="name">stretchLastSection</span> : <span class="type">bool</span></h3>
<p>This property holds whether the last visible section in the header takes up all the available space.</p>
<p>The default value is false.</p>
<p><b>Note:</b> The horizontal headers provided by <a href="qtreeview.html">QTreeView</a> are configured with this property set to true, ensuring that the view does not waste any of the space assigned to it for its header. If this value is set to true, this property will override the resize mode set on the last section in the header.</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>stretchLastSection</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setStretchLastSection</b></span> ( bool <i>stretch</i> )</td></tr>
</table>
<p><b>See also </b><a href="qheaderview.html#setResizeMode">setResizeMode</a>().</p>
<!-- @@@stretchLastSection -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QHeaderView[overload1]$$$QHeaderViewQt::OrientationQWidget* -->
<h3 class="fn"><a name="QHeaderView"></a>QHeaderView::<span class="name">QHeaderView</span> ( <span class="type"><a href="qt.html#Orientation-enum">Qt::Orientation</a></span> <i>orientation</i>, <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0 )</h3>
<p>Creates a new generic header with the given <i>orientation</i> and <i>parent</i>.</p>
<!-- @@@QHeaderView -->
<!-- $$$~QHeaderView[overload1]$$$~QHeaderView -->
<h3 class="fn"><a name="dtor.QHeaderView"></a>QHeaderView::<span class="name">~QHeaderView</span> ()<tt> [virtual]</tt></h3>
<p>Destroys the header.</p>
<!-- @@@~QHeaderView -->
<!-- $$$count[overload1]$$$count -->
<h3 class="fn"><a name="count"></a><span class="type">int</span> QHeaderView::<span class="name">count</span> () const</h3>
<p>Returns the number of sections in the header.</p>
<p><b>See also </b><a href="qheaderview.html#sectionCountChanged">sectionCountChanged</a>() and <a href="qheaderview.html#length">length</a>().</p>
<!-- @@@count -->
<!-- $$$currentChanged[overload1]$$$currentChangedconstQModelIndex&constQModelIndex& -->
<h3 class="fn"><a name="currentChanged"></a><span class="type">void</span> QHeaderView::<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>old</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#currentChanged">QAbstractItemView::currentChanged</a>().</p>
<!-- @@@currentChanged -->
<!-- $$$event[overload1]$$$eventQEvent* -->
<h3 class="fn"><a name="event"></a><span class="type">bool</span> QHeaderView::<span class="name">event</span> ( <span class="type"><a href="qevent.html">QEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qobject.html#event">QObject::event</a>().</p>
<!-- @@@event -->
<!-- $$$geometriesChanged[overload1]$$$geometriesChanged -->
<h3 class="fn"><a name="geometriesChanged"></a><span class="type">void</span> QHeaderView::<span class="name">geometriesChanged</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted when the header's geometries have changed.</p>
<p>This function was introduced in Qt 4.2.</p>
<!-- @@@geometriesChanged -->
<!-- $$$headerDataChanged[overload1]$$$headerDataChangedQt::Orientationintint -->
<h3 class="fn"><a name="headerDataChanged"></a><span class="type">void</span> QHeaderView::<span class="name">headerDataChanged</span> ( <span class="type"><a href="qt.html#Orientation-enum">Qt::Orientation</a></span> <i>orientation</i>, <span class="type">int</span> <i>logicalFirst</i>, <span class="type">int</span> <i>logicalLast</i> )<tt> [slot]</tt></h3>
<p>Updates the changed header sections with the given <i>orientation</i>, from <i>logicalFirst</i> to <i>logicalLast</i> inclusive.</p>
<!-- @@@headerDataChanged -->
<!-- $$$hiddenSectionCount[overload1]$$$hiddenSectionCount -->
<h3 class="fn"><a name="hiddenSectionCount"></a><span class="type">int</span> QHeaderView::<span class="name">hiddenSectionCount</span> () const</h3>
<p>Returns the number of sections in the header that has been hidden.</p>
<p>This function was introduced in Qt 4.1.</p>
<p><b>See also </b><a href="qheaderview.html#setSectionHidden">setSectionHidden</a>() and <a href="qheaderview.html#isSectionHidden">isSectionHidden</a>().</p>
<!-- @@@hiddenSectionCount -->
<!-- $$$hideSection[overload1]$$$hideSectionint -->
<h3 class="fn"><a name="hideSection"></a><span class="type">void</span> QHeaderView::<span class="name">hideSection</span> ( <span class="type">int</span> <i>logicalIndex</i> )</h3>
<p>Hides the section specified by <i>logicalIndex</i>.</p>
<p><b>See also </b><a href="qheaderview.html#showSection">showSection</a>(), <a href="qheaderview.html#isSectionHidden">isSectionHidden</a>(), <a href="qheaderview.html#hiddenSectionCount">hiddenSectionCount</a>(), and <a href="qheaderview.html#setSectionHidden">setSectionHidden</a>().</p>
<!-- @@@hideSection -->
<!-- $$$horizontalOffset[overload1]$$$horizontalOffset -->
<h3 class="fn"><a name="horizontalOffset"></a><span class="type">int</span> QHeaderView::<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 header. This is 0 for vertical headers.</p>
<p><b>See also </b><a href="qheaderview.html#offset">offset</a>().</p>
<!-- @@@horizontalOffset -->
<!-- $$$initStyleOption[overload1]$$$initStyleOptionQStyleOptionHeader* -->
<h3 class="fn"><a name="initStyleOption"></a><span class="type">void</span> QHeaderView::<span class="name">initStyleOption</span> ( <span class="type"><a href="qstyleoptionheader.html">QStyleOptionHeader</a></span> * <i>option</i> ) const<tt> [protected]</tt></h3>
<p>Initialize <i>option</i> with the values from this <a href="qheaderview.html">QHeaderView</a>. This method is useful for subclasses when they need a <a href="qstyleoptionheader.html">QStyleOptionHeader</a>, but do not want to fill in all the information themselves.</p>
<p><b>See also </b><a href="qstyleoption.html#initFrom">QStyleOption::initFrom</a>().</p>
<!-- @@@initStyleOption -->
<!-- $$$isClickable[overload1]$$$isClickable -->
<h3 class="fn"><a name="isClickable"></a><span class="type">bool</span> QHeaderView::<span class="name">isClickable</span> () const</h3>
<p>Returns true if the header is clickable; otherwise returns false. A clickable header could be set up to allow the user to change the representation of the data in the view related to the header.</p>
<p><b>See also </b><a href="qheaderview.html#setClickable">setClickable</a>().</p>
<!-- @@@isClickable -->
<!-- $$$isMovable[overload1]$$$isMovable -->
<h3 class="fn"><a name="isMovable"></a><span class="type">bool</span> QHeaderView::<span class="name">isMovable</span> () const</h3>
<p>Returns true if the header can be moved by the user; otherwise returns false.</p>
<p><b>See also </b><a href="qheaderview.html#setMovable">setMovable</a>().</p>
<!-- @@@isMovable -->
<!-- $$$isSectionHidden[overload1]$$$isSectionHiddenint -->
<h3 class="fn"><a name="isSectionHidden"></a><span class="type">bool</span> QHeaderView::<span class="name">isSectionHidden</span> ( <span class="type">int</span> <i>logicalIndex</i> ) const</h3>
<p>Returns true if the section specified by <i>logicalIndex</i> is explicitly hidden from the user; otherwise returns false.</p>
<p><b>See also </b><a href="qheaderview.html#hideSection">hideSection</a>(), <a href="qheaderview.html#showSection">showSection</a>(), <a href="qheaderview.html#setSectionHidden">setSectionHidden</a>(), and <a href="qheaderview.html#hiddenSectionCount">hiddenSectionCount</a>().</p>
<!-- @@@isSectionHidden -->
<!-- $$$length[overload1]$$$length -->
<h3 class="fn"><a name="length"></a><span class="type">int</span> QHeaderView::<span class="name">length</span> () const</h3>
<p>Returns the length along the orientation of the header.</p>
<p><b>See also </b><a href="qheaderview.html#sizeHint">sizeHint</a>(), <a href="qheaderview.html#setResizeMode">setResizeMode</a>(), and <a href="qheaderview.html#offset">offset</a>().</p>
<!-- @@@length -->
<!-- $$$logicalIndex[overload1]$$$logicalIndexint -->
<h3 class="fn"><a name="logicalIndex"></a><span class="type">int</span> QHeaderView::<span class="name">logicalIndex</span> ( <span class="type">int</span> <i>visualIndex</i> ) const</h3>
<p>Returns the logicalIndex for the section at the given <i>visualIndex</i> position, or -1 if visualIndex &lt; 0 or visualIndex &gt;= <a href="qheaderview.html#count">QHeaderView::count</a>().</p>
<p>Note that the visualIndex is not affected by hidden sections.</p>
<p><b>See also </b><a href="qheaderview.html#visualIndex">visualIndex</a>() and <a href="qheaderview.html#sectionPosition">sectionPosition</a>().</p>
<!-- @@@logicalIndex -->
<!-- $$$logicalIndexAt[overload1]$$$logicalIndexAtint -->
<h3 class="fn"><a name="logicalIndexAt"></a><span class="type">int</span> QHeaderView::<span class="name">logicalIndexAt</span> ( <span class="type">int</span> <i>position</i> ) const</h3>
<p>Returns the section that covers the given <i>position</i> in the viewport.</p>
<p><b>See also </b><a href="qheaderview.html#visualIndexAt">visualIndexAt</a>() and <a href="qheaderview.html#isSectionHidden">isSectionHidden</a>().</p>
<!-- @@@logicalIndexAt -->
<!-- $$$logicalIndexAt$$$logicalIndexAtintint -->
<h3 class="fn"><a name="logicalIndexAt-2"></a><span class="type">int</span> QHeaderView::<span class="name">logicalIndexAt</span> ( <span class="type">int</span> <i>x</i>, <span class="type">int</span> <i>y</i> ) const</h3>
<p>Returns the logical index of the section at the given coordinate. If the header is horizontal <i>x</i> will be used, otherwise <i>y</i> will be used to find the logical index.</p>
<!-- @@@logicalIndexAt -->
<!-- $$$logicalIndexAt$$$logicalIndexAtconstQPoint& -->
<h3 class="fn"><a name="logicalIndexAt-3"></a><span class="type">int</span> QHeaderView::<span class="name">logicalIndexAt</span> ( const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>pos</i> ) const</h3>
<p>Returns the logical index of the section at the position given in <i>pos</i>. If the header is horizontal the x-coordinate will be used, otherwise the y-coordinate will be used to find the logical index.</p>
<p><b>See also </b><a href="qheaderview.html#sectionPosition">sectionPosition</a>().</p>
<!-- @@@logicalIndexAt -->
<!-- $$$mouseDoubleClickEvent[overload1]$$$mouseDoubleClickEventQMouseEvent* -->
<h3 class="fn"><a name="mouseDoubleClickEvent"></a><span class="type">void</span> QHeaderView::<span class="name">mouseDoubleClickEvent</span> ( <span class="type"><a href="qmouseevent.html">QMouseEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#mouseDoubleClickEvent">QWidget::mouseDoubleClickEvent</a>().</p>
<!-- @@@mouseDoubleClickEvent -->
<!-- $$$mouseMoveEvent[overload1]$$$mouseMoveEventQMouseEvent* -->
<h3 class="fn"><a name="mouseMoveEvent"></a><span class="type">void</span> QHeaderView::<span class="name">mouseMoveEvent</span> ( <span class="type"><a href="qmouseevent.html">QMouseEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#mouseMoveEvent">QWidget::mouseMoveEvent</a>().</p>
<!-- @@@mouseMoveEvent -->
<!-- $$$mousePressEvent[overload1]$$$mousePressEventQMouseEvent* -->
<h3 class="fn"><a name="mousePressEvent"></a><span class="type">void</span> QHeaderView::<span class="name">mousePressEvent</span> ( <span class="type"><a href="qmouseevent.html">QMouseEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#mousePressEvent">QWidget::mousePressEvent</a>().</p>
<!-- @@@mousePressEvent -->
<!-- $$$mouseReleaseEvent[overload1]$$$mouseReleaseEventQMouseEvent* -->
<h3 class="fn"><a name="mouseReleaseEvent"></a><span class="type">void</span> QHeaderView::<span class="name">mouseReleaseEvent</span> ( <span class="type"><a href="qmouseevent.html">QMouseEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#mouseReleaseEvent">QWidget::mouseReleaseEvent</a>().</p>
<!-- @@@mouseReleaseEvent -->
<!-- $$$moveSection[overload1]$$$moveSectionintint -->
<h3 class="fn"><a name="moveSection"></a><span class="type">void</span> QHeaderView::<span class="name">moveSection</span> ( <span class="type">int</span> <i>from</i>, <span class="type">int</span> <i>to</i> )</h3>
<p>Moves the section at visual index <i>from</i> to occupy visual index <i>to</i>.</p>
<p><b>See also </b><a href="qheaderview.html#sectionsMoved">sectionsMoved</a>().</p>
<!-- @@@moveSection -->
<!-- $$$offset[overload1]$$$offset -->
<h3 class="fn"><a name="offset"></a><span class="type">int</span> QHeaderView::<span class="name">offset</span> () const</h3>
<p>Returns the offset of the header: this is the header's left-most (or top-most for vertical headers) visible pixel.</p>
<p><b>See also </b><a href="qheaderview.html#setOffset">setOffset</a>().</p>
<!-- @@@offset -->
<!-- $$$orientation[overload1]$$$orientation -->
<h3 class="fn"><a name="orientation"></a><span class="type"><a href="qt.html#Orientation-enum">Qt::Orientation</a></span> QHeaderView::<span class="name">orientation</span> () const</h3>
<p>Returns the orientation of the header.</p>
<p><b>See also </b><a href="qt.html#Orientation-enum">Qt::Orientation</a>.</p>
<!-- @@@orientation -->
<!-- $$$paintEvent[overload1]$$$paintEventQPaintEvent* -->
<h3 class="fn"><a name="paintEvent"></a><span class="type">void</span> QHeaderView::<span class="name">paintEvent</span> ( <span class="type"><a href="qpaintevent.html">QPaintEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#paintEvent">QWidget::paintEvent</a>().</p>
<!-- @@@paintEvent -->
<!-- $$$paintSection[overload1]$$$paintSectionQPainter*constQRect&int -->
<h3 class="fn"><a name="paintSection"></a><span class="type">void</span> QHeaderView::<span class="name">paintSection</span> ( <span class="type"><a href="qpainter.html">QPainter</a></span> * <i>painter</i>, const <span class="type"><a href="qrect.html">QRect</a></span> &amp; <i>rect</i>, <span class="type">int</span> <i>logicalIndex</i> ) const<tt> [virtual protected]</tt></h3>
<p>Paints the section specified by the given <i>logicalIndex</i>, using the given <i>painter</i> and <i>rect</i>.</p>
<p>Normally, you do not have to call this function.</p>
<!-- @@@paintSection -->
<!-- $$$reset[overload1]$$$reset -->
<h3 class="fn"><a name="reset"></a><span class="type">void</span> QHeaderView::<span class="name">reset</span> ()<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qabstractitemview.html#reset">QAbstractItemView::reset</a>().</p>
<!-- @@@reset -->
<!-- $$$resizeMode[overload1]$$$resizeModeint -->
<h3 class="fn"><a name="resizeMode"></a><span class="type"><a href="qheaderview.html#ResizeMode-enum">ResizeMode</a></span> QHeaderView::<span class="name">resizeMode</span> ( <span class="type">int</span> <i>logicalIndex</i> ) const</h3>
<p>Returns the resize mode that applies to the section specified by the given <i>logicalIndex</i>.</p>
<p><b>See also </b><a href="qheaderview.html#setResizeMode">setResizeMode</a>().</p>
<!-- @@@resizeMode -->
<!-- $$$resizeSection[overload1]$$$resizeSectionintint -->
<h3 class="fn"><a name="resizeSection"></a><span class="type">void</span> QHeaderView::<span class="name">resizeSection</span> ( <span class="type">int</span> <i>logicalIndex</i>, <span class="type">int</span> <i>size</i> )</h3>
<p>Resizes the section specified by <i>logicalIndex</i> to <i>size</i> measured in pixels.</p>
<p><b>See also </b><a href="qheaderview.html#sectionResized">sectionResized</a>(), <a href="qheaderview.html#resizeMode">resizeMode</a>(), and <a href="qheaderview.html#sectionSize">sectionSize</a>().</p>
<!-- @@@resizeSection -->
<!-- $$$resizeSections[overload1]$$$resizeSectionsQHeaderView::ResizeMode -->
<h3 class="fn"><a name="resizeSections"></a><span class="type">void</span> QHeaderView::<span class="name">resizeSections</span> ( <span class="type"><a href="qheaderview.html#ResizeMode-enum">QHeaderView::ResizeMode</a></span> <i>mode</i> )</h3>
<p>Resizes the sections according to the given <i>mode</i>, ignoring the current resize mode.</p>
<p><b>See also </b><a href="qheaderview.html#resizeMode">resizeMode</a>() and <a href="qheaderview.html#sectionResized">sectionResized</a>().</p>
<!-- @@@resizeSections -->
<!-- $$$resizeSections$$$resizeSections -->
<h3 class="fn"><a name="resizeSections-2"></a><span class="type">void</span> QHeaderView::<span class="name">resizeSections</span> ()<tt> [protected slot]</tt></h3>
<p>Resizes the sections according to their size hints. Normally, you do not have to call this function.</p>
<!-- @@@resizeSections -->
<!-- $$$restoreState[overload1]$$$restoreStateconstQByteArray& -->
<h3 class="fn"><a name="restoreState"></a><span class="type">bool</span> QHeaderView::<span class="name">restoreState</span> ( const <span class="type"><a href="qbytearray.html">QByteArray</a></span> &amp; <i>state</i> )</h3>
<p>Restores the <i>state</i> of this header view. This function returns <tt>true</tt> if the state was restored; otherwise returns false.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qheaderview.html#saveState">saveState</a>().</p>
<!-- @@@restoreState -->
<!-- $$$saveState[overload1]$$$saveState -->
<h3 class="fn"><a name="saveState"></a><span class="type"><a href="qbytearray.html">QByteArray</a></span> QHeaderView::<span class="name">saveState</span> () const</h3>
<p>Saves the current state of this header view.</p>
<p>To restore the saved state, pass the return value to <a href="qheaderview.html#restoreState">restoreState</a>().</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qheaderview.html#restoreState">restoreState</a>().</p>
<!-- @@@saveState -->
<!-- $$$sectionAutoResize[overload1]$$$sectionAutoResizeintQHeaderView::ResizeMode -->
<h3 class="fn"><a name="sectionAutoResize"></a><span class="type">void</span> QHeaderView::<span class="name">sectionAutoResize</span> ( <span class="type">int</span> <i>logicalIndex</i>, <span class="type"><a href="qheaderview.html#ResizeMode-enum">QHeaderView::ResizeMode</a></span> <i>mode</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when a section is automatically resized. The section's logical index is specified by <i>logicalIndex</i>, and the resize mode by <i>mode</i>.</p>
<p><b>See also </b><a href="qheaderview.html#setResizeMode">setResizeMode</a>() and <a href="qheaderview.html#stretchLastSection-prop">stretchLastSection</a>().</p>
<!-- @@@sectionAutoResize -->
<!-- $$$sectionClicked[overload1]$$$sectionClickedint -->
<h3 class="fn"><a name="sectionClicked"></a><span class="type">void</span> QHeaderView::<span class="name">sectionClicked</span> ( <span class="type">int</span> <i>logicalIndex</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when a section is clicked. The section's logical index is specified by <i>logicalIndex</i>.</p>
<p>Note that the sectionPressed signal will also be emitted.</p>
<p><b>See also </b><a href="qheaderview.html#setClickable">setClickable</a>() and <a href="qheaderview.html#sectionPressed">sectionPressed</a>().</p>
<!-- @@@sectionClicked -->
<!-- $$$sectionCountChanged[overload1]$$$sectionCountChangedintint -->
<h3 class="fn"><a name="sectionCountChanged"></a><span class="type">void</span> QHeaderView::<span class="name">sectionCountChanged</span> ( <span class="type">int</span> <i>oldCount</i>, <span class="type">int</span> <i>newCount</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the number of sections changes, i.e&#x2e;, when sections are added or deleted. The original count is specified by <i>oldCount</i>, and the new count by <i>newCount</i>.</p>
<p><b>See also </b><a href="qheaderview.html#count">count</a>(), <a href="qheaderview.html#length">length</a>(), and <a href="qheaderview.html#headerDataChanged">headerDataChanged</a>().</p>
<!-- @@@sectionCountChanged -->
<!-- $$$sectionDoubleClicked[overload1]$$$sectionDoubleClickedint -->
<h3 class="fn"><a name="sectionDoubleClicked"></a><span class="type">void</span> QHeaderView::<span class="name">sectionDoubleClicked</span> ( <span class="type">int</span> <i>logicalIndex</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when a section is double-clicked. The section's logical index is specified by <i>logicalIndex</i>.</p>
<p><b>See also </b><a href="qheaderview.html#setClickable">setClickable</a>().</p>
<!-- @@@sectionDoubleClicked -->
<!-- $$$sectionEntered[overload1]$$$sectionEnteredint -->
<h3 class="fn"><a name="sectionEntered"></a><span class="type">void</span> QHeaderView::<span class="name">sectionEntered</span> ( <span class="type">int</span> <i>logicalIndex</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the cursor moves over the section and the left mouse button is pressed. The section's logical index is specified by <i>logicalIndex</i>.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qheaderview.html#setClickable">setClickable</a>() and <a href="qheaderview.html#sectionPressed">sectionPressed</a>().</p>
<!-- @@@sectionEntered -->
<!-- $$$sectionHandleDoubleClicked[overload1]$$$sectionHandleDoubleClickedint -->
<h3 class="fn"><a name="sectionHandleDoubleClicked"></a><span class="type">void</span> QHeaderView::<span class="name">sectionHandleDoubleClicked</span> ( <span class="type">int</span> <i>logicalIndex</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when a section is double-clicked. The section's logical index is specified by <i>logicalIndex</i>.</p>
<p><b>See also </b><a href="qheaderview.html#setClickable">setClickable</a>().</p>
<!-- @@@sectionHandleDoubleClicked -->
<!-- $$$sectionMoved[overload1]$$$sectionMovedintintint -->
<h3 class="fn"><a name="sectionMoved"></a><span class="type">void</span> QHeaderView::<span class="name">sectionMoved</span> ( <span class="type">int</span> <i>logicalIndex</i>, <span class="type">int</span> <i>oldVisualIndex</i>, <span class="type">int</span> <i>newVisualIndex</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when a section is moved. The section's logical index is specified by <i>logicalIndex</i>, the old index by <i>oldVisualIndex</i>, and the new index position by <i>newVisualIndex</i>.</p>
<p><b>See also </b><a href="qheaderview.html#moveSection">moveSection</a>().</p>
<!-- @@@sectionMoved -->
<!-- $$$sectionPosition[overload1]$$$sectionPositionint -->
<h3 class="fn"><a name="sectionPosition"></a><span class="type">int</span> QHeaderView::<span class="name">sectionPosition</span> ( <span class="type">int</span> <i>logicalIndex</i> ) const</h3>
<p>Returns the section position of the given <i>logicalIndex</i>, or -1 if the section is hidden. The position is measured in pixels from the first visible item's top-left corner to the top-left corner of the item with <i>logicalIndex</i>. The measurement is along the x-axis for horizontal headers and along the y-axis for vertical headers.</p>
<p><b>See also </b><a href="qheaderview.html#sectionViewportPosition">sectionViewportPosition</a>().</p>
<!-- @@@sectionPosition -->
<!-- $$$sectionPressed[overload1]$$$sectionPressedint -->
<h3 class="fn"><a name="sectionPressed"></a><span class="type">void</span> QHeaderView::<span class="name">sectionPressed</span> ( <span class="type">int</span> <i>logicalIndex</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when a section is pressed. The section's logical index is specified by <i>logicalIndex</i>.</p>
<p><b>See also </b><a href="qheaderview.html#setClickable">setClickable</a>().</p>
<!-- @@@sectionPressed -->
<!-- $$$sectionResized[overload1]$$$sectionResizedintintint -->
<h3 class="fn"><a name="sectionResized"></a><span class="type">void</span> QHeaderView::<span class="name">sectionResized</span> ( <span class="type">int</span> <i>logicalIndex</i>, <span class="type">int</span> <i>oldSize</i>, <span class="type">int</span> <i>newSize</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when a section is resized. The section's logical number is specified by <i>logicalIndex</i>, the old size by <i>oldSize</i>, and the new size by <i>newSize</i>.</p>
<p><b>See also </b><a href="qheaderview.html#resizeSection">resizeSection</a>().</p>
<!-- @@@sectionResized -->
<!-- $$$sectionSize[overload1]$$$sectionSizeint -->
<h3 class="fn"><a name="sectionSize"></a><span class="type">int</span> QHeaderView::<span class="name">sectionSize</span> ( <span class="type">int</span> <i>logicalIndex</i> ) const</h3>
<p>Returns the width (or height for vertical headers) of the given <i>logicalIndex</i>.</p>
<p><b>See also </b><a href="qheaderview.html#length">length</a>(), <a href="qheaderview.html#setResizeMode">setResizeMode</a>(), and <a href="qheaderview.html#defaultSectionSize-prop">defaultSectionSize</a>().</p>
<!-- @@@sectionSize -->
<!-- $$$sectionSizeFromContents[overload1]$$$sectionSizeFromContentsint -->
<h3 class="fn"><a name="sectionSizeFromContents"></a><span class="type"><a href="qsize.html">QSize</a></span> QHeaderView::<span class="name">sectionSizeFromContents</span> ( <span class="type">int</span> <i>logicalIndex</i> ) const<tt> [virtual protected]</tt></h3>
<p>Returns the size of the contents of the section specified by the given <i>logicalIndex</i>.</p>
<p><b>See also </b><a href="qheaderview.html#defaultSectionSize-prop">defaultSectionSize</a>().</p>
<!-- @@@sectionSizeFromContents -->
<!-- $$$sectionSizeHint[overload1]$$$sectionSizeHintint -->
<h3 class="fn"><a name="sectionSizeHint"></a><span class="type">int</span> QHeaderView::<span class="name">sectionSizeHint</span> ( <span class="type">int</span> <i>logicalIndex</i> ) const</h3>
<p>Returns a suitable size hint for the section specified by <i>logicalIndex</i>.</p>
<p><b>See also </b><a href="qheaderview.html#sizeHint">sizeHint</a>(), <a href="qheaderview.html#defaultSectionSize-prop">defaultSectionSize</a>(), <a href="qheaderview.html#minimumSectionSize-prop">minimumSectionSize</a>(), and <a href="qt.html#ItemDataRole-enum">Qt::SizeHintRole</a>.</p>
<!-- @@@sectionSizeHint -->
<!-- $$$sectionViewportPosition[overload1]$$$sectionViewportPositionint -->
<h3 class="fn"><a name="sectionViewportPosition"></a><span class="type">int</span> QHeaderView::<span class="name">sectionViewportPosition</span> ( <span class="type">int</span> <i>logicalIndex</i> ) const</h3>
<p>Returns the section viewport position of the given <i>logicalIndex</i>.</p>
<p>If the section is hidden, the return value is undefined.</p>
<p><b>See also </b><a href="qheaderview.html#sectionPosition">sectionPosition</a>() and <a href="qheaderview.html#isSectionHidden">isSectionHidden</a>().</p>
<!-- @@@sectionViewportPosition -->
<!-- $$$sectionsAboutToBeRemoved[overload1]$$$sectionsAboutToBeRemovedconstQModelIndex&intint -->
<h3 class="fn"><a name="sectionsAboutToBeRemoved"></a><span class="type">void</span> QHeaderView::<span class="name">sectionsAboutToBeRemoved</span> ( const <span class="type"><a href="qmodelindex.html">QModelIndex</a></span> &amp; <i>parent</i>, <span class="type">int</span> <i>logicalFirst</i>, <span class="type">int</span> <i>logicalLast</i> )<tt> [protected slot]</tt></h3>
<p>This slot is called when sections are removed from the <i>parent</i>. <i>logicalFirst</i> and <i>logicalLast</i> signify where the sections were removed.</p>
<p>If only one section is removed, <i>logicalFirst</i> and <i>logicalLast</i> will be the same.</p>
<!-- @@@sectionsAboutToBeRemoved -->
<!-- $$$sectionsHidden[overload1]$$$sectionsHidden -->
<h3 class="fn"><a name="sectionsHidden"></a><span class="type">bool</span> QHeaderView::<span class="name">sectionsHidden</span> () const</h3>
<p>Returns true if sections in the header has been hidden; otherwise returns false;</p>
<p>This function was introduced in Qt 4.1.</p>
<p><b>See also </b><a href="qheaderview.html#setSectionHidden">setSectionHidden</a>().</p>
<!-- @@@sectionsHidden -->
<!-- $$$sectionsInserted[overload1]$$$sectionsInsertedconstQModelIndex&intint -->
<h3 class="fn"><a name="sectionsInserted"></a><span class="type">void</span> QHeaderView::<span class="name">sectionsInserted</span> ( const <span class="type"><a href="qmodelindex.html">QModelIndex</a></span> &amp; <i>parent</i>, <span class="type">int</span> <i>logicalFirst</i>, <span class="type">int</span> <i>logicalLast</i> )<tt> [protected slot]</tt></h3>
<p>This slot is called when sections are inserted into the <i>parent</i>. <i>logicalFirst</i> and <i>logicalLast</i> indices signify where the new sections were inserted.</p>
<p>If only one section is inserted, <i>logicalFirst</i> and <i>logicalLast</i> will be the same.</p>
<!-- @@@sectionsInserted -->
<!-- $$$sectionsMoved[overload1]$$$sectionsMoved -->
<h3 class="fn"><a name="sectionsMoved"></a><span class="type">bool</span> QHeaderView::<span class="name">sectionsMoved</span> () const</h3>
<p>Returns true if sections in the header has been moved; otherwise returns false;</p>
<p><b>See also </b><a href="qheaderview.html#moveSection">moveSection</a>().</p>
<!-- @@@sectionsMoved -->
<!-- $$$setClickable[overload1]$$$setClickablebool -->
<h3 class="fn"><a name="setClickable"></a><span class="type">void</span> QHeaderView::<span class="name">setClickable</span> ( <span class="type">bool</span> <i>clickable</i> )</h3>
<p>If <i>clickable</i> is true, the header will respond to single clicks.</p>
<p><b>See also </b><a href="qheaderview.html#isClickable">isClickable</a>(), <a href="qheaderview.html#sectionClicked">sectionClicked</a>(), <a href="qheaderview.html#sectionPressed">sectionPressed</a>(), and <a href="qheaderview.html#showSortIndicator-prop">setSortIndicatorShown</a>().</p>
<!-- @@@setClickable -->
<!-- $$$setModel[overload1]$$$setModelQAbstractItemModel* -->
<h3 class="fn"><a name="setModel"></a><span class="type">void</span> QHeaderView::<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 -->
<!-- $$$setMovable[overload1]$$$setMovablebool -->
<h3 class="fn"><a name="setMovable"></a><span class="type">void</span> QHeaderView::<span class="name">setMovable</span> ( <span class="type">bool</span> <i>movable</i> )</h3>
<p>If <i>movable</i> is true, the header may be moved by the user; otherwise it is fixed in place.</p>
<p><b>See also </b><a href="qheaderview.html#isMovable">isMovable</a>() and <a href="qheaderview.html#sectionMoved">sectionMoved</a>().</p>
<!-- @@@setMovable -->
<!-- $$$setOffset[overload1]$$$setOffsetint -->
<h3 class="fn"><a name="setOffset"></a><span class="type">void</span> QHeaderView::<span class="name">setOffset</span> ( <span class="type">int</span> <i>offset</i> )<tt> [slot]</tt></h3>
<p>Sets the header's offset to <i>offset</i>.</p>
<p><b>See also </b><a href="qheaderview.html#offset">offset</a>() and <a href="qheaderview.html#length">length</a>().</p>
<!-- @@@setOffset -->
<!-- $$$setOffsetToLastSection[overload1]$$$setOffsetToLastSection -->
<h3 class="fn"><a name="setOffsetToLastSection"></a><span class="type">void</span> QHeaderView::<span class="name">setOffsetToLastSection</span> ()<tt> [slot]</tt></h3>
<p>Sets the offset to make the last section visible.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also </b><a href="qheaderview.html#setOffset">setOffset</a>(), <a href="qheaderview.html#sectionPosition">sectionPosition</a>(), and <a href="qheaderview.html#setOffsetToSectionPosition">setOffsetToSectionPosition</a>().</p>
<!-- @@@setOffsetToLastSection -->
<!-- $$$setOffsetToSectionPosition[overload1]$$$setOffsetToSectionPositionint -->
<h3 class="fn"><a name="setOffsetToSectionPosition"></a><span class="type">void</span> QHeaderView::<span class="name">setOffsetToSectionPosition</span> ( <span class="type">int</span> <i>visualIndex</i> )<tt> [slot]</tt></h3>
<p>Sets the offset to the start of the section at the given <i>visualIndex</i>.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also </b><a href="qheaderview.html#setOffset">setOffset</a>() and <a href="qheaderview.html#sectionPosition">sectionPosition</a>().</p>
<!-- @@@setOffsetToSectionPosition -->
<!-- $$$setResizeMode[overload1]$$$setResizeModeResizeMode -->
<h3 class="fn"><a name="setResizeMode"></a><span class="type">void</span> QHeaderView::<span class="name">setResizeMode</span> ( <span class="type"><a href="qheaderview.html#ResizeMode-enum">ResizeMode</a></span> <i>mode</i> )</h3>
<p>Sets the constraints on how the header can be resized to those described by the given <i>mode</i>.</p>
<p><b>See also </b><a href="qheaderview.html#resizeMode">resizeMode</a>(), <a href="qheaderview.html#length">length</a>(), <a href="qheaderview.html#sectionResized">sectionResized</a>(), and <a href="qheaderview.html#sectionAutoResize">sectionAutoResize</a>().</p>
<!-- @@@setResizeMode -->
<!-- $$$setResizeMode$$$setResizeModeintResizeMode -->
<h3 class="fn"><a name="setResizeMode-2"></a><span class="type">void</span> QHeaderView::<span class="name">setResizeMode</span> ( <span class="type">int</span> <i>logicalIndex</i>, <span class="type"><a href="qheaderview.html#ResizeMode-enum">ResizeMode</a></span> <i>mode</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the constraints on how the section specified by <i>logicalIndex</i> in the header can be resized to those described by the given <i>mode</i>. The logical index should exist at the time this function is called.</p>
<p><b>Note:</b> This setting will be ignored for the last section if the <a href="qheaderview.html#stretchLastSection-prop">stretchLastSection</a> property is set to true. This is the default for the horizontal headers provided by <a href="qtreeview.html">QTreeView</a>.</p>
<p><b>See also </b><a href="qheaderview.html#stretchLastSection-prop">setStretchLastSection</a>().</p>
<!-- @@@setResizeMode -->
<!-- $$$setSectionHidden[overload1]$$$setSectionHiddenintbool -->
<h3 class="fn"><a name="setSectionHidden"></a><span class="type">void</span> QHeaderView::<span class="name">setSectionHidden</span> ( <span class="type">int</span> <i>logicalIndex</i>, <span class="type">bool</span> <i>hide</i> )</h3>
<p>If <i>hide</i> is true the section specified by <i>logicalIndex</i> is hidden; otherwise the section is shown.</p>
<p><b>See also </b><a href="qheaderview.html#isSectionHidden">isSectionHidden</a>() and <a href="qheaderview.html#hiddenSectionCount">hiddenSectionCount</a>().</p>
<!-- @@@setSectionHidden -->
<!-- $$$setSelection[overload1]$$$setSelectionconstQRect&QItemSelectionModel::SelectionFlags -->
<h3 class="fn"><a name="setSelection"></a><span class="type">void</span> QHeaderView::<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 in the given <i>rect</i> according to the specified <i>flags</i>.</p>
<p>The base class implementation does nothing.</p>
<!-- @@@setSelection -->
<!-- $$$setSortIndicator[overload1]$$$setSortIndicatorintQt::SortOrder -->
<h3 class="fn"><a name="setSortIndicator"></a><span class="type">void</span> QHeaderView::<span class="name">setSortIndicator</span> ( <span class="type">int</span> <i>logicalIndex</i>, <span class="type"><a href="qt.html#SortOrder-enum">Qt::SortOrder</a></span> <i>order</i> )</h3>
<p>Sets the sort indicator for the section specified by the given <i>logicalIndex</i> in the direction specified by <i>order</i>, and removes the sort indicator from any other section that was showing it.</p>
<p><i>logicalIndex</i> may be -1, in which case no sort indicator will be shown and the model will return to its natural, unsorted order. Note that not all models support this and may even crash in this case.</p>
<p><b>See also </b><a href="qheaderview.html#sortIndicatorSection">sortIndicatorSection</a>() and <a href="qheaderview.html#sortIndicatorOrder">sortIndicatorOrder</a>().</p>
<!-- @@@setSortIndicator -->
<!-- $$$showSection[overload1]$$$showSectionint -->
<h3 class="fn"><a name="showSection"></a><span class="type">void</span> QHeaderView::<span class="name">showSection</span> ( <span class="type">int</span> <i>logicalIndex</i> )</h3>
<p>Shows the section specified by <i>logicalIndex</i>.</p>
<p><b>See also </b><a href="qheaderview.html#hideSection">hideSection</a>(), <a href="qheaderview.html#isSectionHidden">isSectionHidden</a>(), <a href="qheaderview.html#hiddenSectionCount">hiddenSectionCount</a>(), and <a href="qheaderview.html#setSectionHidden">setSectionHidden</a>().</p>
<!-- @@@showSection -->
<!-- $$$sizeHint[overload1]$$$sizeHint -->
<h3 class="fn"><a name="sizeHint"></a><span class="type"><a href="qsize.html">QSize</a></span> QHeaderView::<span class="name">sizeHint</span> () const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#sizeHint-prop">QWidget::sizeHint</a>().</p>
<p>Returns a suitable size hint for this header.</p>
<p><b>See also </b><a href="qheaderview.html#sectionSizeHint">sectionSizeHint</a>().</p>
<!-- @@@sizeHint -->
<!-- $$$sortIndicatorChanged[overload1]$$$sortIndicatorChangedintQt::SortOrder -->
<h3 class="fn"><a name="sortIndicatorChanged"></a><span class="type">void</span> QHeaderView::<span class="name">sortIndicatorChanged</span> ( <span class="type">int</span> <i>logicalIndex</i>, <span class="type"><a href="qt.html#SortOrder-enum">Qt::SortOrder</a></span> <i>order</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the section containing the sort indicator or the order indicated is changed. The section's logical index is specified by <i>logicalIndex</i> and the sort order is specified by <i>order</i>.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qheaderview.html#setSortIndicator">setSortIndicator</a>().</p>
<!-- @@@sortIndicatorChanged -->
<!-- $$$sortIndicatorOrder[overload1]$$$sortIndicatorOrder -->
<h3 class="fn"><a name="sortIndicatorOrder"></a><span class="type"><a href="qt.html#SortOrder-enum">Qt::SortOrder</a></span> QHeaderView::<span class="name">sortIndicatorOrder</span> () const</h3>
<p>Returns the order for the sort indicator. If no section has a sort indicator the return value of this function is undefined.</p>
<p><b>See also </b><a href="qheaderview.html#setSortIndicator">setSortIndicator</a>() and <a href="qheaderview.html#sortIndicatorSection">sortIndicatorSection</a>().</p>
<!-- @@@sortIndicatorOrder -->
<!-- $$$sortIndicatorSection[overload1]$$$sortIndicatorSection -->
<h3 class="fn"><a name="sortIndicatorSection"></a><span class="type">int</span> QHeaderView::<span class="name">sortIndicatorSection</span> () const</h3>
<p>Returns the logical index of the section that has a sort indicator. By default this is section 0.</p>
<p><b>See also </b><a href="qheaderview.html#setSortIndicator">setSortIndicator</a>(), <a href="qheaderview.html#sortIndicatorOrder">sortIndicatorOrder</a>(), and <a href="qheaderview.html#showSortIndicator-prop">setSortIndicatorShown</a>().</p>
<!-- @@@sortIndicatorSection -->
<!-- $$$stretchSectionCount[overload1]$$$stretchSectionCount -->
<h3 class="fn"><a name="stretchSectionCount"></a><span class="type">int</span> QHeaderView::<span class="name">stretchSectionCount</span> () const</h3>
<p>Returns the number of sections that are set to resize mode stretch. In views, this can be used to see if the headerview needs to resize the sections when the view's geometry changes.</p>
<p>This function was introduced in Qt 4.1.</p>
<p><b>See also </b><a href="qheaderview.html#stretchLastSection-prop">stretchLastSection</a> and <a href="qheaderview.html#resizeMode">resizeMode</a>().</p>
<!-- @@@stretchSectionCount -->
<!-- $$$swapSections[overload1]$$$swapSectionsintint -->
<h3 class="fn"><a name="swapSections"></a><span class="type">void</span> QHeaderView::<span class="name">swapSections</span> ( <span class="type">int</span> <i>first</i>, <span class="type">int</span> <i>second</i> )</h3>
<p>Swaps the section at visual index <i>first</i> with the section at visual index <i>second</i>.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also </b><a href="qheaderview.html#moveSection">moveSection</a>().</p>
<!-- @@@swapSections -->
<!-- $$$verticalOffset[overload1]$$$verticalOffset -->
<h3 class="fn"><a name="verticalOffset"></a><span class="type">int</span> QHeaderView::<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 header. This is 0 for horizontal headers.</p>
<p><b>See also </b><a href="qheaderview.html#offset">offset</a>().</p>
<!-- @@@verticalOffset -->
<!-- $$$viewportEvent[overload1]$$$viewportEventQEvent* -->
<h3 class="fn"><a name="viewportEvent"></a><span class="type">bool</span> QHeaderView::<span class="name">viewportEvent</span> ( <span class="type"><a href="qevent.html">QEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractscrollarea.html#viewportEvent">QAbstractScrollArea::viewportEvent</a>().</p>
<!-- @@@viewportEvent -->
<!-- $$$visualIndex[overload1]$$$visualIndexint -->
<h3 class="fn"><a name="visualIndex"></a><span class="type">int</span> QHeaderView::<span class="name">visualIndex</span> ( <span class="type">int</span> <i>logicalIndex</i> ) const</h3>
<p>Returns the visual index position of the section specified by the given <i>logicalIndex</i>, or -1 otherwise.</p>
<p>Hidden sections still have valid visual indexes.</p>
<p><b>See also </b><a href="qheaderview.html#logicalIndex">logicalIndex</a>().</p>
<!-- @@@visualIndex -->
<!-- $$$visualIndexAt[overload1]$$$visualIndexAtint -->
<h3 class="fn"><a name="visualIndexAt"></a><span class="type">int</span> QHeaderView::<span class="name">visualIndexAt</span> ( <span class="type">int</span> <i>position</i> ) const</h3>
<p>Returns the visual index of the section that covers the given <i>position</i> in the viewport.</p>
<p><b>See also </b><a href="qheaderview.html#logicalIndexAt">logicalIndexAt</a>().</p>
<!-- @@@visualIndexAt -->
</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>