<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <!-- qdatetimeedit.cpp --> <head> <title>Qt 4.6: QTimeEdit Class Reference</title> <link href="classic.css" rel="stylesheet" type="text/css" /> </head> <body> <a name="//apple_ref/cpp/cl//QTimeEdit"></a> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td> <td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="functions.html"><font color="#004faf">All Functions</font></a> · <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><h1 class="title">QTimeEdit Class Reference<br /><span class="small-subtitle">[<a href="qtgui.html">QtGui</a> module]</span> </h1> <p>The QTimeEdit class provides a widget for editing times based on the <a href="qdatetimeedit.html">QDateTimeEdit</a> widget. <a href="#details">More...</a></p> <pre> #include <QTimeEdit></pre><p>Inherits <a href="qdatetimeedit.html">QDateTimeEdit</a>.</p> <ul> <li><a href="qtimeedit-members.html">List of all members, including inherited members</a></li> </ul> <hr /> <a name="properties"></a> <h2>Properties</h2> <ul> <li><div class="fn"><b><a href="qtimeedit.html#time-prop">time</a></b> : QTime</div></li> </ul> <ul> <li><div bar="2" class="fn"></div>16 properties inherited from <a href="qdatetimeedit.html#properties">QDateTimeEdit</a></li> <li><div bar="2" class="fn"></div>11 properties inherited from <a href="qabstractspinbox.html#properties">QAbstractSpinBox</a></li> <li><div bar="2" class="fn"></div>58 properties inherited from <a href="qwidget.html#properties">QWidget</a></li> <li><div bar="2" class="fn"></div>1 property inherited from <a href="qobject.html#properties">QObject</a></li> </ul> <hr /> <a name="public-functions"></a> <h2>Public Functions</h2> <table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qtimeedit.html#QTimeEdit">QTimeEdit</a></b> ( QWidget * <i>parent</i> = 0 )</td></tr> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qtimeedit.html#QTimeEdit-2">QTimeEdit</a></b> ( const QTime & <i>time</i>, QWidget * <i>parent</i> = 0 )</td></tr> </table> <ul> <li><div bar="2" class="fn"></div>45 public functions inherited from <a href="qdatetimeedit.html#public-functions">QDateTimeEdit</a></li> <li><div bar="2" class="fn"></div>28 public functions inherited from <a href="qabstractspinbox.html#public-functions">QAbstractSpinBox</a></li> <li><div bar="2" class="fn"></div>217 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li> <li><div bar="2" class="fn"></div>29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li> <li><div bar="2" class="fn"></div>13 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li> </ul> <h3>Additional Inherited Members</h3> <ul> <li><div class="fn"></div>3 public slots inherited from <a href="qdatetimeedit.html#public-slots">QDateTimeEdit</a></li> <li><div class="fn"></div>4 public slots inherited from <a href="qabstractspinbox.html#public-slots">QAbstractSpinBox</a></li> <li><div class="fn"></div>19 public slots inherited from <a href="qwidget.html#public-slots">QWidget</a></li> <li><div class="fn"></div>1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li> <li><div class="fn"></div>3 signals inherited from <a href="qdatetimeedit.html#signals">QDateTimeEdit</a></li> <li><div class="fn"></div>1 signal inherited from <a href="qabstractspinbox.html#signals">QAbstractSpinBox</a></li> <li><div class="fn"></div>1 signal inherited from <a href="qwidget.html#signals">QWidget</a></li> <li><div class="fn"></div>1 signal inherited from <a href="qobject.html#signals">QObject</a></li> <li><div class="fn"></div>4 static public members inherited from <a href="qwidget.html#static-public-members">QWidget</a></li> <li><div class="fn"></div>5 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li> <li><div class="fn"></div>12 protected functions inherited from <a href="qdatetimeedit.html#protected-functions">QDateTimeEdit</a></li> <li><div class="fn"></div>20 protected functions inherited from <a href="qabstractspinbox.html#protected-functions">QAbstractSpinBox</a></li> <li><div class="fn"></div>37 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li> <li><div class="fn"></div>7 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li> <li><div class="fn"></div>1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li> <li><div class="fn"></div>1 protected slot inherited from <a href="qwidget.html#protected-slots">QWidget</a></li> </ul> <a name="details"></a> <hr /> <h2>Detailed Description</h2> <p>The QTimeEdit class provides a widget for editing times based on the <a href="qdatetimeedit.html">QDateTimeEdit</a> widget.</p> <p>Many of the properties and functions provided by QTimeEdit are implemented in <a href="qdatetimeedit.html">QDateTimeEdit</a>. The following properties are most relevant to users of this class:</p> <ul> <li><a href="qdatetimeedit.html#time-prop">time</a> holds the date displayed by the widget.</li> <li><a href="qdatetimeedit.html#minimumTime-prop">minimumTime</a> defines the minimum (earliest) time that can be set by the user.</li> <li><a href="qdatetimeedit.html#maximumTime-prop">maximumTime</a> defines the maximum (latest) time that can be set by the user.</li> <li><a href="qdatetimeedit.html#displayFormat-prop">displayFormat</a> contains a string that is used to format the time displayed in the widget.</li> </ul> <p><table class="generic" width="100%" align="center" cellpadding="2" cellspacing="1" border="0"> <tr valign="top" class="odd"><td><img src="images/windowsxp-timeedit.png" alt="Screenshot of a Windows XP style time editing widget" /></td><td>A 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-timeedit.png" alt="Screenshot of a Macintosh style time editing widget" /></td><td>A 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-timeedit.png" alt="Screenshot of a Plastique style time editing widget" /></td><td>A time editing widget shown in the <a href="gallery-plastique.html">Plastique widget style</a>.</td></tr> </table></p> <p>See also <a href="qdateedit.html">QDateEdit</a> and <a href="qdatetimeedit.html">QDateTimeEdit</a>.</p> <hr /> <h2>Property Documentation</h2> <a name="//apple_ref/cpp/instm/QDateTimeEdit/time"></a> <a name="//apple_ref/cpp/instm/QDateTimeEdit/setTime"></a> <a name="//apple_ref/cpp/instm/QDateTimeEdit/timeChanged"></a> <h3 class="fn"><a name="time-prop"></a>time : <a href="qtime.html">QTime</a></h3> <p>This property holds the QTime that is shown 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" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr><td class="memItemLeft" align="right" valign="top">QTime </td><td class="memItemRight" valign="bottom"><b><a href="qdatetimeedit.html#time-prop">time</a></b> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qdatetimeedit.html#time-prop">setTime</a></b> ( const QTime & <i>time</i> )</td></tr> </table> <p><b>Notifier signal:</b></p> <table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qdatetimeedit.html#timeChanged">timeChanged</a></b> ( const QTime & <i>time</i> )</td></tr> </table> <hr /> <h2>Member Function Documentation</h2> <a name="//apple_ref/cpp/instm/QTimeEdit/QTimeEdit"></a> <h3 class="fn"><a name="QTimeEdit"></a>QTimeEdit::QTimeEdit ( <a href="qwidget.html">QWidget</a> * <i>parent</i> = 0 )</h3> <p>Constructs an empty time editor with a <i>parent</i>.</p> <h3 class="fn"><a name="QTimeEdit-2"></a>QTimeEdit::QTimeEdit ( const <a href="qtime.html">QTime</a> & <i>time</i>, <a href="qwidget.html">QWidget</a> * <i>parent</i> = 0 )</h3> <p>Constructs an empty time editor with a <i>parent</i>. The time is set to <i>time</i>.</p> <p /><address><hr /><div align="center"> <table width="100%" cellspacing="0" border="0"><tr class="address"> <td width="40%" align="left">Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies)</td> <td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td> <td width="40%" align="right"><div align="right">Qt 4.6.3</div></td> </tr></table></div></address></body> </html>