📄 qpedateedit.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/edba/dist/qtopia/main-Sunday/qtopia/src/libraries/qtopia1/datetimeedit.cpp:432 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>QPEDateEdit Class</title><style type="text/css"><!--h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }a:link { color: #004faf; text-decoration: none }a:visited { color: #672967; text-decoration: none }body { background: #ffffff; color: black; }--></style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="200" align="left" valign="top"><a href="index.html"><img height="27" width="472" src="dochead.png" border="0"></a><br><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" align="center" size=32>Qtopia</font> <a href="index.html">Home</a> - <a href="qtopiaclasses.html">Classes</a> - <a href="qtopiaannotated.html">Annotated</a> - <a href="qtopiafunctions.html">Functions</a> - <a href="qtindex.html">Qt Embedded</a></td><td align="right" valign="top"> <table border="0" cellpadding="0" cellspacing="0" width="137"> <tr> <td><a href="http://www.trolltech.com/company/about/trolls.html"><img height="100" width="100" src="face.png" border="0"></a></td> <td><img height="100" width="100" src="qtlogo.png" align="top" border="0"></td> </tr> </table></td></tr></table><h1 align=center>QPEDateEdit Class Reference</h1><p>The QPEDateEdit class provides a compact widget for selectinga date.<a href="#details">More...</a><p><tt>#include <<a href="datetimeedit-h.html">datetimeedit.h</a>></tt><p><a href="qpedateedit-members.html">List of all member functions.</a><h2>Public Members</h2><ul><li><div class=fn><a href="#QPEDateEdit"><b>QPEDateEdit</b></a> ( QWidget * parent, const char * name = 0, bool longDate = FALSE, bool allowNullDate = FALSE )</div></li><li><div class=fn><a href="#QPEDateEdit-2"><b>QPEDateEdit</b></a> ( const QDate & dt, QWidget * parent, const char * name = 0, bool longDate = FALSE, bool allowNullDate = FALSE )</div></li><li><div class=fn>QDate <a href="#date"><b>date</b></a> () const</div></li><li><div class=fn>void <a href="#setDateFormat"><b>setDateFormat</b></a> ( DateFormat format )</div></li><li><div class=fn>void <a href="#setLongFormat"><b>setLongFormat</b></a> ( bool l )</div></li><li><div class=fn>bool <a href="#longFormat"><b>longFormat</b></a> () const</div></li><li><div class=fn>bool <a href="#allowNullDate"><b>allowNullDate</b></a> () const</div></li></ul><h2>Public Slots</h2><ul><li><div class=fn>virtual void <a href="#setDate"><b>setDate</b></a> ( const QDate & d )</div></li><li><div class=fn>void <a href="#setWeekStartsMonday"><b>setWeekStartsMonday</b></a> ( bool startMonday )</div></li></ul><h2>Signals</h2><ul><li><div class=fn>void <a href="#valueChanged"><b>valueChanged</b></a> ( const QDate & d )</div></li></ul><hr><a name="details"></a><h2>Detailed Description</h2>The QPEDateEdit class provides a compact widget for selectinga date.<p> QPEDateEdit displays a QPushButton with the selected date displayed.When clicked, a <a href="qpedatepicker.html">QPEDatePicker</a> is popped up and a new date can beselected.<p> The button can display the date in either long or short format.<p> It is also possible to allow no to date selected.<p> <p>See also <a href="qtopiaemb.html">Qtopia Classes</a>.<hr><h2>Member Function Documentation</h2><h3 class=fn><a name="QPEDateEdit"></a>QPEDateEdit::QPEDateEdit ( QWidget * parent, const char * name = 0, bool longDate = FALSE, bool allowNullDate = FALSE )</h3>Constructs QPEDateEdit with the current date selected.<p> If <em>longDate</em> is TRUE the push button will show the selected date inlong format.<p> If <em>allowNullDate</em> is TRUE it is possible to select no date.<p> The <em>parent</em> and <em>name</em> parameters are the standard Qt parent parameters.<h3 class=fn><a name="QPEDateEdit-2"></a>QPEDateEdit::QPEDateEdit ( const QDate & dt, QWidget * parent, const char * name = 0, bool longDate = FALSE, bool allowNullDate = FALSE )</h3>Constructs QPEDateEdit with the date <em>dt</em>.<p> If <em>longDate</em> is TRUE the push button will show the selected date inlong format.<p> If <em>allowNullDate</em> is TRUE it is possible to select no date.<p> The <em>parent</em> and <em>name</em> parameters are the standard Qt parent parameters.<h3 class=fn>bool <a name="allowNullDate"></a>QPEDateEdit::allowNullDate () const</h3>Returns TRUE if it is possible to select a null date.<h3 class=fn>QDate <a name="date"></a>QPEDateEdit::date () const</h3>Return the currently selected date.<h3 class=fn>bool <a name="longFormat"></a>QPEDateEdit::longFormat () const</h3><p> Returns TRUE if dates are displayed in long format.<p> <p>See also <a href="#setLongFormat">setLongFormat</a>() and <a href="#setDateFormat">setDateFormat</a>().<h3 class=fn>void <a name="setDate"></a>QPEDateEdit::setDate ( const QDate & d )<tt> [virtual slot]</tt></h3>Set the current date to <em>d</em>.<h3 class=fn>void <a name="setDateFormat"></a>QPEDateEdit::setDateFormat ( DateFormat format )</h3>Set the long date format to <em>format</em>.<p> <p>See also <a href="#setLongFormat">setLongFormat</a>().<h3 class=fn>void <a name="setLongFormat"></a>QPEDateEdit::setLongFormat ( bool l )</h3>If <em>l</em> is TRUE, display the date in long format.<p> <p>See also <a href="#longFormat">longFormat</a>() and <a href="#setDateFormat">setDateFormat</a>().<h3 class=fn>void <a name="setWeekStartsMonday"></a>QPEDateEdit::setWeekStartsMonday ( bool startMonday )<tt> [slot]</tt></h3>Display the calendar with weeks starting on Monday if <em>startMonday</em> isTRUE, otherwise weeks start with Sunday.<h3 class=fn>void <a name="valueChanged"></a>QPEDateEdit::valueChanged ( const QDate & d )<tt> [signal]</tt></h3><p> This signal is emitted when the date is changed to <em>d</em>.<!-- eof --><hr><p>This file is part of the <a href="../index.html">Qtopia</a> platform,copyright © 1995-2004<a href="http://www.trolltech.com/">Trolltech</a>, all rights reserved.<p><address><hr><div align="center"><table width="100%" cellspacing="0" border="0"><tr><td>Copyright © 2001-2004 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a><td align="right"><div align="right">Qtopia version 2.0.0</div></table></div></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -