Sophie

Sophie

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

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" />
<!-- q3datetimeedit.cpp -->
  <title>Qt 4.8: Q3DateEdit 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>Qt3SupportLight</li>
<li>Q3DateEdit</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>
</ul>
</div>
<h1 class="title">Q3DateEdit Class Reference</h1>
<!-- $$$Q3DateEdit-brief -->
<p>The Q3DateEdit class provides a date editor. <a href="#details">More...</a></p>
<!-- @@@Q3DateEdit -->
<pre class="cpp"> <span class="preprocessor">#include &lt;Q3DateEdit&gt;</span></pre><p><b>This class is part of the Qt 3 support library.</b> It is provided to keep old source code working. We strongly advise against using it in new code. See <a href="porting4.html#qdateedit">Porting to Qt 4</a> for more information.</p>
<p><b>Inherits: </b><a href="q3datetimeeditbase.html">Q3DateTimeEditBase</a>.</p>
<ul>
<li><a href="q3dateedit-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="q3dateedit.html#Order-enum">Order</a></b> { MDY, DMY, YMD }</td></tr>
</table>
<a name="properties"></a>
<h2>Properties</h2>
<table class="propsummary">
<tr><td class="topAlign"><ul>
<li class="fn"><b><a href="q3dateedit.html#autoAdvance-prop">autoAdvance</a></b> : bool</li>
<li class="fn"><b><a href="q3dateedit.html#date-prop">date</a></b> : QDate</li>
<li class="fn"><b><a href="q3dateedit.html#maxValue-prop">maxValue</a></b> : QDate</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="q3dateedit.html#minValue-prop">minValue</a></b> : QDate</li>
<li class="fn"><b><a href="q3dateedit.html#order-prop">order</a></b> : Order</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="q3dateedit.html#Q3DateEdit">Q3DateEdit</a></b> ( QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3dateedit.html#Q3DateEdit-2">Q3DateEdit</a></b> ( const QDate &amp; <i>date</i>, QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3dateedit.html#dtor.Q3DateEdit">~Q3DateEdit</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3dateedit.html#autoAdvance-prop">autoAdvance</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDate </td><td class="memItemRight bottomAlign"><b><a href="q3dateedit.html#date-prop">date</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDate </td><td class="memItemRight bottomAlign"><b><a href="q3dateedit.html#maxValue-prop">maxValue</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDate </td><td class="memItemRight bottomAlign"><b><a href="q3dateedit.html#minValue-prop">minValue</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Order </td><td class="memItemRight bottomAlign"><b><a href="q3dateedit.html#order-prop">order</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="q3dateedit.html#separator">separator</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3dateedit.html#autoAdvance-prop">setAutoAdvance</a></b> ( bool <i>advance</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3dateedit.html#maxValue-prop">setMaxValue</a></b> ( const QDate &amp; <i>d</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3dateedit.html#minValue-prop">setMinValue</a></b> ( const QDate &amp; <i>d</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3dateedit.html#order-prop">setOrder</a></b> ( Order <i>order</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3dateedit.html#setRange">setRange</a></b> ( const QDate &amp; <i>min</i>, const QDate &amp; <i>max</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3dateedit.html#setSeparator">setSeparator</a></b> ( const QString &amp; <i>s</i> )</td></tr>
</table>
<a name="reimplemented-public-functions"></a>
<h2>Reimplemented Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSize </td><td class="memItemRight bottomAlign"><b><a href="q3dateedit.html#minimumSizeHint">minimumSizeHint</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSize </td><td class="memItemRight bottomAlign"><b><a href="q3dateedit.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="q3dateedit.html#date-prop">setDate</a></b> ( const QDate &amp; <i>date</i> )</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="q3dateedit.html#valueChanged">valueChanged</a></b> ( const QDate &amp; <i>date</i> )</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"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3dateedit.html#fix">fix</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3dateedit.html#setDay">setDay</a></b> ( int <i>day</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3dateedit.html#setMonth">setMonth</a></b> ( int <i>month</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3dateedit.html#setYear">setYear</a></b> ( int <i>year</i> )</td></tr>
</table>
<a name="reimplemented-protected-functions"></a>
<h2>Reimplemented Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="q3dateedit.html#event">event</a></b> ( QEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3dateedit.html#resizeEvent">resizeEvent</a></b> ( QResizeEvent * )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QString </td><td class="memItemRight bottomAlign"><b><a href="q3dateedit.html#sectionFormattedText">sectionFormattedText</a></b> ( int <i>sec</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3dateedit.html#timerEvent">timerEvent</a></b> ( QTimerEvent * )</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>
<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="q3dateedit.html#updateButtons">updateButtons</a></b> ()</td></tr>
</table>
<ul>
<li class="fn">1 protected slot inherited from <a href="qwidget.html#protected-slots">QWidget</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">4 static public members inherited from <a href="qwidget.html#static-public-members">QWidget</a></li>
<li class="fn">7 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
</ul>
<a name="details"></a>
<!-- $$$Q3DateEdit-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The Q3DateEdit class provides a date editor.</p>
<p>Q3DateEdit allows the user to edit dates by using the keyboard or the arrow keys to increase/decrease date values. The arrow keys can be used to move from section to section within the Q3DateEdit box. Dates appear in accordance with the local date/time settings or in year, month, day order if the system doesn't provide this information. It is recommended that the Q3DateEdit be initialised with a date, e.g&#x2e;</p>
<pre class="cpp"> <span class="type">Q3DateEdit</span> <span class="operator">*</span>dateEdit <span class="operator">=</span> <span class="keyword">new</span> <span class="type">Q3DateEdit</span>(<span class="type"><a href="qdate.html">QDate</a></span><span class="operator">::</span>currentDate()<span class="operator">,</span> <span class="keyword">this</span>);
 dateEdit<span class="operator">-</span><span class="operator">&gt;</span>setRange(<span class="type"><a href="qdate.html">QDate</a></span><span class="operator">::</span>currentDate()<span class="operator">.</span>addDays(<span class="operator">-</span><span class="number">365</span>)<span class="operator">,</span>
                     <span class="type"><a href="qdate.html">QDate</a></span><span class="operator">::</span>currentDate()<span class="operator">.</span>addDays( <span class="number">365</span>));
 dateEdit<span class="operator">-</span><span class="operator">&gt;</span>setOrder(<span class="type">Q3DateEdit</span><span class="operator">::</span>MDY);
 dateEdit<span class="operator">-</span><span class="operator">&gt;</span>setAutoAdvance(<span class="keyword">true</span>);</pre>
<p>Here we've created a new Q3DateEdit object initialised with today's date and restricted the valid date range to today plus or minus 365 days. We've set the order to month, day, year. If the auto advance property is true (as we've set it here) when the user completes a section of the date, e.g&#x2e; enters two digits for the month, they are automatically taken to the next section.</p>
<p>The maximum and minimum values for a date value in the date editor default to the maximum and minimum values for a <a href="qdate.html">QDate</a>. You can change this by calling <a href="q3dateedit.html#minValue-prop">setMinValue</a>(), <a href="q3dateedit.html#maxValue-prop">setMaxValue</a>() or <a href="q3dateedit.html#setRange">setRange</a>().</p>
<p>Terminology: A Q3DateEdit widget comprises three 'sections', one each for the year, month and day. You can change the separator character using Q3DateTimeEditor::setSeparator(), by default the separator will be taken from the systems settings. If that is not possible, it defaults to &quot;-&quot;.</p>
<p class="centerAlign"><img src="images/datetimewidgets.png" alt="Date Time Widgets" /></p></div>
<p><b>See also </b><a href="qdate.html">QDate</a>, <a href="q3timeedit.html">Q3TimeEdit</a>, and <a href="q3datetimeedit.html">Q3DateTimeEdit</a>.</p>
<!-- @@@Q3DateEdit -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$Order$$$DMY$$$MDY$$$YMD$$$YDM -->
<h3 class="fn"><a name="Order-enum"></a>enum Q3DateEdit::<span class="name">Order</span></h3>
<p>This enum defines the order in which the sections that comprise a date appear.</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>Q3DateEdit::MDY</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">month-day-year</td></tr>
<tr><td class="topAlign"><tt>Q3DateEdit::DMY</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">day-month-year</td></tr>
<tr><td class="topAlign"><tt>Q3DateEdit::YMD</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">year-month-day (the default)</td></tr>
</table>
<!-- @@@Order -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$autoAdvance-prop$$$autoAdvance$$$setAutoAdvancebool -->
<h3 class="fn"><a name="autoAdvance-prop"></a><span class="name">autoAdvance</span> : <span class="type">bool</span></h3>
<p>This property holds whether the editor automatically advances to the next section.</p>
<p>If autoAdvance is true, the editor will automatically advance focus to the next date section if a user has completed a section. The default 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>autoAdvance</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAutoAdvance</b></span> ( bool <i>advance</i> )</td></tr>
</table>
<!-- @@@autoAdvance -->
<!-- $$$date-prop$$$date$$$setDateconstQDate& -->
<h3 class="fn"><a name="date-prop"></a><span class="name">date</span> : <span class="type"><a href="qdate.html">QDate</a></span></h3>
<p>This property holds the editor's date value.</p>
<p>If the date property is not valid, the editor displays all zeroes and Q3DateEdit::date() will return an invalid date. It is strongly recommended that the editor is given a default date value (e.g&#x2e; currentDate()). That way, attempts to set the date property to an invalid date will fail.</p>
<p>When changing the date property, if the date is less than <a href="q3dateedit.html#minValue-prop">minValue</a>(), or is greater than <a href="q3dateedit.html#maxValue-prop">maxValue</a>(), nothing happens.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QDate </td><td class="memItemRight bottomAlign"><span class="name"><b>date</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDate</b></span> ( const QDate &amp; <i>date</i> )</td></tr>
</table>
<!-- @@@date -->
<!-- $$$maxValue-prop$$$maxValue$$$setMaxValueconstQDate& -->
<h3 class="fn"><a name="maxValue-prop"></a><span class="name">maxValue</span> : <span class="type"><a href="qdate.html">QDate</a></span></h3>
<p>This property holds the editor's maximum value.</p>
<p>Setting the maximum date value for the editor is equivalent to calling Q3DateEdit::setRange(<a href="q3dateedit.html#minValue-prop">minValue</a>(), <i>d</i>), where <i>d</i> is the maximum date. The default maximum date is 8000-12-31.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QDate </td><td class="memItemRight bottomAlign"><span class="name"><b>maxValue</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMaxValue</b></span> ( const QDate &amp; <i>d</i> )</td></tr>
</table>
<p><b>See also </b><a href="q3dateedit.html#minValue-prop">minValue</a> and <a href="q3dateedit.html#setRange">setRange</a>().</p>
<!-- @@@maxValue -->
<!-- $$$minValue-prop$$$minValue$$$setMinValueconstQDate& -->
<h3 class="fn"><a name="minValue-prop"></a><span class="name">minValue</span> : <span class="type"><a href="qdate.html">QDate</a></span></h3>
<p>This property holds the editor's minimum value.</p>
<p>Setting the minimum date value is equivalent to calling Q3DateEdit::setRange(<i>d</i>, <a href="q3dateedit.html#maxValue-prop">maxValue</a>()), where <i>d</i> is the minimum date. The default minimum date is 1752-09-14.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QDate </td><td class="memItemRight bottomAlign"><span class="name"><b>minValue</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMinValue</b></span> ( const QDate &amp; <i>d</i> )</td></tr>
</table>
<p><b>See also </b><a href="q3dateedit.html#maxValue-prop">maxValue</a> and <a href="q3dateedit.html#setRange">setRange</a>().</p>
<!-- @@@minValue -->
<!-- $$$order-prop$$$order$$$setOrderOrder -->
<h3 class="fn"><a name="order-prop"></a><span class="name">order</span> : <span class="type"><a href="q3dateedit.html#Order-enum">Order</a></span></h3>
<p>This property holds the order in which the year, month and day appear.</p>
<p>The default order is locale dependent.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> Order </td><td class="memItemRight bottomAlign"><span class="name"><b>order</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setOrder</b></span> ( Order <i>order</i> )</td></tr>
</table>
<p><b>See also </b><a href="q3dateedit.html#Order-enum">Order</a>.</p>
<!-- @@@order -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$Q3DateEdit[overload1]$$$Q3DateEditQWidget*constchar* -->
<h3 class="fn"><a name="Q3DateEdit"></a>Q3DateEdit::<span class="name">Q3DateEdit</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0, const <span class="type">char</span> * <i>name</i> = 0 )</h3>
<p>Constructs an empty date editor which is a child of <i>parent</i> and called name <i>name</i>.</p>
<!-- @@@Q3DateEdit -->
<!-- $$$Q3DateEdit$$$Q3DateEditconstQDate&QWidget*constchar* -->
<h3 class="fn"><a name="Q3DateEdit-2"></a>Q3DateEdit::<span class="name">Q3DateEdit</span> ( const <span class="type"><a href="qdate.html">QDate</a></span> &amp; <i>date</i>, <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0, const <span class="type">char</span> * <i>name</i> = 0 )</h3>
<p>This is an overloaded function.</p>
<p>Constructs a date editor with the initial value <i>date</i>, parent <i>parent</i> and called <i>name</i>.</p>
<p>The date editor is initialized with <i>date</i>.</p>
<!-- @@@Q3DateEdit -->
<!-- $$$~Q3DateEdit[overload1]$$$~Q3DateEdit -->
<h3 class="fn"><a name="dtor.Q3DateEdit"></a>Q3DateEdit::<span class="name">~Q3DateEdit</span> ()</h3>
<p>Destroys the object and frees any allocated resources.</p>
<!-- @@@~Q3DateEdit -->
<!-- $$$event[overload1]$$$eventQEvent* -->
<h3 class="fn"><a name="event"></a><span class="type">bool</span> Q3DateEdit::<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 -->
<!-- $$$fix[overload1]$$$fix -->
<h3 class="fn"><a name="fix"></a><span class="type">void</span> Q3DateEdit::<span class="name">fix</span> ()<tt> [virtual protected]</tt></h3>
<p>Attempts to fix any invalid date entries.</p>
<p>The rules applied are as follows:</p>
<ul>
<li>If the year has four digits it is left unchanged.</li>
<li>If the year has two digits, the year will be changed to four digits in the range current year - 70 to current year + 29.</li>
<li>If the year has three digits in the range 100..999, the current millennium, i.e&#x2e; 2000, will be added giving a year in the range 2100..2999.</li>
<li>If the day or month is 0 then it will be set to 1 or the minimum valid day/month in the range.</li>
</ul>
<!-- @@@fix -->
<!-- $$$minimumSizeHint[overload1]$$$minimumSizeHint -->
<h3 class="fn"><a name="minimumSizeHint"></a><span class="type"><a href="qsize.html">QSize</a></span> Q3DateEdit::<span class="name">minimumSizeHint</span> () const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#minimumSizeHint-prop">QWidget::minimumSizeHint</a>().</p>
<!-- @@@minimumSizeHint -->
<!-- $$$resizeEvent[overload1]$$$resizeEventQResizeEvent* -->
<h3 class="fn"><a name="resizeEvent"></a><span class="type">void</span> Q3DateEdit::<span class="name">resizeEvent</span> ( <span class="type"><a href="qresizeevent.html">QResizeEvent</a></span> * )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#resizeEvent">QWidget::resizeEvent</a>().</p>
<!-- @@@resizeEvent -->
<!-- $$$sectionFormattedText[overload1]$$$sectionFormattedTextint -->
<h3 class="fn"><a name="sectionFormattedText"></a><span class="type"><a href="qstring.html">QString</a></span> Q3DateEdit::<span class="name">sectionFormattedText</span> ( <span class="type">int</span> <i>sec</i> )<tt> [virtual protected]</tt></h3>
<p>Returns the formatted number for section <i>sec</i>. This will correspond to either the year, month or day section, depending on the current display order.</p>
<p><b>See also </b><a href="q3dateedit.html#order-prop">setOrder</a>().</p>
<!-- @@@sectionFormattedText -->
<!-- $$$separator[overload1]$$$separator -->
<h3 class="fn"><a name="separator"></a><span class="type"><a href="qstring.html">QString</a></span> Q3DateEdit::<span class="name">separator</span> () const</h3>
<p>Returns the editor's separator.</p>
<p><b>See also </b><a href="q3dateedit.html#setSeparator">setSeparator</a>().</p>
<!-- @@@separator -->
<!-- $$$setDay[overload1]$$$setDayint -->
<h3 class="fn"><a name="setDay"></a><span class="type">void</span> Q3DateEdit::<span class="name">setDay</span> ( <span class="type">int</span> <i>day</i> )<tt> [virtual protected]</tt></h3>
<p>Sets the day to <i>day</i>, which must be a valid day. The function will ensure that the <i>day</i> set is valid for the month and year.</p>
<!-- @@@setDay -->
<!-- $$$setMonth[overload1]$$$setMonthint -->
<h3 class="fn"><a name="setMonth"></a><span class="type">void</span> Q3DateEdit::<span class="name">setMonth</span> ( <span class="type">int</span> <i>month</i> )<tt> [virtual protected]</tt></h3>
<p>Sets the month to <i>month</i>, which must be a valid month, i.e&#x2e; between 1 and 12.</p>
<!-- @@@setMonth -->
<!-- $$$setRange[overload1]$$$setRangeconstQDate&constQDate& -->
<h3 class="fn"><a name="setRange"></a><span class="type">void</span> Q3DateEdit::<span class="name">setRange</span> ( const <span class="type"><a href="qdate.html">QDate</a></span> &amp; <i>min</i>, const <span class="type"><a href="qdate.html">QDate</a></span> &amp; <i>max</i> )<tt> [virtual]</tt></h3>
<p>Sets the valid input range for the editor to be from <i>min</i> to <i>max</i> inclusive. If <i>min</i> is invalid no minimum date will be set. Similarly, if <i>max</i> is invalid no maximum date will be set.</p>
<!-- @@@setRange -->
<!-- $$$setSeparator[overload1]$$$setSeparatorconstQString& -->
<h3 class="fn"><a name="setSeparator"></a><span class="type">void</span> Q3DateEdit::<span class="name">setSeparator</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>s</i> )<tt> [virtual]</tt></h3>
<p>Sets the separator to <i>s</i>. Note that currently only the first character of <i>s</i> is used.</p>
<p><b>See also </b><a href="q3dateedit.html#separator">separator</a>().</p>
<!-- @@@setSeparator -->
<!-- $$$setYear[overload1]$$$setYearint -->
<h3 class="fn"><a name="setYear"></a><span class="type">void</span> Q3DateEdit::<span class="name">setYear</span> ( <span class="type">int</span> <i>year</i> )<tt> [virtual protected]</tt></h3>
<p>Sets the year to <i>year</i>, which must be a valid year. The range currently supported is from 1752 to 8000.</p>
<p><b>See also </b><a href="qdate.html">QDate</a>.</p>
<!-- @@@setYear -->
<!-- $$$sizeHint[overload1]$$$sizeHint -->
<h3 class="fn"><a name="sizeHint"></a><span class="type"><a href="qsize.html">QSize</a></span> Q3DateEdit::<span class="name">sizeHint</span> () const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#sizeHint-prop">QWidget::sizeHint</a>().</p>
<!-- @@@sizeHint -->
<!-- $$$timerEvent[overload1]$$$timerEventQTimerEvent* -->
<h3 class="fn"><a name="timerEvent"></a><span class="type">void</span> Q3DateEdit::<span class="name">timerEvent</span> ( <span class="type"><a href="qtimerevent.html">QTimerEvent</a></span> * )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qobject.html#timerEvent">QObject::timerEvent</a>().</p>
<!-- @@@timerEvent -->
<!-- $$$updateButtons[overload1]$$$updateButtons -->
<h3 class="fn"><a name="updateButtons"></a><span class="type">void</span> Q3DateEdit::<span class="name">updateButtons</span> ()<tt> [protected slot]</tt></h3>
<p>Enables/disables the push buttons according to the min/max date for this widget.</p>
<!-- @@@updateButtons -->
<!-- $$$valueChanged[overload1]$$$valueChangedconstQDate& -->
<h3 class="fn"><a name="valueChanged"></a><span class="type">void</span> Q3DateEdit::<span class="name">valueChanged</span> ( const <span class="type"><a href="qdate.html">QDate</a></span> &amp; <i>date</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the editor's value changes. The <i>date</i> parameter is the new value.</p>
<!-- @@@valueChanged -->
</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>