qpedatepicker.html
来自「qtopiaphone英文帮助,用于初学者和开发人员,初学者可以用来学习,开发人」· HTML 代码 · 共 148 行
HTML
148 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/edba/dist/qtopia/main-Sunday/qtopia/src/libraries/qtopia1/datepicker.cpp:387 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>QPEDatePicker 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>QPEDatePicker Class Reference</h1><p>The QPEDatePicker class allows a date to be selected from acalendar view.<a href="#details">More...</a><p><tt>#include <<a href="datepicker-h.html">datepicker.h</a>></tt><p><a href="qpedatepicker-members.html">List of all member functions.</a><h2>Public Members</h2><ul><li><div class=fn><a href="#QPEDatePicker"><b>QPEDatePicker</b></a> ( QWidget * parent = 0, const char * name = 0 )</div></li><li><div class=fn>virtual <a href="#~QPEDatePicker"><b>~QPEDatePicker</b></a> ()</div></li><li><div class=fn>QDate <a href="#selectedDate"><b>selectedDate</b></a> () const</div></li><li><div class=fn>bool <a href="#weekStartsMonday"><b>weekStartsMonday</b></a> () const</div></li></ul><h2>Public Slots</h2><ul><li><div class=fn>void <a href="#setDate"><b>setDate</b></a> ( int y, int m )</div></li><li><div class=fn>void <a href="#setDate-2"><b>setDate</b></a> ( int y, int m, int d )</div></li><li><div class=fn>virtual void <a href="#setDate-3"><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="#dateClicked"><b>dateClicked</b></a> ( const QDate & date )</div></li></ul><h2>Protected Members</h2><ul><li><div class=fn>virtual void <a href="#paintDay"><b>paintDay</b></a> ( const QDate & cDay, QPainter * p, const QRect & cr, const QColorGroup & cg )</div></li><li><div class=fn>virtual void <a href="#paintDayBackground"><b>paintDayBackground</b></a> ( const QDate &, QPainter * p, const QRect & cr, const QColorGroup & cg )</div></li></ul><hr><a name="details"></a><h2>Detailed Description</h2>The QPEDatePicker class allows a date to be selected from acalendar view.<p> QPEDatePicker comprises a header to select month and year and acalendar view to select the date.<p> First availability: Qtopia 1.6<p> <p>See also <a href="qtopiaemb.html">Qtopia Classes</a>.<hr><h2>Member Function Documentation</h2><h3 class=fn><a name="QPEDatePicker"></a>QPEDatePicker::QPEDatePicker ( QWidget * parent = 0, const char * name = 0 )</h3>Constructs a QPEDatePicker.The <em>parent</em> and <em>name</em> parameters are the standard Qt parent parameters.<h3 class=fn><a name="~QPEDatePicker"></a>QPEDatePicker::~QPEDatePicker ()<tt> [virtual]</tt></h3>Destructs QPEDatePicker.<h3 class=fn>void <a name="dateClicked"></a>QPEDatePicker::dateClicked ( const QDate & date )<tt> [signal]</tt></h3><p> This signal is emitted when a date in the calendar is clicked.<em>date</em> contains the date that was clicked<h3 class=fn>void <a name="paintDay"></a>QPEDatePicker::paintDay ( const QDate & cDay, QPainter * p, const QRect & cr, const QColorGroup & cg )<tt> [virtual protected]</tt></h3>Paints a single day <em>cDay</em> in the calendar usingpainter <em>p</em> and color group <em>cg</em>.The cell geometry is <em>cr</em>.<p> The default implementation draws the day of the month in the top leftcorner of the cell.<h3 class=fn>void <a name="paintDayBackground"></a>QPEDatePicker::paintDayBackground ( const QDate &, QPainter * p, const QRect & cr, const QColorGroup & cg )<tt> [virtual protected]</tt></h3>Paints the background of a single day in the calendar usingpainter <em>p</em> and color group <em>cg</em>.The cell geometry is <em>cr</em>.<p> The default implementation fills with the base color.<h3 class=fn>QDate <a name="selectedDate"></a>QPEDatePicker::selectedDate () const</h3>Returns the selected date.<h3 class=fn>void <a name="setDate"></a>QPEDatePicker::setDate ( int y, int m )<tt> [slot]</tt></h3>Sets the selected date to year <em>y</em> and month <em>m</em>. The current day ofthe month is retained unless it falls outside the number of days in theselected date.<h3 class=fn>void <a name="setDate-2"></a>QPEDatePicker::setDate ( int y, int m, int d )<tt> [slot]</tt></h3>Sets the current date to year <em>y</em>, month <em>m</em> and day <em>d</em>.<h3 class=fn>void <a name="setDate-3"></a>QPEDatePicker::setDate ( const QDate & d )<tt> [virtual slot]</tt></h3>Sets the selected date to <em>d</em>.<h3 class=fn>void <a name="setWeekStartsMonday"></a>QPEDatePicker::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.<p> <p>See also <a href="#weekStartsMonday">weekStartsMonday</a>().<h3 class=fn>bool <a name="weekStartsMonday"></a>QPEDatePicker::weekStartsMonday () const</h3>Returns TRUE if the beginning of the week is Monday.<p> <p>See also <a href="#setWeekStartsMonday">setWeekStartsMonday</a>().<!-- 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 + =
减小字号Ctrl + -
显示快捷键?