Sophie

Sophie

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

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" />
<!-- qabstractspinbox.cpp -->
  <title>Qt 4.8: QAbstractSpinBox 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>QAbstractSpinBox</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="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QAbstractSpinBox Class Reference</h1>
<!-- $$$QAbstractSpinBox-brief -->
<p>The QAbstractSpinBox class provides a spinbox and a line edit to display values. <a href="#details">More...</a></p>
<!-- @@@QAbstractSpinBox -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QAbstractSpinBox&gt;</span></pre><p><b>Inherits: </b><a href="qwidget.html">QWidget</a>.</p>
<p><b>Inherited by: </b><a href="qdatetimeedit.html">QDateTimeEdit</a>, <a href="qdoublespinbox.html">QDoubleSpinBox</a>, and <a href="qspinbox.html">QSpinBox</a>.</p>
<ul>
<li><a href="qabstractspinbox-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="qabstractspinbox.html#ButtonSymbols-enum">ButtonSymbols</a></b> { UpDownArrows, PlusMinus, NoButtons }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#CorrectionMode-enum">CorrectionMode</a></b> { CorrectToPreviousValue, CorrectToNearestValue }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> flags </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#StepEnabledFlag-enum">StepEnabled</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#StepEnabledFlag-enum">StepEnabledFlag</a></b> { StepNone, StepUpEnabled, StepDownEnabled }</td></tr>
</table>
<a name="properties"></a>
<h2>Properties</h2>
<table class="propsummary">
<tr><td class="topAlign"><ul>
<li class="fn"><b><a href="qabstractspinbox.html#accelerated-prop">accelerated</a></b> : bool</li>
<li class="fn"><b><a href="qabstractspinbox.html#acceptableInput-prop">acceptableInput</a></b> : const bool</li>
<li class="fn"><b><a href="qabstractspinbox.html#alignment-prop">alignment</a></b> : Qt::Alignment</li>
<li class="fn"><b><a href="qabstractspinbox.html#buttonSymbols-prop">buttonSymbols</a></b> : ButtonSymbols</li>
<li class="fn"><b><a href="qabstractspinbox.html#correctionMode-prop">correctionMode</a></b> : CorrectionMode</li>
<li class="fn"><b><a href="qabstractspinbox.html#frame-prop">frame</a></b> : bool</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="qabstractspinbox.html#keyboardTracking-prop">keyboardTracking</a></b> : bool</li>
<li class="fn"><b><a href="qabstractspinbox.html#readOnly-prop">readOnly</a></b> : bool</li>
<li class="fn"><b><a href="qabstractspinbox.html#specialValueText-prop">specialValueText</a></b> : QString</li>
<li class="fn"><b><a href="qabstractspinbox.html#text-prop">text</a></b> : const QString</li>
<li class="fn"><b><a href="qabstractspinbox.html#wrapping-prop">wrapping</a></b> : bool</li>
</ul>
</td></tr>
</table>
<ul>
<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="qabstractspinbox.html#QAbstractSpinBox">QAbstractSpinBox</a></b> ( QWidget * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#dtor.QAbstractSpinBox">~QAbstractSpinBox</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::Alignment </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#alignment-prop">alignment</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> ButtonSymbols </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#buttonSymbols-prop">buttonSymbols</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> CorrectionMode </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#correctionMode-prop">correctionMode</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#fixup">fixup</a></b> ( QString &amp; <i>input</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#acceptableInput-prop">hasAcceptableInput</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#frame-prop">hasFrame</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#interpretText">interpretText</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#accelerated-prop">isAccelerated</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#readOnly-prop">isReadOnly</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#keyboardTracking-prop">keyboardTracking</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#accelerated-prop">setAccelerated</a></b> ( bool <i>on</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#alignment-prop">setAlignment</a></b> ( Qt::Alignment <i>flag</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#buttonSymbols-prop">setButtonSymbols</a></b> ( ButtonSymbols <i>bs</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#correctionMode-prop">setCorrectionMode</a></b> ( CorrectionMode <i>cm</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#frame-prop">setFrame</a></b> ( bool )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#keyboardTracking-prop">setKeyboardTracking</a></b> ( bool <i>kt</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#readOnly-prop">setReadOnly</a></b> ( bool <i>r</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#specialValueText-prop">setSpecialValueText</a></b> ( const QString &amp; <i>txt</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#wrapping-prop">setWrapping</a></b> ( bool <i>w</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#specialValueText-prop">specialValueText</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#stepBy">stepBy</a></b> ( int <i>steps</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#text-prop">text</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QValidator::State </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#validate">validate</a></b> ( QString &amp; <i>input</i>, int &amp; <i>pos</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#wrapping-prop">wrapping</a></b> () const</td></tr>
</table>
<a name="reimplemented-public-functions"></a>
<h2>Reimplemented Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#event">event</a></b> ( QEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QVariant </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#inputMethodQuery">inputMethodQuery</a></b> ( Qt::InputMethodQuery <i>query</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSize </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#minimumSizeHint">minimumSizeHint</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSize </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#sizeHint">sizeHint</a></b> () const</td></tr>
</table>
<ul>
<li class="fn">221 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
<li class="fn">29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
<li class="fn">13 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<a name="public-slots"></a>
<h2>Public Slots</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#clear">clear</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#selectAll">selectAll</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#stepDown">stepDown</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#stepUp">stepUp</a></b> ()</td></tr>
</table>
<ul>
<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="qabstractspinbox.html#editingFinished">editingFinished</a></b> ()</td></tr>
</table>
<ul>
<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="qabstractspinbox.html#initStyleOption">initStyleOption</a></b> ( QStyleOptionSpinBox * <i>option</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QLineEdit * </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#lineEdit">lineEdit</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#setLineEdit">setLineEdit</a></b> ( QLineEdit * <i>lineEdit</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual StepEnabled </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#stepEnabled">stepEnabled</a></b> () 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="qabstractspinbox.html#changeEvent">changeEvent</a></b> ( QEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#closeEvent">closeEvent</a></b> ( QCloseEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#contextMenuEvent">contextMenuEvent</a></b> ( QContextMenuEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#focusInEvent">focusInEvent</a></b> ( QFocusEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#focusOutEvent">focusOutEvent</a></b> ( QFocusEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#hideEvent">hideEvent</a></b> ( QHideEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#keyPressEvent">keyPressEvent</a></b> ( QKeyEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#keyReleaseEvent">keyReleaseEvent</a></b> ( QKeyEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#mouseMoveEvent">mouseMoveEvent</a></b> ( QMouseEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#mousePressEvent">mousePressEvent</a></b> ( QMouseEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#mouseReleaseEvent">mouseReleaseEvent</a></b> ( QMouseEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#paintEvent">paintEvent</a></b> ( QPaintEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#resizeEvent">resizeEvent</a></b> ( QResizeEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#showEvent">showEvent</a></b> ( QShowEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#timerEvent">timerEvent</a></b> ( QTimerEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstractspinbox.html#wheelEvent">wheelEvent</a></b> ( QWheelEvent * <i>event</i> )</td></tr>
</table>
<ul>
<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>
<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>
<li class="fn">1 protected slot inherited from <a href="qwidget.html#protected-slots">QWidget</a></li>
</ul>
<a name="details"></a>
<!-- $$$QAbstractSpinBox-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QAbstractSpinBox class provides a spinbox and a line edit to display values.</p>
<p>The class is designed as a common super class for widgets like <a href="qspinbox.html">QSpinBox</a>, <a href="qdoublespinbox.html">QDoubleSpinBox</a> and <a href="qdatetimeedit.html">QDateTimeEdit</a></p>
<p>Here are the main properties of the class:</p>
<ol class="1">
<li><a href="qabstractspinbox.html#text-prop">text</a>: The text that is displayed in the QAbstractSpinBox.</li>
<li><a href="qabstractspinbox.html#alignment-prop">alignment</a>: The alignment of the text in the QAbstractSpinBox.</li>
<li><a href="qabstractspinbox.html#wrapping-prop">wrapping</a>: Whether the QAbstractSpinBox wraps from the minimum value to the maximum value and vica versa.</li>
</ol>
<p>QAbstractSpinBox provides a virtual <a href="qabstractspinbox.html#stepBy">stepBy</a>() function that is called whenever the user triggers a step. This function takes an integer value to signify how many steps were taken. E.g&#x2e; Pressing <a href="qt.html#Key-enum">Qt::Key_Down</a> will trigger a call to stepBy(-1).</p>
<p>QAbstractSpinBox also provide a virtual function <a href="qabstractspinbox.html#stepEnabled">stepEnabled</a>() to determine whether stepping up/down is allowed at any point. This function returns a bitset of <a href="qabstractspinbox.html#StepEnabledFlag-enum">StepEnabled</a>.</p>
</div>
<p><b>See also </b><a href="qabstractslider.html">QAbstractSlider</a>, <a href="qspinbox.html">QSpinBox</a>, <a href="qdoublespinbox.html">QDoubleSpinBox</a>, <a href="qdatetimeedit.html">QDateTimeEdit</a>, and <a href="widgets-spinboxes.html">Spin Boxes Example</a>.</p>
<!-- @@@QAbstractSpinBox -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$ButtonSymbols$$$UpDownArrows$$$PlusMinus$$$NoButtons -->
<h3 class="fn"><a name="ButtonSymbols-enum"></a>enum QAbstractSpinBox::<span class="name">ButtonSymbols</span></h3>
<p>This enum type describes the symbols that can be displayed on the buttons in a spin box.</p>
<p><img src="images/qspinbox-updown.png" alt="" /> <img src="images/qspinbox-plusminus.png" alt="" /></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>QAbstractSpinBox::UpDownArrows</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">Little arrows in the classic style.</td></tr>
<tr><td class="topAlign"><tt>QAbstractSpinBox::PlusMinus</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign"><b>+</b> and <b>-</b> symbols.</td></tr>
<tr><td class="topAlign"><tt>QAbstractSpinBox::NoButtons</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">Don't display buttons.</td></tr>
</table>
<p><b>See also </b><a href="qabstractspinbox.html#buttonSymbols-prop">QAbstractSpinBox::buttonSymbols</a>.</p>
<!-- @@@ButtonSymbols -->
<!-- $$$CorrectionMode$$$CorrectToPreviousValue$$$CorrectToNearestValue -->
<h3 class="fn"><a name="CorrectionMode-enum"></a>enum QAbstractSpinBox::<span class="name">CorrectionMode</span></h3>
<p>This enum type describes the mode the spinbox will use to correct an <a href="qvalidator.html#State-enum">Intermediate</a> value if editing finishes.</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>QAbstractSpinBox::CorrectToPreviousValue</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The spinbox will revert to the last valid value.</td></tr>
<tr><td class="topAlign"><tt>QAbstractSpinBox::CorrectToNearestValue</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The spinbox will revert to the nearest valid value.</td></tr>
</table>
<p><b>See also </b><a href="qabstractspinbox.html#correctionMode-prop">correctionMode</a>.</p>
<!-- @@@CorrectionMode -->
<!-- $$$StepEnabledFlag$$$StepNone$$$StepUpEnabled$$$StepDownEnabled -->
<h3 class="flags"><a name="StepEnabledFlag-enum"></a>enum QAbstractSpinBox::<span class="name">StepEnabledFlag</span><br/>flags QAbstractSpinBox::<span class="name">StepEnabled</span></h3>
<table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><tt>QAbstractSpinBox::StepNone</tt></td><td class="topAlign"><tt>0x00</tt></td></tr>
<tr><td class="topAlign"><tt>QAbstractSpinBox::StepUpEnabled</tt></td><td class="topAlign"><tt>0x01</tt></td></tr>
<tr><td class="topAlign"><tt>QAbstractSpinBox::StepDownEnabled</tt></td><td class="topAlign"><tt>0x02</tt></td></tr>
</table>
<p>The StepEnabled type is a typedef for <a href="qflags.html">QFlags</a>&lt;StepEnabledFlag&gt;. It stores an OR combination of StepEnabledFlag values.</p>
<!-- @@@StepEnabledFlag -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$accelerated-prop$$$isAccelerated$$$setAcceleratedbool -->
<h3 class="fn"><a name="accelerated-prop"></a><span class="name">accelerated</span> : <span class="type">bool</span></h3>
<p>This property holds whether the spin box will accelerate the frequency of the steps when pressing the step Up/Down buttons.</p>
<p>If enabled the spin box will increase/decrease the value faster the longer you hold the button down.</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>isAccelerated</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAccelerated</b></span> ( bool <i>on</i> )</td></tr>
</table>
<!-- @@@accelerated -->
<!-- $$$acceptableInput-prop$$$hasAcceptableInput -->
<h3 class="fn"><a name="acceptableInput-prop"></a><span class="name">acceptableInput</span> : const <span class="type">bool</span></h3>
<p>This property holds whether the input satisfies the current validation.</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>hasAcceptableInput</b></span> () const</td></tr>
</table>
<p><b>See also </b><a href="qabstractspinbox.html#validate">validate</a>(), <a href="qabstractspinbox.html#fixup">fixup</a>(), and <a href="qabstractspinbox.html#correctionMode-prop">correctionMode</a>.</p>
<!-- @@@acceptableInput -->
<!-- $$$alignment-prop$$$alignment$$$setAlignmentQt::Alignment -->
<h3 class="fn"><a name="alignment-prop"></a><span class="name">alignment</span> : <span class="type"><a href="qt.html#AlignmentFlag-enum">Qt::Alignment</a></span></h3>
<p>This property holds the alignment of the spin box.</p>
<p>Possible Values are <a href="qt.html#AlignmentFlag-enum">Qt::AlignLeft</a>, <a href="qt.html#AlignmentFlag-enum">Qt::AlignRight</a>, and <a href="qt.html#AlignmentFlag-enum">Qt::AlignHCenter</a>.</p>
<p>By default, the alignment is <a href="qt.html#AlignmentFlag-enum">Qt::AlignLeft</a></p>
<p>Attempting to set the alignment to an illegal flag combination does nothing.</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>alignment</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAlignment</b></span> ( Qt::Alignment <i>flag</i> )</td></tr>
</table>
<p><b>See also </b><a href="qt.html#AlignmentFlag-enum">Qt::Alignment</a>.</p>
<!-- @@@alignment -->
<!-- $$$buttonSymbols-prop$$$buttonSymbols$$$setButtonSymbolsButtonSymbols -->
<h3 class="fn"><a name="buttonSymbols-prop"></a><span class="name">buttonSymbols</span> : <span class="type"><a href="qabstractspinbox.html#ButtonSymbols-enum">ButtonSymbols</a></span></h3>
<p>This property holds the current button symbol mode.</p>
<p>The possible values can be either <tt>UpDownArrows</tt> or <tt>PlusMinus</tt>. The default is <tt>UpDownArrows</tt>.</p>
<p>Note that some styles might render <a href="qabstractspinbox.html#ButtonSymbols-enum">PlusMinus</a> and <a href="qabstractspinbox.html#ButtonSymbols-enum">UpDownArrows</a> identically.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> ButtonSymbols </td><td class="memItemRight bottomAlign"><span class="name"><b>buttonSymbols</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setButtonSymbols</b></span> ( ButtonSymbols <i>bs</i> )</td></tr>
</table>
<p><b>See also </b><a href="qabstractspinbox.html#ButtonSymbols-enum">ButtonSymbols</a>.</p>
<!-- @@@buttonSymbols -->
<!-- $$$correctionMode-prop$$$correctionMode$$$setCorrectionModeCorrectionMode -->
<h3 class="fn"><a name="correctionMode-prop"></a><span class="name">correctionMode</span> : <span class="type"><a href="qabstractspinbox.html#CorrectionMode-enum">CorrectionMode</a></span></h3>
<p>This property holds the mode to correct an Intermediate value if editing finishes.</p>
<p>The default mode is <a href="qabstractspinbox.html#CorrectionMode-enum">QAbstractSpinBox::CorrectToPreviousValue</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"> CorrectionMode </td><td class="memItemRight bottomAlign"><span class="name"><b>correctionMode</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCorrectionMode</b></span> ( CorrectionMode <i>cm</i> )</td></tr>
</table>
<p><b>See also </b><a href="qabstractspinbox.html#acceptableInput-prop">acceptableInput</a>, <a href="qabstractspinbox.html#validate">validate</a>(), and <a href="qabstractspinbox.html#fixup">fixup</a>().</p>
<!-- @@@correctionMode -->
<!-- $$$frame-prop$$$hasFrame$$$setFramebool -->
<h3 class="fn"><a name="frame-prop"></a><span class="name">frame</span> : <span class="type">bool</span></h3>
<p>This property holds whether the spin box draws itself with a frame.</p>
<p>If enabled (the default) the spin box draws itself inside a frame, otherwise the spin box draws itself without any frame.</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>hasFrame</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFrame</b></span> ( bool )</td></tr>
</table>
<!-- @@@frame -->
<!-- $$$keyboardTracking-prop$$$keyboardTracking$$$setKeyboardTrackingbool -->
<h3 class="fn"><a name="keyboardTracking-prop"></a><span class="name">keyboardTracking</span> : <span class="type">bool</span></h3>
<p>This property holds whether keyboard tracking is enabled for the spinbox.</p>
<p>If keyboard tracking is enabled (the default), the spinbox emits the valueChanged() signal while the new value is being entered from the keyboard.</p>
<p>E.g&#x2e; when the user enters the value 600 by typing 6, 0, and 0, the spinbox emits 3 signals with the values 6, 60, and 600 respectively.</p>
<p>If keyboard tracking is disabled, the spinbox doesn't emit the valueChanged() signal while typing. It emits the signal later, when the return key is pressed, when keyboard focus is lost, or when other spinbox functionality is used, e.g&#x2e; pressing an arrow key.</p>
<p>This property was introduced in Qt 4.3.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>keyboardTracking</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setKeyboardTracking</b></span> ( bool <i>kt</i> )</td></tr>
</table>
<!-- @@@keyboardTracking -->
<!-- $$$readOnly-prop$$$isReadOnly$$$setReadOnlybool -->
<h3 class="fn"><a name="readOnly-prop"></a><span class="name">readOnly</span> : <span class="type">bool</span></h3>
<p>This property holds whether the spin box is read only.</p>
<p>In read-only mode, the user can still copy the text to the clipboard, or drag and drop the text; but cannot edit it.</p>
<p>The <a href="qlineedit.html">QLineEdit</a> in the <a href="qabstractspinbox.html">QAbstractSpinBox</a> does not show a cursor in read-only mode.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isReadOnly</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setReadOnly</b></span> ( bool <i>r</i> )</td></tr>
</table>
<p><b>See also </b><a href="qlineedit.html#readOnly-prop">QLineEdit::readOnly</a>.</p>
<!-- @@@readOnly -->
<!-- $$$specialValueText-prop$$$specialValueText$$$setSpecialValueTextconstQString& -->
<h3 class="fn"><a name="specialValueText-prop"></a><span class="name">specialValueText</span> : <span class="type"><a href="qstring.html">QString</a></span></h3>
<p>This property holds the special-value text.</p>
<p>If set, the spin box will display this text instead of a numeric value whenever the current value is equal to minimum(). Typical use is to indicate that this choice has a special (default) meaning.</p>
<p>For example, if your spin box allows the user to choose a scale factor (or zoom level) for displaying an image, and your application is able to automatically choose one that will enable the image to fit completely within the display window, you can set up the spin box like this:</p>
<pre class="cpp">     <span class="type"><a href="qspinbox.html">QSpinBox</a></span> <span class="operator">*</span>zoomSpinBox <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qspinbox.html">QSpinBox</a></span>;
     zoomSpinBox<span class="operator">-</span><span class="operator">&gt;</span>setRange(<span class="number">0</span><span class="operator">,</span> <span class="number">1000</span>);
     zoomSpinBox<span class="operator">-</span><span class="operator">&gt;</span>setSingleStep(<span class="number">10</span>);
     zoomSpinBox<span class="operator">-</span><span class="operator">&gt;</span>setSuffix(<span class="string">&quot;%&quot;</span>);
     zoomSpinBox<span class="operator">-</span><span class="operator">&gt;</span>setSpecialValueText(tr(<span class="string">&quot;Automatic&quot;</span>));
     zoomSpinBox<span class="operator">-</span><span class="operator">&gt;</span>setValue(<span class="number">100</span>);</pre>
<p>The user will then be able to choose a scale from 1% to 1000% or select &quot;Auto&quot; to leave it up to the application to choose. Your code must then interpret the spin box value of 0 as a request from the user to scale the image to fit inside the window.</p>
<p>All values are displayed with the prefix and suffix (if set), <i>except</i> for the special value, which only shows the special value text. This special text is passed in the <a href="qspinbox.html#valueChanged">QSpinBox::valueChanged</a>() signal that passes a <a href="qstring.html">QString</a>.</p>
<p>To turn off the special-value text display, call this function with an empty string. The default is no special-value text, i.e&#x2e; the numeric value is shown as usual.</p>
<p>If no special-value text is set, specialValueText() returns an empty string.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>specialValueText</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpecialValueText</b></span> ( const QString &amp; <i>txt</i> )</td></tr>
</table>
<!-- @@@specialValueText -->
<!-- $$$text-prop$$$text -->
<h3 class="fn"><a name="text-prop"></a><span class="name">text</span> : const <span class="type"><a href="qstring.html">QString</a></span></h3>
<p>This property holds the spin box's text, including any prefix and suffix.</p>
<p>There is no default text.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>text</b></span> () const</td></tr>
</table>
<!-- @@@text -->
<!-- $$$wrapping-prop$$$wrapping$$$setWrappingbool -->
<h3 class="fn"><a name="wrapping-prop"></a><span class="name">wrapping</span> : <span class="type">bool</span></h3>
<p>This property holds whether the spin box is circular.</p>
<p>If wrapping is true stepping up from maximum() value will take you to the minimum() value and vica versa. Wrapping only make sense if you have minimum() and maximum() values set.</p>
<pre class="cpp"> <span class="type"><a href="qspinbox.html">QSpinBox</a></span> <span class="operator">*</span>spinBox <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qspinbox.html">QSpinBox</a></span>(<span class="keyword">this</span>);
 spinBox<span class="operator">-</span><span class="operator">&gt;</span>setRange(<span class="number">0</span><span class="operator">,</span> <span class="number">100</span>);
 spinBox<span class="operator">-</span><span class="operator">&gt;</span>setWrapping(<span class="keyword">true</span>);
 spinBox<span class="operator">-</span><span class="operator">&gt;</span>setValue(<span class="number">100</span>);
 spinBox<span class="operator">-</span><span class="operator">&gt;</span><a href="qabstractspinbox.html#stepBy">stepBy</a>(<span class="number">1</span>);
 <span class="comment">// value is 0</span></pre>
<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>wrapping</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setWrapping</b></span> ( bool <i>w</i> )</td></tr>
</table>
<p><b>See also </b><a href="qspinbox.html#minimum-prop">QSpinBox::minimum</a>() and <a href="qspinbox.html#maximum-prop">QSpinBox::maximum</a>().</p>
<!-- @@@wrapping -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QAbstractSpinBox[overload1]$$$QAbstractSpinBoxQWidget* -->
<h3 class="fn"><a name="QAbstractSpinBox"></a>QAbstractSpinBox::<span class="name">QAbstractSpinBox</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0 )</h3>
<p>Constructs an abstract spinbox with the given <i>parent</i> with default <a href="qabstractspinbox.html#wrapping-prop">wrapping</a>, and <a href="qabstractspinbox.html#alignment-prop">alignment</a> properties.</p>
<!-- @@@QAbstractSpinBox -->
<!-- $$$~QAbstractSpinBox[overload1]$$$~QAbstractSpinBox -->
<h3 class="fn"><a name="dtor.QAbstractSpinBox"></a>QAbstractSpinBox::<span class="name">~QAbstractSpinBox</span> ()</h3>
<p>Called when the <a href="qabstractspinbox.html">QAbstractSpinBox</a> is destroyed.</p>
<!-- @@@~QAbstractSpinBox -->
<!-- $$$changeEvent[overload1]$$$changeEventQEvent* -->
<h3 class="fn"><a name="changeEvent"></a><span class="type">void</span> QAbstractSpinBox::<span class="name">changeEvent</span> ( <span class="type"><a href="qevent.html">QEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#changeEvent">QWidget::changeEvent</a>().</p>
<!-- @@@changeEvent -->
<!-- $$$clear[overload1]$$$clear -->
<h3 class="fn"><a name="clear"></a><span class="type">void</span> QAbstractSpinBox::<span class="name">clear</span> ()<tt> [virtual slot]</tt></h3>
<p>Clears the lineedit of all text but prefix and suffix.</p>
<!-- @@@clear -->
<!-- $$$closeEvent[overload1]$$$closeEventQCloseEvent* -->
<h3 class="fn"><a name="closeEvent"></a><span class="type">void</span> QAbstractSpinBox::<span class="name">closeEvent</span> ( <span class="type"><a href="qcloseevent.html">QCloseEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#closeEvent">QWidget::closeEvent</a>().</p>
<!-- @@@closeEvent -->
<!-- $$$contextMenuEvent[overload1]$$$contextMenuEventQContextMenuEvent* -->
<h3 class="fn"><a name="contextMenuEvent"></a><span class="type">void</span> QAbstractSpinBox::<span class="name">contextMenuEvent</span> ( <span class="type"><a href="qcontextmenuevent.html">QContextMenuEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#contextMenuEvent">QWidget::contextMenuEvent</a>().</p>
<!-- @@@contextMenuEvent -->
<!-- $$$editingFinished[overload1]$$$editingFinished -->
<h3 class="fn"><a name="editingFinished"></a><span class="type">void</span> QAbstractSpinBox::<span class="name">editingFinished</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted editing is finished. This happens when the spinbox loses focus and when enter is pressed.</p>
<!-- @@@editingFinished -->
<!-- $$$event[overload1]$$$eventQEvent* -->
<h3 class="fn"><a name="event"></a><span class="type">bool</span> QAbstractSpinBox::<span class="name">event</span> ( <span class="type"><a href="qevent.html">QEvent</a></span> * <i>event</i> )<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qobject.html#event">QObject::event</a>().</p>
<!-- @@@event -->
<!-- $$$fixup[overload1]$$$fixupQString& -->
<h3 class="fn"><a name="fixup"></a><span class="type">void</span> QAbstractSpinBox::<span class="name">fixup</span> ( <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>input</i> ) const<tt> [virtual]</tt></h3>
<p>This virtual function is called by the <a href="qabstractspinbox.html">QAbstractSpinBox</a> if the <i>input</i> is not validated to <a href="qvalidator.html#State-enum">QValidator::Acceptable</a> when Return is pressed or <a href="qabstractspinbox.html#interpretText">interpretText</a>() is called. It will try to change the text so it is valid. Reimplemented in the various subclasses.</p>
<!-- @@@fixup -->
<!-- $$$focusInEvent[overload1]$$$focusInEventQFocusEvent* -->
<h3 class="fn"><a name="focusInEvent"></a><span class="type">void</span> QAbstractSpinBox::<span class="name">focusInEvent</span> ( <span class="type"><a href="qfocusevent.html">QFocusEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#focusInEvent">QWidget::focusInEvent</a>().</p>
<!-- @@@focusInEvent -->
<!-- $$$focusOutEvent[overload1]$$$focusOutEventQFocusEvent* -->
<h3 class="fn"><a name="focusOutEvent"></a><span class="type">void</span> QAbstractSpinBox::<span class="name">focusOutEvent</span> ( <span class="type"><a href="qfocusevent.html">QFocusEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#focusOutEvent">QWidget::focusOutEvent</a>().</p>
<!-- @@@focusOutEvent -->
<!-- $$$hideEvent[overload1]$$$hideEventQHideEvent* -->
<h3 class="fn"><a name="hideEvent"></a><span class="type">void</span> QAbstractSpinBox::<span class="name">hideEvent</span> ( <span class="type"><a href="qhideevent.html">QHideEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#hideEvent">QWidget::hideEvent</a>().</p>
<!-- @@@hideEvent -->
<!-- $$$initStyleOption[overload1]$$$initStyleOptionQStyleOptionSpinBox* -->
<h3 class="fn"><a name="initStyleOption"></a><span class="type">void</span> QAbstractSpinBox::<span class="name">initStyleOption</span> ( <span class="type"><a href="qstyleoptionspinbox.html">QStyleOptionSpinBox</a></span> * <i>option</i> ) const<tt> [protected]</tt></h3>
<p>Initialize <i>option</i> with the values from this <a href="qspinbox.html">QSpinBox</a>. This method is useful for subclasses when they need a <a href="qstyleoptionspinbox.html">QStyleOptionSpinBox</a>, but don't want to fill in all the information themselves.</p>
<p><b>See also </b><a href="qstyleoption.html#initFrom">QStyleOption::initFrom</a>().</p>
<!-- @@@initStyleOption -->
<!-- $$$inputMethodQuery[overload1]$$$inputMethodQueryQt::InputMethodQuery -->
<h3 class="fn"><a name="inputMethodQuery"></a><span class="type"><a href="qvariant.html">QVariant</a></span> QAbstractSpinBox::<span class="name">inputMethodQuery</span> ( <span class="type"><a href="qt.html#InputMethodQuery-enum">Qt::InputMethodQuery</a></span> <i>query</i> ) const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#inputMethodQuery">QWidget::inputMethodQuery</a>().</p>
<!-- @@@inputMethodQuery -->
<!-- $$$interpretText[overload1]$$$interpretText -->
<h3 class="fn"><a name="interpretText"></a><span class="type">void</span> QAbstractSpinBox::<span class="name">interpretText</span> ()</h3>
<p>This function interprets the text of the spin box. If the value has changed since last interpretation it will emit signals.</p>
<!-- @@@interpretText -->
<!-- $$$keyPressEvent[overload1]$$$keyPressEventQKeyEvent* -->
<h3 class="fn"><a name="keyPressEvent"></a><span class="type">void</span> QAbstractSpinBox::<span class="name">keyPressEvent</span> ( <span class="type"><a href="qkeyevent.html">QKeyEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#keyPressEvent">QWidget::keyPressEvent</a>().</p>
<p>This function handles keyboard input.</p>
<p>The following keys are handled specifically:</p>
<table class="generic">
<tr valign="top" class="odd"><td >Enter/Return</td><td >This will reinterpret the text and emit a signal even if the value has not changed since last time a signal was emitted.</td></tr>
<tr valign="top" class="even"><td >Up</td><td >This will invoke stepBy(1)</td></tr>
<tr valign="top" class="odd"><td >Down</td><td >This will invoke stepBy(-1)</td></tr>
<tr valign="top" class="even"><td >Page up</td><td >This will invoke stepBy(10)</td></tr>
<tr valign="top" class="odd"><td >Page down</td><td >This will invoke stepBy(-10)</td></tr>
</table>
<!-- @@@keyPressEvent -->
<!-- $$$keyReleaseEvent[overload1]$$$keyReleaseEventQKeyEvent* -->
<h3 class="fn"><a name="keyReleaseEvent"></a><span class="type">void</span> QAbstractSpinBox::<span class="name">keyReleaseEvent</span> ( <span class="type"><a href="qkeyevent.html">QKeyEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#keyReleaseEvent">QWidget::keyReleaseEvent</a>().</p>
<!-- @@@keyReleaseEvent -->
<!-- $$$lineEdit[overload1]$$$lineEdit -->
<h3 class="fn"><a name="lineEdit"></a><span class="type"><a href="qlineedit.html">QLineEdit</a></span> * QAbstractSpinBox::<span class="name">lineEdit</span> () const<tt> [protected]</tt></h3>
<p>This function returns a pointer to the line edit of the spin box.</p>
<p><b>See also </b><a href="qabstractspinbox.html#setLineEdit">setLineEdit</a>().</p>
<!-- @@@lineEdit -->
<!-- $$$minimumSizeHint[overload1]$$$minimumSizeHint -->
<h3 class="fn"><a name="minimumSizeHint"></a><span class="type"><a href="qsize.html">QSize</a></span> QAbstractSpinBox::<span class="name">minimumSizeHint</span> () const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#minimumSizeHint-prop">QWidget::minimumSizeHint</a>().</p>
<!-- @@@minimumSizeHint -->
<!-- $$$mouseMoveEvent[overload1]$$$mouseMoveEventQMouseEvent* -->
<h3 class="fn"><a name="mouseMoveEvent"></a><span class="type">void</span> QAbstractSpinBox::<span class="name">mouseMoveEvent</span> ( <span class="type"><a href="qmouseevent.html">QMouseEvent</a></span> * <i>event</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> QAbstractSpinBox::<span class="name">mousePressEvent</span> ( <span class="type"><a href="qmouseevent.html">QMouseEvent</a></span> * <i>event</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> QAbstractSpinBox::<span class="name">mouseReleaseEvent</span> ( <span class="type"><a href="qmouseevent.html">QMouseEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#mouseReleaseEvent">QWidget::mouseReleaseEvent</a>().</p>
<!-- @@@mouseReleaseEvent -->
<!-- $$$paintEvent[overload1]$$$paintEventQPaintEvent* -->
<h3 class="fn"><a name="paintEvent"></a><span class="type">void</span> QAbstractSpinBox::<span class="name">paintEvent</span> ( <span class="type"><a href="qpaintevent.html">QPaintEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#paintEvent">QWidget::paintEvent</a>().</p>
<!-- @@@paintEvent -->
<!-- $$$resizeEvent[overload1]$$$resizeEventQResizeEvent* -->
<h3 class="fn"><a name="resizeEvent"></a><span class="type">void</span> QAbstractSpinBox::<span class="name">resizeEvent</span> ( <span class="type"><a href="qresizeevent.html">QResizeEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#resizeEvent">QWidget::resizeEvent</a>().</p>
<!-- @@@resizeEvent -->
<!-- $$$selectAll[overload1]$$$selectAll -->
<h3 class="fn"><a name="selectAll"></a><span class="type">void</span> QAbstractSpinBox::<span class="name">selectAll</span> ()<tt> [slot]</tt></h3>
<p>Selects all the text in the spinbox except the prefix and suffix.</p>
<!-- @@@selectAll -->
<!-- $$$setLineEdit[overload1]$$$setLineEditQLineEdit* -->
<h3 class="fn"><a name="setLineEdit"></a><span class="type">void</span> QAbstractSpinBox::<span class="name">setLineEdit</span> ( <span class="type"><a href="qlineedit.html">QLineEdit</a></span> * <i>lineEdit</i> )<tt> [protected]</tt></h3>
<p>Sets the line edit of the spinbox to be <i>lineEdit</i> instead of the current line edit widget. <i>lineEdit</i> can not be 0.</p>
<p><a href="qabstractspinbox.html">QAbstractSpinBox</a> takes ownership of the new lineEdit</p>
<p>If <a href="qlineedit.html#validator">QLineEdit::validator</a>() for the <i>lineEdit</i> returns 0, the internal validator of the spinbox will be set on the line edit.</p>
<p><b>See also </b><a href="qabstractspinbox.html#lineEdit">lineEdit</a>().</p>
<!-- @@@setLineEdit -->
<!-- $$$showEvent[overload1]$$$showEventQShowEvent* -->
<h3 class="fn"><a name="showEvent"></a><span class="type">void</span> QAbstractSpinBox::<span class="name">showEvent</span> ( <span class="type"><a href="qshowevent.html">QShowEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#showEvent">QWidget::showEvent</a>().</p>
<!-- @@@showEvent -->
<!-- $$$sizeHint[overload1]$$$sizeHint -->
<h3 class="fn"><a name="sizeHint"></a><span class="type"><a href="qsize.html">QSize</a></span> QAbstractSpinBox::<span class="name">sizeHint</span> () const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#sizeHint-prop">QWidget::sizeHint</a>().</p>
<!-- @@@sizeHint -->
<!-- $$$stepBy[overload1]$$$stepByint -->
<h3 class="fn"><a name="stepBy"></a><span class="type">void</span> QAbstractSpinBox::<span class="name">stepBy</span> ( <span class="type">int</span> <i>steps</i> )<tt> [virtual]</tt></h3>
<p>Virtual function that is called whenever the user triggers a step. The <i>steps</i> parameter indicates how many steps were taken, e.g&#x2e; Pressing <a href="qt.html#Key-enum">Qt::Key_Down</a> will trigger a call to stepBy(-1), whereas pressing <a href="qt.html#Key-enum">Qt::Key_Prior</a> will trigger a call to stepBy(10).</p>
<p>If you subclass <a href="qabstractspinbox.html">QAbstractSpinBox</a> you must reimplement this function. Note that this function is called even if the resulting value will be outside the bounds of minimum and maximum. It's this function's job to handle these situations.</p>
<!-- @@@stepBy -->
<!-- $$$stepDown[overload1]$$$stepDown -->
<h3 class="fn"><a name="stepDown"></a><span class="type">void</span> QAbstractSpinBox::<span class="name">stepDown</span> ()<tt> [slot]</tt></h3>
<p>Steps down by one linestep Calling this slot is analogous to calling stepBy(-1);</p>
<p><b>See also </b><a href="qabstractspinbox.html#stepBy">stepBy</a>() and <a href="qabstractspinbox.html#stepUp">stepUp</a>().</p>
<!-- @@@stepDown -->
<!-- $$$stepEnabled[overload1]$$$stepEnabled -->
<h3 class="fn"><a name="stepEnabled"></a><span class="type"><a href="qabstractspinbox.html#StepEnabledFlag-enum">StepEnabled</a></span> QAbstractSpinBox::<span class="name">stepEnabled</span> () const<tt> [virtual protected]</tt></h3>
<p>Virtual function that determines whether stepping up and down is legal at any given time.</p>
<p>The up arrow will be painted as disabled unless (stepEnabled() &amp; <a href="qabstractspinbox.html#StepEnabledFlag-enum">StepUpEnabled</a>) != 0.</p>
<p>The default implementation will return (<a href="qabstractspinbox.html#StepEnabledFlag-enum">StepUpEnabled</a>| <a href="qabstractspinbox.html#StepEnabledFlag-enum">StepDownEnabled</a>) if wrapping is turned on. Else it will return <a href="qabstractspinbox.html#StepEnabledFlag-enum">StepDownEnabled</a> if value is &gt; minimum() or'ed with <a href="qabstractspinbox.html#StepEnabledFlag-enum">StepUpEnabled</a> if value &lt; maximum().</p>
<p>If you subclass <a href="qabstractspinbox.html">QAbstractSpinBox</a> you will need to reimplement this function.</p>
<p><b>See also </b><a href="qspinbox.html#minimum-prop">QSpinBox::minimum</a>(), <a href="qspinbox.html#maximum-prop">QSpinBox::maximum</a>(), and <a href="qabstractspinbox.html#wrapping-prop">wrapping</a>().</p>
<!-- @@@stepEnabled -->
<!-- $$$stepUp[overload1]$$$stepUp -->
<h3 class="fn"><a name="stepUp"></a><span class="type">void</span> QAbstractSpinBox::<span class="name">stepUp</span> ()<tt> [slot]</tt></h3>
<p>Steps up by one linestep Calling this slot is analogous to calling stepBy(1);</p>
<p><b>See also </b><a href="qabstractspinbox.html#stepBy">stepBy</a>() and <a href="qabstractspinbox.html#stepDown">stepDown</a>().</p>
<!-- @@@stepUp -->
<!-- $$$timerEvent[overload1]$$$timerEventQTimerEvent* -->
<h3 class="fn"><a name="timerEvent"></a><span class="type">void</span> QAbstractSpinBox::<span class="name">timerEvent</span> ( <span class="type"><a href="qtimerevent.html">QTimerEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qobject.html#timerEvent">QObject::timerEvent</a>().</p>
<!-- @@@timerEvent -->
<!-- $$$validate[overload1]$$$validateQString&int& -->
<h3 class="fn"><a name="validate"></a><span class="type"><a href="qvalidator.html#State-enum">QValidator::State</a></span> QAbstractSpinBox::<span class="name">validate</span> ( <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>input</i>, <span class="type">int</span> &amp; <i>pos</i> ) const<tt> [virtual]</tt></h3>
<p>This virtual function is called by the <a href="qabstractspinbox.html">QAbstractSpinBox</a> to determine whether <i>input</i> is valid. The <i>pos</i> parameter indicates the position in the string. Reimplemented in the various subclasses.</p>
<!-- @@@validate -->
<!-- $$$wheelEvent[overload1]$$$wheelEventQWheelEvent* -->
<h3 class="fn"><a name="wheelEvent"></a><span class="type">void</span> QAbstractSpinBox::<span class="name">wheelEvent</span> ( <span class="type"><a href="qwheelevent.html">QWheelEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#wheelEvent">QWidget::wheelEvent</a>().</p>
<!-- @@@wheelEvent -->
</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>