Sophie

Sophie

distrib > Mageia > 7 > aarch64 > by-pkgid > 1dd17e0d683ef79b4bb6872bbf359d7f > files > 5023

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" />
<!-- qdatetimeedit.cpp -->
  <title>Qt 4.8: QDateTimeEdit 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>QDateTimeEdit</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>
<li class="level2"><a href="#using-a-pop-up-calendar-widget">Using a Pop-up Calendar Widget</a></li>
</ul>
</div>
<h1 class="title">QDateTimeEdit Class Reference</h1>
<!-- $$$QDateTimeEdit-brief -->
<p>The QDateTimeEdit class provides a widget for editing dates and times. <a href="#details">More...</a></p>
<!-- @@@QDateTimeEdit -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QDateTimeEdit&gt;</span></pre><p><b>Inherits: </b><a href="qabstractspinbox.html">QAbstractSpinBox</a>.</p>
<p><b>Inherited by: </b><a href="qdateedit.html">QDateEdit</a> and <a href="qtimeedit.html">QTimeEdit</a>.</p>
<ul>
<li><a href="qdatetimeedit-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="qdatetimeedit.html#Section-enum">Section</a></b> { NoSection, AmPmSection, MSecSection, SecondSection, ..., YearSection }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> flags </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#Section-enum">Sections</a></b></td></tr>
</table>
<a name="properties"></a>
<h2>Properties</h2>
<table class="propsummary">
<tr><td class="topAlign"><ul>
<li class="fn"><b><a href="qdatetimeedit.html#calendarPopup-prop">calendarPopup</a></b> : bool</li>
<li class="fn"><b><a href="qdatetimeedit.html#currentSection-prop">currentSection</a></b> : Section</li>
<li class="fn"><b><a href="qdatetimeedit.html#currentSectionIndex-prop">currentSectionIndex</a></b> : int</li>
<li class="fn"><b><a href="qdatetimeedit.html#date-prop">date</a></b> : QDate</li>
<li class="fn"><b><a href="qdatetimeedit.html#dateTime-prop">dateTime</a></b> : QDateTime</li>
<li class="fn"><b><a href="qdatetimeedit.html#displayFormat-prop">displayFormat</a></b> : QString</li>
<li class="fn"><b><a href="qdatetimeedit.html#displayedSections-prop">displayedSections</a></b> : const Sections</li>
<li class="fn"><b><a href="qdatetimeedit.html#maximumDate-prop">maximumDate</a></b> : QDate</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="qdatetimeedit.html#maximumDateTime-prop">maximumDateTime</a></b> : QDateTime</li>
<li class="fn"><b><a href="qdatetimeedit.html#maximumTime-prop">maximumTime</a></b> : QTime</li>
<li class="fn"><b><a href="qdatetimeedit.html#minimumDate-prop">minimumDate</a></b> : QDate</li>
<li class="fn"><b><a href="qdatetimeedit.html#minimumDateTime-prop">minimumDateTime</a></b> : QDateTime</li>
<li class="fn"><b><a href="qdatetimeedit.html#minimumTime-prop">minimumTime</a></b> : QTime</li>
<li class="fn"><b><a href="qdatetimeedit.html#sectionCount-prop">sectionCount</a></b> : const int</li>
<li class="fn"><b><a href="qdatetimeedit.html#time-prop">time</a></b> : QTime</li>
<li class="fn"><b><a href="qdatetimeedit.html#timeSpec-prop">timeSpec</a></b> : Qt::TimeSpec</li>
</ul>
</td></tr>
</table>
<ul>
<li class="fn">11 properties inherited from <a href="qabstractspinbox.html#properties">QAbstractSpinBox</a></li>
<li class="fn">58 properties inherited from <a href="qwidget.html#properties">QWidget</a></li>
<li class="fn">1 property inherited from <a href="qobject.html#properties">QObject</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#QDateTimeEdit">QDateTimeEdit</a></b> ( QWidget * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#QDateTimeEdit-2">QDateTimeEdit</a></b> ( const QDateTime &amp; <i>datetime</i>, QWidget * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#QDateTimeEdit-3">QDateTimeEdit</a></b> ( const QDate &amp; <i>date</i>, QWidget * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#QDateTimeEdit-4">QDateTimeEdit</a></b> ( const QTime &amp; <i>time</i>, QWidget * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#calendarPopup-prop">calendarPopup</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QCalendarWidget * </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#calendarWidget">calendarWidget</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#maximumDate-prop">clearMaximumDate</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#maximumDateTime-prop">clearMaximumDateTime</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#maximumTime-prop">clearMaximumTime</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#minimumDate-prop">clearMinimumDate</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#minimumDateTime-prop">clearMinimumDateTime</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#minimumTime-prop">clearMinimumTime</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Section </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#currentSection-prop">currentSection</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#currentSectionIndex-prop">currentSectionIndex</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDate </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#date-prop">date</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDateTime </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#dateTime-prop">dateTime</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#displayFormat-prop">displayFormat</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Sections </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#displayedSections-prop">displayedSections</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDate </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#maximumDate-prop">maximumDate</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDateTime </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#maximumDateTime-prop">maximumDateTime</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QTime </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#maximumTime-prop">maximumTime</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDate </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#minimumDate-prop">minimumDate</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDateTime </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#minimumDateTime-prop">minimumDateTime</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QTime </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#minimumTime-prop">minimumTime</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Section </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#sectionAt">sectionAt</a></b> ( int <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#sectionCount-prop">sectionCount</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#sectionText">sectionText</a></b> ( Section <i>section</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#calendarPopup-prop">setCalendarPopup</a></b> ( bool <i>enable</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#setCalendarWidget">setCalendarWidget</a></b> ( QCalendarWidget * <i>calendarWidget</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#currentSection-prop">setCurrentSection</a></b> ( Section <i>section</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#currentSectionIndex-prop">setCurrentSectionIndex</a></b> ( int <i>index</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#setDateRange">setDateRange</a></b> ( const QDate &amp; <i>min</i>, const QDate &amp; <i>max</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#setDateTimeRange">setDateTimeRange</a></b> ( const QDateTime &amp; <i>min</i>, const QDateTime &amp; <i>max</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#displayFormat-prop">setDisplayFormat</a></b> ( const QString &amp; <i>format</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#maximumDate-prop">setMaximumDate</a></b> ( const QDate &amp; <i>max</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#maximumDateTime-prop">setMaximumDateTime</a></b> ( const QDateTime &amp; <i>dt</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#maximumTime-prop">setMaximumTime</a></b> ( const QTime &amp; <i>max</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#minimumDate-prop">setMinimumDate</a></b> ( const QDate &amp; <i>min</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#minimumDateTime-prop">setMinimumDateTime</a></b> ( const QDateTime &amp; <i>dt</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#minimumTime-prop">setMinimumTime</a></b> ( const QTime &amp; <i>min</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#setSelectedSection">setSelectedSection</a></b> ( Section <i>section</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#setTimeRange">setTimeRange</a></b> ( const QTime &amp; <i>min</i>, const QTime &amp; <i>max</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#timeSpec-prop">setTimeSpec</a></b> ( Qt::TimeSpec <i>spec</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QTime </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#time-prop">time</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::TimeSpec </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#timeSpec-prop">timeSpec</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 void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#clear">clear</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#event">event</a></b> ( QEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSize </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#sizeHint">sizeHint</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#stepBy">stepBy</a></b> ( int <i>steps</i> )</td></tr>
</table>
<ul>
<li class="fn">28 public functions inherited from <a href="qabstractspinbox.html#public-functions">QAbstractSpinBox</a></li>
<li class="fn">221 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
<li class="fn">29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
<li class="fn">13 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<a name="public-slots"></a>
<h2>Public Slots</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#date-prop">setDate</a></b> ( const QDate &amp; <i>date</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#dateTime-prop">setDateTime</a></b> ( const QDateTime &amp; <i>dateTime</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#time-prop">setTime</a></b> ( const QTime &amp; <i>time</i> )</td></tr>
</table>
<ul>
<li class="fn">4 public slots inherited from <a href="qabstractspinbox.html#public-slots">QAbstractSpinBox</a></li>
<li class="fn">19 public slots inherited from <a href="qwidget.html#public-slots">QWidget</a></li>
<li class="fn">1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
</ul>
<a name="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#dateChanged">dateChanged</a></b> ( const QDate &amp; <i>date</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#dateTimeChanged">dateTimeChanged</a></b> ( const QDateTime &amp; <i>datetime</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#timeChanged">timeChanged</a></b> ( const QTime &amp; <i>time</i> )</td></tr>
</table>
<ul>
<li class="fn">1 signal inherited from <a href="qabstractspinbox.html#signals">QAbstractSpinBox</a></li>
<li class="fn">1 signal inherited from <a href="qwidget.html#signals">QWidget</a></li>
<li class="fn">1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
</ul>
<a name="protected-functions"></a>
<h2>Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual QDateTime </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#dateTimeFromText">dateTimeFromText</a></b> ( const QString &amp; <i>text</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#initStyleOption">initStyleOption</a></b> ( QStyleOptionSpinBox * <i>option</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QString </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#textFromDateTime">textFromDateTime</a></b> ( const QDateTime &amp; <i>dateTime</i> ) const</td></tr>
</table>
<a name="reimplemented-protected-functions"></a>
<h2>Reimplemented Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#fixup">fixup</a></b> ( QString &amp; <i>input</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#focusInEvent">focusInEvent</a></b> ( QFocusEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#focusNextPrevChild">focusNextPrevChild</a></b> ( bool <i>next</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.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="qdatetimeedit.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="qdatetimeedit.html#paintEvent">paintEvent</a></b> ( QPaintEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual StepEnabled </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#stepEnabled">stepEnabled</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QValidator::State </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#validate">validate</a></b> ( QString &amp; <i>text</i>, int &amp; <i>pos</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qdatetimeedit.html#wheelEvent">wheelEvent</a></b> ( QWheelEvent * <i>event</i> )</td></tr>
</table>
<ul>
<li class="fn">20 protected functions inherited from <a href="qabstractspinbox.html#protected-functions">QAbstractSpinBox</a></li>
<li class="fn">37 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
<li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
<li class="fn">1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li>
</ul>
<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>
<!-- $$$QDateTimeEdit-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QDateTimeEdit class provides a widget for editing dates and times.</p>
<p>QDateTimeEdit allows the user to edit dates by using the keyboard or the arrow keys to increase and decrease date and time values. The arrow keys can be used to move from section to section within the QDateTimeEdit box. Dates and times appear in accordance with the format set; see <a href="qdatetimeedit.html#displayFormat-prop">setDisplayFormat</a>().</p>
<pre class="cpp"> <span class="type">QDateTimeEdit</span> <span class="operator">*</span>dateEdit <span class="operator">=</span> <span class="keyword">new</span> <span class="type">QDateTimeEdit</span>(<span class="type"><a href="qdate.html">QDate</a></span><span class="operator">::</span>currentDate());
 dateEdit<span class="operator">-</span><span class="operator">&gt;</span><a href="qdatetimeedit.html#minimumDate-prop">setMinimumDate</a>(<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>));
 dateEdit<span class="operator">-</span><span class="operator">&gt;</span><a href="qdatetimeedit.html#maximumDate-prop">setMaximumDate</a>(<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><a href="qdatetimeedit.html#displayFormat-prop">setDisplayFormat</a>(<span class="string">&quot;yyyy.MM.dd&quot;</span>);</pre>
<p>Here we've created a new QDateTimeEdit object initialized 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.</p>
<p>The minimum value for QDateTimeEdit is 14 September 1752, and 2 January 4713BC for <a href="qdate.html">QDate</a>. You can change this by calling <a href="qdatetimeedit.html#minimumDate-prop">setMinimumDate</a>(), <a href="qdatetimeedit.html#maximumDate-prop">setMaximumDate</a>(), <a href="qdatetimeedit.html#minimumTime-prop">setMinimumTime</a>(), and <a href="qdatetimeedit.html#maximumTime-prop">setMaximumTime</a>().</p>
<a name="using-a-pop-up-calendar-widget"></a>
<h3>Using a Pop-up Calendar Widget</h3>
<p>QDateTimeEdit can be configured to allow a <a href="qcalendarwidget.html">QCalendarWidget</a> to be used to select dates. This is enabled by setting the <a href="qdatetimeedit.html#calendarPopup-prop">calendarPopup</a> property. Additionally, you can supply a custom calendar widget for use as the calendar pop-up by calling the <a href="qdatetimeedit.html#setCalendarWidget">setCalendarWidget</a>() function. The existing calendar widget can be retrieved with <a href="qdatetimeedit.html#calendarWidget">calendarWidget</a>().</p>
<table class="generic" width="100%">
 <tr valign="top" class="odd"><td ><img src="images/windowsxp-datetimeedit.png" alt="Screenshot of a Windows XP style date time editing widget" /></td><td >A date time editing widget shown in the <a href="gallery-windowsxp.html">Windows XP widget style</a>.</td></tr>
<tr valign="top" class="even"><td ><img src="images/macintosh-datetimeedit.png" alt="Screenshot of a Macintosh style date time editing widget" /></td><td >A date time editing widget shown in the <a href="gallery-macintosh.html">Macintosh widget style</a>.</td></tr>
<tr valign="top" class="odd"><td ><img src="images/plastique-datetimeedit.png" alt="Screenshot of a Plastique style date time editing widget" /></td><td >A date time editing widget shown in the <a href="gallery-plastique.html">Plastique widget style</a>.</td></tr>
</table>
</div>
<p><b>See also </b><a href="qdateedit.html">QDateEdit</a>, <a href="qtimeedit.html">QTimeEdit</a>, <a href="qdate.html">QDate</a>, and <a href="qtime.html">QTime</a>.</p>
<!-- @@@QDateTimeEdit -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$Section$$$NoSection$$$AmPmSection$$$MSecSection$$$SecondSection$$$MinuteSection$$$HourSection$$$DaySection$$$MonthSection$$$YearSection$$$TimeSections_Mask$$$DateSections_Mask -->
<h3 class="flags"><a name="Section-enum"></a>enum QDateTimeEdit::<span class="name">Section</span><br/>flags QDateTimeEdit::<span class="name">Sections</span></h3>
<table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><tt>QDateTimeEdit::NoSection</tt></td><td class="topAlign"><tt>0x0000</tt></td></tr>
<tr><td class="topAlign"><tt>QDateTimeEdit::AmPmSection</tt></td><td class="topAlign"><tt>0x0001</tt></td></tr>
<tr><td class="topAlign"><tt>QDateTimeEdit::MSecSection</tt></td><td class="topAlign"><tt>0x0002</tt></td></tr>
<tr><td class="topAlign"><tt>QDateTimeEdit::SecondSection</tt></td><td class="topAlign"><tt>0x0004</tt></td></tr>
<tr><td class="topAlign"><tt>QDateTimeEdit::MinuteSection</tt></td><td class="topAlign"><tt>0x0008</tt></td></tr>
<tr><td class="topAlign"><tt>QDateTimeEdit::HourSection</tt></td><td class="topAlign"><tt>0x0010</tt></td></tr>
<tr><td class="topAlign"><tt>QDateTimeEdit::DaySection</tt></td><td class="topAlign"><tt>0x0100</tt></td></tr>
<tr><td class="topAlign"><tt>QDateTimeEdit::MonthSection</tt></td><td class="topAlign"><tt>0x0200</tt></td></tr>
<tr><td class="topAlign"><tt>QDateTimeEdit::YearSection</tt></td><td class="topAlign"><tt>0x0400</tt></td></tr>
</table>
<p>The Sections type is a typedef for <a href="qflags.html">QFlags</a>&lt;Section&gt;. It stores an OR combination of Section values.</p>
<!-- @@@Section -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$calendarPopup-prop$$$calendarPopup$$$setCalendarPopupbool -->
<h3 class="fn"><a name="calendarPopup-prop"></a><span class="name">calendarPopup</span> : <span class="type">bool</span></h3>
<p>This property holds the current calendar pop-up showing mode.</p>
<p>The calendar pop-up will be shown upon clicking the arrow button. This property is valid only if there is a valid date display format.</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>calendarPopup</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCalendarPopup</b></span> ( bool <i>enable</i> )</td></tr>
</table>
<p><b>See also </b><a href="qdatetimeedit.html#displayFormat-prop">setDisplayFormat</a>().</p>
<!-- @@@calendarPopup -->
<!-- $$$currentSection-prop$$$currentSection$$$setCurrentSectionSection -->
<h3 class="fn"><a name="currentSection-prop"></a><span class="name">currentSection</span> : <span class="type"><a href="qdatetimeedit.html#Section-enum">Section</a></span></h3>
<p>This property holds the current section of the spinbox setCurrentSection().</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> Section </td><td class="memItemRight bottomAlign"><span class="name"><b>currentSection</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCurrentSection</b></span> ( Section <i>section</i> )</td></tr>
</table>
<!-- @@@currentSection -->
<!-- $$$currentSectionIndex-prop$$$currentSectionIndex$$$setCurrentSectionIndexint -->
<h3 class="fn"><a name="currentSectionIndex-prop"></a><span class="name">currentSectionIndex</span> : <span class="type">int</span></h3>
<p>This property holds the current section index of the spinbox.</p>
<p>If the format is 'yyyy/MM/dd', the displayText is '2001/05/21' and the cursorPosition is 5 currentSectionIndex returns 1. If the cursorPosition is 3 currentSectionIndex is 0 etc.</p>
<p><i>setCurrentSection()</i></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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>currentSectionIndex</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCurrentSectionIndex</b></span> ( int <i>index</i> )</td></tr>
</table>
<p><b>See also </b><a href="qdatetimeedit.html#currentSection-prop">currentSection</a>().</p>
<!-- @@@currentSectionIndex -->
<!-- $$$date-prop$$$date$$$setDateconstQDate&$$$dateChangedconstQDate& -->
<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 QDate that is set in the widget.</p>
<p>By default, this property contains a date that refers to January 1, 2000.</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"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDate</b></span> ( const QDate &amp; <i>date</i> )</td></tr>
</table>
<p><b>Notifier signal:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qdatetimeedit.html#dateChanged">dateChanged</a></b></span> ( const QDate &amp; <i>date</i> )</td></tr>
</table>
<p><b>See also </b><a href="qdatetimeedit.html#time-prop">time</a> and <a href="qdatetimeedit.html#dateTime-prop">dateTime</a>.</p>
<!-- @@@date -->
<!-- $$$dateTime-prop$$$dateTime$$$setDateTimeconstQDateTime&$$$dateTimeChangedconstQDateTime& -->
<h3 class="fn"><a name="dateTime-prop"></a><span class="name">dateTime</span> : <span class="type"><a href="qdatetime.html">QDateTime</a></span></h3>
<p>This property holds the QDateTime that is set in the QDateTimeEdit.</p>
<p>When setting this property the timespec of the <a href="qdatetimeedit.html">QDateTimeEdit</a> remains the same and the timespec of the new <a href="qdatetime.html">QDateTime</a> is ignored.</p>
<p>By default, this property contains a date that refers to January 1, 2000 and a time of 00:00:00 and 0 milliseconds.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QDateTime </td><td class="memItemRight bottomAlign"><span class="name"><b>dateTime</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDateTime</b></span> ( const QDateTime &amp; <i>dateTime</i> )</td></tr>
</table>
<p><b>Notifier signal:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qdatetimeedit.html#dateTimeChanged">dateTimeChanged</a></b></span> ( const QDateTime &amp; <i>datetime</i> )</td></tr>
</table>
<p><b>See also </b><a href="qdatetimeedit.html#date-prop">date</a> and <a href="qdatetimeedit.html#time-prop">time</a>.</p>
<!-- @@@dateTime -->
<!-- $$$displayFormat-prop$$$displayFormat$$$setDisplayFormatconstQString& -->
<h3 class="fn"><a name="displayFormat-prop"></a><span class="name">displayFormat</span> : <span class="type"><a href="qstring.html">QString</a></span></h3>
<p>This property holds the format used to display the time/date of the date time edit.</p>
<p>This format is the same as the one used described in <a href="qdatetime.html#toString">QDateTime::toString</a>() and <a href="qdatetime.html#fromString">QDateTime::fromString</a>()</p>
<p>Example format strings (assuming that the date is 2nd of July 1969):</p>
<table class="generic">
<thead><tr class="qt-style"><th >Format</th><th >Result</th></tr></thead>
<tr valign="top" class="odd"><td >dd.MM.yyyy</td><td >02.07.1969</td></tr>
<tr valign="top" class="even"><td >MMM d yy</td><td >Jul 2 69</td></tr>
<tr valign="top" class="odd"><td >MMMM d yy</td><td >July 2 69</td></tr>
</table>
<p>Note that if you specify a two digit year, it will be interpreted to be in the century in which the date time edit was initialized. The default century is the 21 (2000-2099).</p>
<p>If you specify an invalid format the format will not be set.</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>displayFormat</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDisplayFormat</b></span> ( const QString &amp; <i>format</i> )</td></tr>
</table>
<p><b>See also </b><a href="qdatetime.html#toString">QDateTime::toString</a>() and <a href="qdatetimeedit.html#displayedSections-prop">displayedSections</a>().</p>
<!-- @@@displayFormat -->
<!-- $$$displayedSections-prop$$$displayedSections -->
<h3 class="fn"><a name="displayedSections-prop"></a><span class="name">displayedSections</span> : const <span class="type"><a href="qdatetimeedit.html#Section-enum">Sections</a></span></h3>
<p>This property holds the currently displayed fields of the date time edit.</p>
<p>Returns a bit set of the displayed sections for this format. <i>setDisplayFormat()</i>, <a href="qdatetimeedit.html#displayFormat-prop">displayFormat</a>()</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> Sections </td><td class="memItemRight bottomAlign"><span class="name"><b>displayedSections</b></span> () const</td></tr>
</table>
<!-- @@@displayedSections -->
<!-- $$$maximumDate-prop$$$maximumDate$$$setMaximumDateconstQDate&$$$clearMaximumDate -->
<h3 class="fn"><a name="maximumDate-prop"></a><span class="name">maximumDate</span> : <span class="type"><a href="qdate.html">QDate</a></span></h3>
<p>This property holds the maximum date of the date time edit.</p>
<p>When setting this property the <a href="qdatetimeedit.html#minimumDate-prop">minimumDate</a> is adjusted if necessary to ensure that the range remains valid. If the date is not a valid <a href="qdate.html">QDate</a> object, this function does nothing.</p>
<p>By default, this property contains a date that refers to December 31, 7999.</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>maximumDate</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMaximumDate</b></span> ( const QDate &amp; <i>max</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>clearMaximumDate</b></span> ()</td></tr>
</table>
<p><b>See also </b><a href="qdatetimeedit.html#minimumDate-prop">minimumDate</a>, <a href="qdatetimeedit.html#minimumTime-prop">minimumTime</a>, <a href="qdatetimeedit.html#maximumTime-prop">maximumTime</a>, and <a href="qdatetimeedit.html#setDateRange">setDateRange</a>().</p>
<!-- @@@maximumDate -->
<!-- $$$maximumDateTime-prop$$$maximumDateTime$$$setMaximumDateTimeconstQDateTime&$$$clearMaximumDateTime -->
<h3 class="fn"><a name="maximumDateTime-prop"></a><span class="name">maximumDateTime</span> : <span class="type"><a href="qdatetime.html">QDateTime</a></span></h3>
<p>This property holds the maximum datetime of the date time edit.</p>
<p>When setting this property the <a href="qdatetimeedit.html#minimumDateTime-prop">minimumDateTime</a>() is adjusted if necessary to ensure that the range remains valid. If the datetime is not a valid <a href="qdatetime.html">QDateTime</a> object, this function does nothing.</p>
<p>The default maximumDateTime can be restored with clearMaximumDateTime().</p>
<p>By default, this property contains a date that refers to 31 December, 7999 and a time of 23:59:59 and 999 milliseconds.</p>
<p>This property was introduced in Qt 4.4.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QDateTime </td><td class="memItemRight bottomAlign"><span class="name"><b>maximumDateTime</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMaximumDateTime</b></span> ( const QDateTime &amp; <i>dt</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>clearMaximumDateTime</b></span> ()</td></tr>
</table>
<p><b>See also </b><a href="qdatetimeedit.html#minimumDateTime-prop">minimumDateTime</a>(), <a href="qdatetimeedit.html#minimumTime-prop">minimumTime</a>(), <a href="qdatetimeedit.html#maximumTime-prop">maximumTime</a>(), <a href="qdatetimeedit.html#minimumDate-prop">minimumDate</a>(), <a href="qdatetimeedit.html#maximumDate-prop">maximumDate</a>(), <a href="qdatetimeedit.html#setDateTimeRange">setDateTimeRange</a>(), <a href="qdatetimeedit.html#setDateRange">setDateRange</a>(), <a href="qdatetimeedit.html#setTimeRange">setTimeRange</a>(), <a href="qdatetimeedit.html#minimumDateTime-prop">clearMinimumDateTime</a>(), <a href="qdatetimeedit.html#minimumDate-prop">clearMinimumDate</a>(), <a href="qdatetimeedit.html#maximumDate-prop">clearMaximumDate</a>(), <a href="qdatetimeedit.html#minimumTime-prop">clearMinimumTime</a>(), and <a href="qdatetimeedit.html#maximumTime-prop">clearMaximumTime</a>().</p>
<!-- @@@maximumDateTime -->
<!-- $$$maximumTime-prop$$$maximumTime$$$setMaximumTimeconstQTime&$$$clearMaximumTime -->
<h3 class="fn"><a name="maximumTime-prop"></a><span class="name">maximumTime</span> : <span class="type"><a href="qtime.html">QTime</a></span></h3>
<p>This property holds the maximum time of the date time edit.</p>
<p>When setting this property, the <a href="qdatetimeedit.html#minimumTime-prop">minimumTime</a> is adjusted if necessary to ensure that the range remains valid. If the time is not a valid <a href="qtime.html">QTime</a> object, this function does nothing.</p>
<p>By default, this property contains a time of 23:59:59 and 999 milliseconds.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QTime </td><td class="memItemRight bottomAlign"><span class="name"><b>maximumTime</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMaximumTime</b></span> ( const QTime &amp; <i>max</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>clearMaximumTime</b></span> ()</td></tr>
</table>
<p><b>See also </b><a href="qdatetimeedit.html#minimumTime-prop">minimumTime</a>, <a href="qdatetimeedit.html#minimumDate-prop">minimumDate</a>, <a href="qdatetimeedit.html#maximumDate-prop">maximumDate</a>, and <a href="qdatetimeedit.html#setTimeRange">setTimeRange</a>().</p>
<!-- @@@maximumTime -->
<!-- $$$minimumDate-prop$$$minimumDate$$$setMinimumDateconstQDate&$$$clearMinimumDate -->
<h3 class="fn"><a name="minimumDate-prop"></a><span class="name">minimumDate</span> : <span class="type"><a href="qdate.html">QDate</a></span></h3>
<p>This property holds the minimum date of the date time edit.</p>
<p>When setting this property the <a href="qdatetimeedit.html#maximumDate-prop">maximumDate</a> is adjusted if necessary, to ensure that the range remains valid. If the date is not a valid <a href="qdate.html">QDate</a> object, this function does nothing.</p>
<p>By default, this property contains a date that refers to September 14, 1752. The minimum date must be at least the first day in year 100, otherwise setMinimumDate() has no effect.</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>minimumDate</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMinimumDate</b></span> ( const QDate &amp; <i>min</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>clearMinimumDate</b></span> ()</td></tr>
</table>
<p><b>See also </b><a href="qdatetimeedit.html#minimumTime-prop">minimumTime</a>(), <a href="qdatetimeedit.html#maximumTime-prop">maximumTime</a>(), and <a href="qdatetimeedit.html#setDateRange">setDateRange</a>().</p>
<!-- @@@minimumDate -->
<!-- $$$minimumDateTime-prop$$$minimumDateTime$$$setMinimumDateTimeconstQDateTime&$$$clearMinimumDateTime -->
<h3 class="fn"><a name="minimumDateTime-prop"></a><span class="name">minimumDateTime</span> : <span class="type"><a href="qdatetime.html">QDateTime</a></span></h3>
<p>This property holds the minimum datetime of the date time edit.</p>
<p>When setting this property the <a href="qdatetimeedit.html#maximumDateTime-prop">maximumDateTime</a>() is adjusted if necessary to ensure that the range remains valid. If the datetime is not a valid <a href="qdatetime.html">QDateTime</a> object, this function does nothing.</p>
<p>The default minimumDateTime can be restored with clearMinimumDateTime()</p>
<p>By default, this property contains a date that refers to September 14, 1752 and a time of 00:00:00 and 0 milliseconds.</p>
<p>This property was introduced in Qt 4.4.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QDateTime </td><td class="memItemRight bottomAlign"><span class="name"><b>minimumDateTime</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMinimumDateTime</b></span> ( const QDateTime &amp; <i>dt</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>clearMinimumDateTime</b></span> ()</td></tr>
</table>
<p><b>See also </b><a href="qdatetimeedit.html#maximumDateTime-prop">maximumDateTime</a>(), <a href="qdatetimeedit.html#minimumTime-prop">minimumTime</a>(), <a href="qdatetimeedit.html#maximumTime-prop">maximumTime</a>(), <a href="qdatetimeedit.html#minimumDate-prop">minimumDate</a>(), <a href="qdatetimeedit.html#maximumDate-prop">maximumDate</a>(), <a href="qdatetimeedit.html#setDateTimeRange">setDateTimeRange</a>(), <a href="qdatetimeedit.html#setDateRange">setDateRange</a>(), <a href="qdatetimeedit.html#setTimeRange">setTimeRange</a>(), <a href="qdatetimeedit.html#maximumDateTime-prop">clearMaximumDateTime</a>(), <a href="qdatetimeedit.html#minimumDate-prop">clearMinimumDate</a>(), <a href="qdatetimeedit.html#maximumDate-prop">clearMaximumDate</a>(), <a href="qdatetimeedit.html#minimumTime-prop">clearMinimumTime</a>(), and <a href="qdatetimeedit.html#maximumTime-prop">clearMaximumTime</a>().</p>
<!-- @@@minimumDateTime -->
<!-- $$$minimumTime-prop$$$minimumTime$$$setMinimumTimeconstQTime&$$$clearMinimumTime -->
<h3 class="fn"><a name="minimumTime-prop"></a><span class="name">minimumTime</span> : <span class="type"><a href="qtime.html">QTime</a></span></h3>
<p>This property holds the minimum time of the date time edit.</p>
<p>When setting this property the <a href="qdatetimeedit.html#maximumTime-prop">maximumTime</a> is adjusted if necessary, to ensure that the range remains valid. If the time is not a valid <a href="qtime.html">QTime</a> object, this function does nothing.</p>
<p>By default, this property contains a time of 00:00:00 and 0 milliseconds.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QTime </td><td class="memItemRight bottomAlign"><span class="name"><b>minimumTime</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMinimumTime</b></span> ( const QTime &amp; <i>min</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>clearMinimumTime</b></span> ()</td></tr>
</table>
<p><b>See also </b><a href="qdatetimeedit.html#maximumTime-prop">maximumTime</a>, <a href="qdatetimeedit.html#minimumDate-prop">minimumDate</a>, <a href="qdatetimeedit.html#maximumDate-prop">maximumDate</a>, and <a href="qdatetimeedit.html#setTimeRange">setTimeRange</a>().</p>
<!-- @@@minimumTime -->
<!-- $$$sectionCount-prop$$$sectionCount -->
<h3 class="fn"><a name="sectionCount-prop"></a><span class="name">sectionCount</span> : const <span class="type">int</span></h3>
<p>This property holds the number of sections displayed. If the format is 'yyyy/yy/yyyy', sectionCount returns 3.</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"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>sectionCount</b></span> () const</td></tr>
</table>
<!-- @@@sectionCount -->
<!-- $$$time-prop$$$time$$$setTimeconstQTime&$$$timeChangedconstQTime& -->
<h3 class="fn"><a name="time-prop"></a><span class="name">time</span> : <span class="type"><a href="qtime.html">QTime</a></span></h3>
<p>This property holds the QTime that is set in the widget.</p>
<p>By default, this property contains a time of 00:00:00 and 0 milliseconds.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QTime </td><td class="memItemRight bottomAlign"><span class="name"><b>time</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTime</b></span> ( const QTime &amp; <i>time</i> )</td></tr>
</table>
<p><b>Notifier signal:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qdatetimeedit.html#timeChanged">timeChanged</a></b></span> ( const QTime &amp; <i>time</i> )</td></tr>
</table>
<p><b>See also </b><a href="qdatetimeedit.html#date-prop">date</a> and <a href="qdatetimeedit.html#dateTime-prop">dateTime</a>.</p>
<!-- @@@time -->
<!-- $$$timeSpec-prop$$$timeSpec$$$setTimeSpecQt::TimeSpec -->
<h3 class="fn"><a name="timeSpec-prop"></a><span class="name">timeSpec</span> : <span class="type"><a href="qt.html#TimeSpec-enum">Qt::TimeSpec</a></span></h3>
<p>This property holds the current timespec used by the date time edit.</p>
<p>This property was introduced in Qt 4.4.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> Qt::TimeSpec </td><td class="memItemRight bottomAlign"><span class="name"><b>timeSpec</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTimeSpec</b></span> ( Qt::TimeSpec <i>spec</i> )</td></tr>
</table>
<!-- @@@timeSpec -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QDateTimeEdit[overload1]$$$QDateTimeEditQWidget* -->
<h3 class="fn"><a name="QDateTimeEdit"></a>QDateTimeEdit::<span class="name">QDateTimeEdit</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0 )</h3>
<p>Constructs an empty date time editor with a <i>parent</i>.</p>
<!-- @@@QDateTimeEdit -->
<!-- $$$QDateTimeEdit$$$QDateTimeEditconstQDateTime&QWidget* -->
<h3 class="fn"><a name="QDateTimeEdit-2"></a>QDateTimeEdit::<span class="name">QDateTimeEdit</span> ( const <span class="type"><a href="qdatetime.html">QDateTime</a></span> &amp; <i>datetime</i>, <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0 )</h3>
<p>Constructs an empty date time editor with a <i>parent</i>. The value is set to <i>datetime</i>.</p>
<!-- @@@QDateTimeEdit -->
<!-- $$$QDateTimeEdit$$$QDateTimeEditconstQDate&QWidget* -->
<h3 class="fn"><a name="QDateTimeEdit-3"></a>QDateTimeEdit::<span class="name">QDateTimeEdit</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 )</h3>
<p>Constructs an empty date time editor with a <i>parent</i>. The value is set to <i>date</i>.</p>
<!-- @@@QDateTimeEdit -->
<!-- $$$QDateTimeEdit$$$QDateTimeEditconstQTime&QWidget* -->
<h3 class="fn"><a name="QDateTimeEdit-4"></a>QDateTimeEdit::<span class="name">QDateTimeEdit</span> ( const <span class="type"><a href="qtime.html">QTime</a></span> &amp; <i>time</i>, <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0 )</h3>
<p>Constructs an empty date time editor with a <i>parent</i>. The value is set to <i>time</i>.</p>
<!-- @@@QDateTimeEdit -->
<!-- $$$calendarWidget[overload1]$$$calendarWidget -->
<h3 class="fn"><a name="calendarWidget"></a><span class="type"><a href="qcalendarwidget.html">QCalendarWidget</a></span> * QDateTimeEdit::<span class="name">calendarWidget</span> () const</h3>
<p>Returns the calendar widget for the editor if <a href="qdatetimeedit.html#calendarPopup-prop">calendarPopup</a> is set to true and (<a href="qml-presenting-data.html#sections">sections</a>() &amp; <a href="qdatetimeedit.html#Section-enum">DateSections_Mask</a>) != 0.</p>
<p>This function creates and returns a calendar widget if none has been set.</p>
<p>This function was introduced in Qt 4.4.</p>
<p><b>See also </b><a href="qdatetimeedit.html#setCalendarWidget">setCalendarWidget</a>().</p>
<!-- @@@calendarWidget -->
<!-- $$$clear[overload1]$$$clear -->
<h3 class="fn"><a name="clear"></a><span class="type">void</span> QDateTimeEdit::<span class="name">clear</span> ()<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qabstractspinbox.html#clear">QAbstractSpinBox::clear</a>().</p>
<!-- @@@clear -->
<!-- $$$dateChanged[overload1]$$$dateChangedconstQDate& -->
<h3 class="fn"><a name="dateChanged"></a><span class="type">void</span> QDateTimeEdit::<span class="name">dateChanged</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 date is changed. The new date is passed in <i>date</i>.</p>
<!-- @@@dateChanged -->
<!-- $$$dateTimeChanged[overload1]$$$dateTimeChangedconstQDateTime& -->
<h3 class="fn"><a name="dateTimeChanged"></a><span class="type">void</span> QDateTimeEdit::<span class="name">dateTimeChanged</span> ( const <span class="type"><a href="qdatetime.html">QDateTime</a></span> &amp; <i>datetime</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the date or time is changed. The new date and time is passed in <i>datetime</i>.</p>
<!-- @@@dateTimeChanged -->
<!-- $$$dateTimeFromText[overload1]$$$dateTimeFromTextconstQString& -->
<h3 class="fn"><a name="dateTimeFromText"></a><span class="type"><a href="qdatetime.html">QDateTime</a></span> QDateTimeEdit::<span class="name">dateTimeFromText</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i> ) const<tt> [virtual protected]</tt></h3>
<p>Returns an appropriate datetime for the given <i>text</i>.</p>
<p>This virtual function is used by the datetime edit whenever it needs to interpret text entered by the user as a value.</p>
<p><b>See also </b><a href="qdatetimeedit.html#textFromDateTime">textFromDateTime</a>() and <a href="qdatetimeedit.html#validate">validate</a>().</p>
<!-- @@@dateTimeFromText -->
<!-- $$$event[overload1]$$$eventQEvent* -->
<h3 class="fn"><a name="event"></a><span class="type">bool</span> QDateTimeEdit::<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> QDateTimeEdit::<span class="name">fixup</span> ( <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>input</i> ) const<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractspinbox.html#fixup">QAbstractSpinBox::fixup</a>().</p>
<!-- @@@fixup -->
<!-- $$$focusInEvent[overload1]$$$focusInEventQFocusEvent* -->
<h3 class="fn"><a name="focusInEvent"></a><span class="type">void</span> QDateTimeEdit::<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 -->
<!-- $$$focusNextPrevChild[overload1]$$$focusNextPrevChildbool -->
<h3 class="fn"><a name="focusNextPrevChild"></a><span class="type">bool</span> QDateTimeEdit::<span class="name">focusNextPrevChild</span> ( <span class="type">bool</span> <i>next</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#focusNextPrevChild">QWidget::focusNextPrevChild</a>().</p>
<!-- @@@focusNextPrevChild -->
<!-- $$$initStyleOption[overload1]$$$initStyleOptionQStyleOptionSpinBox* -->
<h3 class="fn"><a name="initStyleOption"></a><span class="type">void</span> QDateTimeEdit::<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 QDataTimeEdit. 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 -->
<!-- $$$keyPressEvent[overload1]$$$keyPressEventQKeyEvent* -->
<h3 class="fn"><a name="keyPressEvent"></a><span class="type">void</span> QDateTimeEdit::<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>
<!-- @@@keyPressEvent -->
<!-- $$$mousePressEvent[overload1]$$$mousePressEventQMouseEvent* -->
<h3 class="fn"><a name="mousePressEvent"></a><span class="type">void</span> QDateTimeEdit::<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 -->
<!-- $$$paintEvent[overload1]$$$paintEventQPaintEvent* -->
<h3 class="fn"><a name="paintEvent"></a><span class="type">void</span> QDateTimeEdit::<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 -->
<!-- $$$sectionAt[overload1]$$$sectionAtint -->
<h3 class="fn"><a name="sectionAt"></a><span class="type"><a href="qdatetimeedit.html#Section-enum">Section</a></span> QDateTimeEdit::<span class="name">sectionAt</span> ( <span class="type">int</span> <i>index</i> ) const</h3>
<p>Returns the Section at <i>index</i>.</p>
<p>If the format is 'yyyy/MM/dd', sectionAt(0) returns <a href="qdatetimeedit.html#Section-enum">YearSection</a>, sectionAt(1) returns <a href="qdatetimeedit.html#Section-enum">MonthSection</a>, and sectionAt(2) returns <a href="qdatetimeedit.html#Section-enum">YearSection</a>,</p>
<p>This function was introduced in Qt 4.3.</p>
<!-- @@@sectionAt -->
<!-- $$$sectionText[overload1]$$$sectionTextSection -->
<h3 class="fn"><a name="sectionText"></a><span class="type"><a href="qstring.html">QString</a></span> QDateTimeEdit::<span class="name">sectionText</span> ( <span class="type"><a href="qdatetimeedit.html#Section-enum">Section</a></span> <i>section</i> ) const</h3>
<p>Returns the text from the given <i>section</i>.</p>
<p><b>See also </b><a href="qdatetimeedit.html#currentSection-prop">currentSection</a>().</p>
<!-- @@@sectionText -->
<!-- $$$setCalendarWidget[overload1]$$$setCalendarWidgetQCalendarWidget* -->
<h3 class="fn"><a name="setCalendarWidget"></a><span class="type">void</span> QDateTimeEdit::<span class="name">setCalendarWidget</span> ( <span class="type"><a href="qcalendarwidget.html">QCalendarWidget</a></span> * <i>calendarWidget</i> )</h3>
<p>Sets the given <i>calendarWidget</i> as the widget to be used for the calendar pop-up. The editor does not automatically take ownership of the calendar widget.</p>
<p><b>Note:</b> <a href="qdatetimeedit.html#calendarPopup-prop">calendarPopup</a> must be set to true before setting the calendar widget.</p>
<p>This function was introduced in Qt 4.4.</p>
<p><b>See also </b><a href="qdatetimeedit.html#calendarWidget">calendarWidget</a>() and <a href="qdatetimeedit.html#calendarPopup-prop">calendarPopup</a>.</p>
<!-- @@@setCalendarWidget -->
<!-- $$$setDateRange[overload1]$$$setDateRangeconstQDate&constQDate& -->
<h3 class="fn"><a name="setDateRange"></a><span class="type">void</span> QDateTimeEdit::<span class="name">setDateRange</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> )</h3>
<p>Convenience function to set minimum and maximum date with one function call.</p>
<pre class="cpp"> setDateRange(min<span class="operator">,</span> max);</pre>
<p>is analogous to:</p>
<pre class="cpp"> <a href="qdatetimeedit.html#minimumDate-prop">setMinimumDate</a>(min);
 <a href="qdatetimeedit.html#maximumDate-prop">setMaximumDate</a>(max);</pre>
<p>If either <i>min</i> or <i>max</i> are not valid, this function does nothing.</p>
<p><b>See also </b><a href="qdatetimeedit.html#minimumDate-prop">setMinimumDate</a>(), <a href="qdatetimeedit.html#maximumDate-prop">maximumDate</a>(), <a href="qdatetimeedit.html#maximumDate-prop">setMaximumDate</a>(), <a href="qdatetimeedit.html#minimumDate-prop">clearMinimumDate</a>(), <a href="qdatetimeedit.html#minimumTime-prop">setMinimumTime</a>(), <a href="qdatetimeedit.html#maximumTime-prop">maximumTime</a>(), <a href="qdatetimeedit.html#maximumTime-prop">setMaximumTime</a>(), <a href="qdatetimeedit.html#minimumTime-prop">clearMinimumTime</a>(), and <a href="qdate.html#isValid">QDate::isValid</a>().</p>
<!-- @@@setDateRange -->
<!-- $$$setDateTimeRange[overload1]$$$setDateTimeRangeconstQDateTime&constQDateTime& -->
<h3 class="fn"><a name="setDateTimeRange"></a><span class="type">void</span> QDateTimeEdit::<span class="name">setDateTimeRange</span> ( const <span class="type"><a href="qdatetime.html">QDateTime</a></span> &amp; <i>min</i>, const <span class="type"><a href="qdatetime.html">QDateTime</a></span> &amp; <i>max</i> )</h3>
<p>Convenience function to set minimum and maximum date time with one function call.</p>
<pre class="cpp"> setDateTimeRange(min<span class="operator">,</span> max);</pre>
<p>is analogous to:</p>
<pre class="cpp"> <a href="qdatetimeedit.html#minimumDateTime-prop">setMinimumDateTime</a>(min);
 <a href="qdatetimeedit.html#maximumDateTime-prop">setMaximumDateTime</a>(max);</pre>
<p>If either <i>min</i> or <i>max</i> are not valid, this function does nothing.</p>
<p>This function was introduced in Qt 4.4.</p>
<p><b>See also </b><a href="qdatetimeedit.html#minimumDate-prop">setMinimumDate</a>(), <a href="qdatetimeedit.html#maximumDate-prop">maximumDate</a>(), <a href="qdatetimeedit.html#maximumDate-prop">setMaximumDate</a>(), <a href="qdatetimeedit.html#minimumDate-prop">clearMinimumDate</a>(), <a href="qdatetimeedit.html#minimumTime-prop">setMinimumTime</a>(), <a href="qdatetimeedit.html#maximumTime-prop">maximumTime</a>(), <a href="qdatetimeedit.html#maximumTime-prop">setMaximumTime</a>(), <a href="qdatetimeedit.html#minimumTime-prop">clearMinimumTime</a>(), and <a href="qdatetime.html#isValid">QDateTime::isValid</a>().</p>
<!-- @@@setDateTimeRange -->
<!-- $$$setSelectedSection[overload1]$$$setSelectedSectionSection -->
<h3 class="fn"><a name="setSelectedSection"></a><span class="type">void</span> QDateTimeEdit::<span class="name">setSelectedSection</span> ( <span class="type"><a href="qdatetimeedit.html#Section-enum">Section</a></span> <i>section</i> )</h3>
<p>Selects <i>section</i>. If <i>section</i> doesn't exist in the currently displayed sections this function does nothing. If <i>section</i> is <a href="qdatetimeedit.html#Section-enum">NoSection</a> this function will unselect all text in the editor. Otherwise this function will move the cursor and the current section to the selected section.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also </b><a href="qdatetimeedit.html#currentSection-prop">currentSection</a>().</p>
<!-- @@@setSelectedSection -->
<!-- $$$setTimeRange[overload1]$$$setTimeRangeconstQTime&constQTime& -->
<h3 class="fn"><a name="setTimeRange"></a><span class="type">void</span> QDateTimeEdit::<span class="name">setTimeRange</span> ( const <span class="type"><a href="qtime.html">QTime</a></span> &amp; <i>min</i>, const <span class="type"><a href="qtime.html">QTime</a></span> &amp; <i>max</i> )</h3>
<p>Convenience function to set minimum and maximum time with one function call.</p>
<pre class="cpp"> setTimeRange(min<span class="operator">,</span> max);</pre>
<p>is analogous to:</p>
<pre class="cpp"> <a href="qdatetimeedit.html#minimumTime-prop">setMinimumTime</a>(min);
 <a href="qdatetimeedit.html#maximumTime-prop">setMaximumTime</a>(max);</pre>
<p>If either <i>min</i> or <i>max</i> are not valid, this function does nothing.</p>
<p><b>See also </b><a href="qdatetimeedit.html#minimumDate-prop">setMinimumDate</a>(), <a href="qdatetimeedit.html#maximumDate-prop">maximumDate</a>(), <a href="qdatetimeedit.html#maximumDate-prop">setMaximumDate</a>(), <a href="qdatetimeedit.html#minimumDate-prop">clearMinimumDate</a>(), <a href="qdatetimeedit.html#minimumTime-prop">setMinimumTime</a>(), <a href="qdatetimeedit.html#maximumTime-prop">maximumTime</a>(), <a href="qdatetimeedit.html#maximumTime-prop">setMaximumTime</a>(), <a href="qdatetimeedit.html#minimumTime-prop">clearMinimumTime</a>(), and <a href="qtime.html#isValid">QTime::isValid</a>().</p>
<!-- @@@setTimeRange -->
<!-- $$$sizeHint[overload1]$$$sizeHint -->
<h3 class="fn"><a name="sizeHint"></a><span class="type"><a href="qsize.html">QSize</a></span> QDateTimeEdit::<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> QDateTimeEdit::<span class="name">stepBy</span> ( <span class="type">int</span> <i>steps</i> )<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qabstractspinbox.html#stepBy">QAbstractSpinBox::stepBy</a>().</p>
<!-- @@@stepBy -->
<!-- $$$stepEnabled[overload1]$$$stepEnabled -->
<h3 class="fn"><a name="stepEnabled"></a><span class="type"><a href="qabstractspinbox.html#StepEnabledFlag-enum">StepEnabled</a></span> QDateTimeEdit::<span class="name">stepEnabled</span> () const<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractspinbox.html#stepEnabled">QAbstractSpinBox::stepEnabled</a>().</p>
<!-- @@@stepEnabled -->
<!-- $$$textFromDateTime[overload1]$$$textFromDateTimeconstQDateTime& -->
<h3 class="fn"><a name="textFromDateTime"></a><span class="type"><a href="qstring.html">QString</a></span> QDateTimeEdit::<span class="name">textFromDateTime</span> ( const <span class="type"><a href="qdatetime.html">QDateTime</a></span> &amp; <i>dateTime</i> ) const<tt> [virtual protected]</tt></h3>
<p>This virtual function is used by the date time edit whenever it needs to display <i>dateTime</i>.</p>
<p>If you reimplement this, you may also need to reimplement <a href="qdatetimeedit.html#validate">validate</a>().</p>
<p><b>See also </b><a href="qdatetimeedit.html#dateTimeFromText">dateTimeFromText</a>() and <a href="qdatetimeedit.html#validate">validate</a>().</p>
<!-- @@@textFromDateTime -->
<!-- $$$timeChanged[overload1]$$$timeChangedconstQTime& -->
<h3 class="fn"><a name="timeChanged"></a><span class="type">void</span> QDateTimeEdit::<span class="name">timeChanged</span> ( const <span class="type"><a href="qtime.html">QTime</a></span> &amp; <i>time</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the time is changed. The new time is passed in <i>time</i>.</p>
<!-- @@@timeChanged -->
<!-- $$$validate[overload1]$$$validateQString&int& -->
<h3 class="fn"><a name="validate"></a><span class="type"><a href="qvalidator.html#State-enum">QValidator::State</a></span> QDateTimeEdit::<span class="name">validate</span> ( <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i>, <span class="type">int</span> &amp; <i>pos</i> ) const<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractspinbox.html#validate">QAbstractSpinBox::validate</a>().</p>
<!-- @@@validate -->
<!-- $$$wheelEvent[overload1]$$$wheelEventQWheelEvent* -->
<h3 class="fn"><a name="wheelEvent"></a><span class="type">void</span> QDateTimeEdit::<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>