.BI "virtual void \fBsetSeparator\fR ( const QString & s )"
.br
.ti -1c
.BI "uint \fBdisplay\fR () const"
.br
.ti -1c
.BI "void \fBsetDisplay\fR ( uint disp )"
.br
.in -1c
.SS "Public Slots"
.in +1c
.ti -1c
.BI "virtual void \fBsetTime\fR ( const QTime & time )"
.br
.in -1c
.SS "Signals"
.in +1c
.ti -1c
.BI "void \fBvalueChanged\fR ( const QTime & time )"
.br
.in -1c
.SS "Properties"
.in +1c
.ti -1c
.BI "bool \fBautoAdvance\fR - whether the editor automatically advances to the next section"
.br
.ti -1c
.BI "Display \fBdisplay\fR - the sections that are displayed in the time edit"
.br
.ti -1c
.BI "QTime \fBmaxValue\fR - the maximum time value"
.br
.ti -1c
.BI "QTime \fBminValue\fR - the minimum time value"
.br
.ti -1c
.BI "QTime \fBtime\fR - the editor's time value"
.br
.in -1c
.SS "Protected Members"
.in +1c
.ti -1c
.BI "virtual QString \fBsectionFormattedText\fR ( int sec )"
.br
.ti -1c
.BI "virtual void \fBsetHour\fR ( int h )"
.br
.ti -1c
.BI "virtual void \fBsetMinute\fR ( int m )"
.br
.ti -1c
.BI "virtual void \fBsetSecond\fR ( int s )"
.br
.in -1c
.SH DESCRIPTION
The QTimeEdit class provides a time editor.
.PP
QTimeEdit allows the user to edit times by using the keyboard or the arrow keys to increase/decrease time values. The arrow keys can be used to move from section to section within the QTimeEdit box. The user can automatically be moved to the next section once they complete a section using setAutoAdvance(). Times appear in hour, minute, second order. It is recommended that the QTimeEdit is initialised with a time, e.g.
.PP
.nf
.br
QTime timeNow = QTime::currentTime();
.br
QTimeEdit *timeEdit = new QTimeEdit( timeNow, this );
Here we've created a QTimeEdit widget set to the current time. We've also set the minimum value to the current time and the maximum time to one hour from now.
.PP
The maximum and minimum values for a time value in the time editor default to the maximum and minimum values for a QTime. You can change this by calling setMinValue(), setMaxValue() or setRange().
.PP
Terminology: A QTimeWidget consists of three sections, one each for the hour, minute and second. You can change the separator character using setSeparator(), by default the separator is read from the system's settings.
.PP
<center>
.ce 1
.B "[Image Omitted]"
.PP
</center>
.PP
See also QTime, QDateEdit, QDateTimeEdit, Advanced Widgets, and Time and Date.
.SS "Member Type Documentation"
.SH "QTimeEdit::Display"
This enum defines the sections that comprise a time
.TP
\fCQTimeEdit::Hours\fR - The hours section
.TP
\fCQTimeEdit::Minutes\fR - The minutes section
.TP
\fCQTimeEdit::Seconds\fR - The seconds section
.TP
\fCQTimeEdit::AMPM\fR - The AM/PM section
.PP
The values can be or'ed together to show any combination.
Sets the valid input range for the editor to be from \fImin\fR to \fImax\fR inclusive. If \fImin\fR is invalid no minimum time is set. Similarly, if \fImax\fR is invalid no maximum time is set.
.SH "void QTimeEdit::setSecond ( int s )\fC [virtual protected]\fR"
Sets the second to \fIs\fR, which must be a valid second, i.e. in the range 0..59.
.SH "void QTimeEdit::setSeparator ( const QString & s )\fC [virtual]\fR"
Sets the separator to \fIs\fR. Note that currently only the first character of \fIs\fR is used.
Sets the editor's time value to \fItime\fR. See the "time" property for details.
.SH "QTime QTimeEdit::time () const"
Returns the editor's time value. See the "time" property for details.
.SH "void QTimeEdit::valueChanged ( const QTime & time )\fC [signal]\fR"
This signal is emitted whenever the editor's value changes. The \fItime\fR parameter is the new value.
.SS "Property Documentation"
.SH "bool autoAdvance"
This property holds whether the editor automatically advances to the next section.
.PP
If autoAdvance is TRUE, the editor will automatically advance focus to the next time section if a user has completed a section. The default is FALSE.
.PP
Set this property's value with setAutoAdvance() and get this property's value with autoAdvance().
.SH "Display display"
This property holds the sections that are displayed in the time edit.
.PP
The value can be any combination of the values in the Display enum. By default, the widget displays hours, minutes and seconds.
.PP
Set this property's value with setDisplay() and get this property's value with display().
.SH "QTime maxValue"
This property holds the maximum time value.
.PP
Setting the maximum time value is equivalent to calling QTimeEdit::setRange( minValue(), \fIt\fR ), where \fIt\fR is the maximum time. The default maximum time is 23:59:59.
.PP
See also minValue and setRange().
.PP
Set this property's value with setMaxValue() and get this property's value with maxValue().
.SH "QTime minValue"
This property holds the minimum time value.
.PP
Setting the minimum time value is equivalent to calling QTimeEdit::setRange( \fIt\fR, maxValue() ), where \fIt\fR is the minimum time. The default minimum time is 00:00:00.
.PP
See also maxValue and setRange().
.PP
Set this property's value with setMinValue() and get this property's value with minValue().
.SH "QTime time"
This property holds the editor's time value.
.PP
When changing the time property, if the time is less than minValue(), or is greater than maxValue(), nothing happens.
.PP
Set this property's value with setTime() and get this property's value with time().
.SH "SEE ALSO"
.BR http://doc.trolltech.com/qtimeedit.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
license file included in the distribution for a complete license
statement.
.SH AUTHOR
Generated automatically from the source code.
.SH BUGS
If you find a bug in Qt, please report it as described in
.BR http://doc.trolltech.com/bughowto.html .
Good bug reports help us to help you. Thank you.
.P
The definitive Qt documentation is provided in HTML format; it is
located at $QTDIR/doc/html and can be read using Qt Assistant or with
a web browser. This man page is provided as a convenience for those
users who prefer man pages, although this format is not officially
supported by Trolltech.
.P
If you find errors in this manual page, please report them to
.BR qt-bugs@trolltech.com .
Please include the name of the manual page (qtimeedit.3qt) and the Qt