⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qpedatetimeedit.html

📁 qtopiaphone英文帮助,用于初学者和开发人员,初学者可以用来学习,开发人员可以用来资料查询.
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/edba/dist/qtopia/main-Sunday/qtopia/src/libraries/qtopia1/datetimeedit.cpp:765 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>QPEDateTimeEdit 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>QPEDateTimeEdit Class Reference</h1><p>The QPEDateTimeEdit class provides a compact widget for selectinga date and time.<a href="#details">More...</a><p><tt>#include &lt;<a href="datetimeedit-h.html">datetimeedit.h</a>&gt;</tt><p><a href="qpedatetimeedit-members.html">List of all member functions.</a><h2>Public Members</h2><ul><li><div class=fn><a href="#QPEDateTimeEdit"><b>QPEDateTimeEdit</b></a> ( QWidget&nbsp;*&nbsp;parent = 0, const&nbsp;char&nbsp;*&nbsp;name = 0 )</div></li><li><div class=fn><a href="#QPEDateTimeEdit-2"><b>QPEDateTimeEdit</b></a> ( const&nbsp;QDateTime&nbsp;&amp;&nbsp;dt, QWidget&nbsp;*&nbsp;parent = 0, const&nbsp;char&nbsp;*&nbsp;name = 0 )</div></li><li><div class=fn><a href="#~QPEDateTimeEdit"><b>~QPEDateTimeEdit</b></a> ()</div></li><li><div class=fn>void <a href="#setTimeEnabled"><b>setTimeEnabled</b></a> ( bool&nbsp;b )</div></li><li><div class=fn>void <a href="#setDateEnabled"><b>setDateEnabled</b></a> ( bool&nbsp;b )</div></li><li><div class=fn>bool <a href="#timeIsEnabled"><b>timeIsEnabled</b></a> () const</div></li><li><div class=fn>bool <a href="#dateIsEnabled"><b>dateIsEnabled</b></a> () const</div></li><li><div class=fn>void <a href="#setOrientation"><b>setOrientation</b></a> ( Orientation&nbsp;o )</div></li><li><div class=fn>Orientation <a href="#orientation"><b>orientation</b></a> () const</div></li><li><div class=fn>QDate <a href="#date"><b>date</b></a> () const</div></li><li><div class=fn>QTime <a href="#time"><b>time</b></a> () const</div></li><li><div class=fn>QDateTime <a href="#dateTime"><b>dateTime</b></a> () const</div></li></ul><h2>Public Slots</h2><ul><li><div class=fn>virtual void <a href="#setDateTime"><b>setDateTime</b></a> ( const&nbsp;QDateTime&nbsp;&amp;&nbsp;dt )</div></li><li><div class=fn>virtual void <a href="#setDate"><b>setDate</b></a> ( const&nbsp;QDate&nbsp;&amp;&nbsp;dt )</div></li><li><div class=fn>virtual void <a href="#setTime"><b>setTime</b></a> ( const&nbsp;QTime&nbsp;&amp;&nbsp;dt )</div></li></ul><h2>Signals</h2><ul><li><div class=fn>void <a href="#valueChanged"><b>valueChanged</b></a> ( const&nbsp;QDateTime&nbsp;&amp;&nbsp;dt )</div></li></ul><hr><a name="details"></a><h2>Detailed Description</h2>The QPEDateTimeEdit class provides a compact widget for selectinga date and time.<p> QPEDateTimeEdit displays a <a href="qpedateedit.html">QPEDateEdit</a> and <a href="qpetimeedit.html">QPETimeEdit</a> above each other.<p> <p>See also <a href="qtopiaemb.html">Qtopia Classes</a>.<hr><h2>Member Function Documentation</h2><h3 class=fn><a name="QPEDateTimeEdit"></a>QPEDateTimeEdit::QPEDateTimeEdit ( QWidget&nbsp;*&nbsp;parent = 0, const&nbsp;char&nbsp;*&nbsp;name = 0 )</h3>Constructs a QPEDateTimeEdit with the date set to today and the timeset to 00:00.<p> The <em>parent</em> and <em>name</em> parameters are the standard Qt parent parameters.<h3 class=fn><a name="QPEDateTimeEdit-2"></a>QPEDateTimeEdit::QPEDateTimeEdit ( const&nbsp;QDateTime&nbsp;&amp;&nbsp;dt, QWidget&nbsp;*&nbsp;parent = 0, const&nbsp;char&nbsp;*&nbsp;name = 0 )</h3>Constructs QPEDateTimeEdit with the date and time <em>dt</em>.<p> The <em>parent</em> and <em>name</em> parameters are the standard Qt parent parameters.<h3 class=fn><a name="~QPEDateTimeEdit"></a>QPEDateTimeEdit::~QPEDateTimeEdit ()</h3>Destructs QPEDateTimeEdit.<h3 class=fn>QDate <a name="date"></a>QPEDateTimeEdit::date () const</h3>Returns the currently selected date.<h3 class=fn>bool <a name="dateIsEnabled"></a>QPEDateTimeEdit::dateIsEnabled () const</h3>Returns TRUE if changing the date is enabled, otherwise FALSE.<p> <p>See also <a href="#setDateEnabled">setDateEnabled</a>().<h3 class=fn>QDateTime <a name="dateTime"></a>QPEDateTimeEdit::dateTime () const</h3>Returns the currently selected date and time.<h3 class=fn>Orientation <a name="orientation"></a>QPEDateTimeEdit::orientation () const</h3>First availability: Qtopia 2.0<h3 class=fn>void <a name="setDate"></a>QPEDateTimeEdit::setDate ( const&nbsp;QDate&nbsp;&amp;&nbsp;dt )<tt> [virtual slot]</tt></h3>Sets the current date to <em>dt</em>.<p> <p>See also <a href="#setDateTime">setDateTime</a>().<h3 class=fn>void <a name="setDateEnabled"></a>QPEDateTimeEdit::setDateEnabled ( bool&nbsp;b )</h3>Enables changing the date if <em>b</em> is TRUE, otherwise disablesinput.<p> <p>See also <a href="#dateIsEnabled">dateIsEnabled</a>() and <a href="#setTimeEnabled">setTimeEnabled</a>().<h3 class=fn>void <a name="setDateTime"></a>QPEDateTimeEdit::setDateTime ( const&nbsp;QDateTime&nbsp;&amp;&nbsp;dt )<tt> [virtual slot]</tt></h3>Sets the current date and time to <em>dt</em>.<p> <p>See also <a href="#setDate">setDate</a>() and <a href="#setTime">setTime</a>().<h3 class=fn>void <a name="setOrientation"></a>QPEDateTimeEdit::setOrientation ( Orientation&nbsp;o )</h3><p> First availability: Qtopia 2.0<h3 class=fn>void <a name="setTime"></a>QPEDateTimeEdit::setTime ( const&nbsp;QTime&nbsp;&amp;&nbsp;dt )<tt> [virtual slot]</tt></h3>Sets the current time to <em>dt</em>.<p> <p>See also <a href="#setDateTime">setDateTime</a>().<h3 class=fn>void <a name="setTimeEnabled"></a>QPEDateTimeEdit::setTimeEnabled ( bool&nbsp;b )</h3>Enables changing the time if <em>b</em> is TRUE, otherwise disablesinput.<p> <p>See also <a href="#timeIsEnabled">timeIsEnabled</a>() and <a href="#setDateEnabled">setDateEnabled</a>().<h3 class=fn>QTime <a name="time"></a>QPEDateTimeEdit::time () const</h3>Returns the currently selected time.<h3 class=fn>bool <a name="timeIsEnabled"></a>QPEDateTimeEdit::timeIsEnabled () const</h3>Returns TRUE if changing the time is enabled, otherwise FALSE.<p> <p>See also <a href="#setTimeEnabled">setTimeEnabled</a>().<h3 class=fn>void <a name="valueChanged"></a>QPEDateTimeEdit::valueChanged ( const&nbsp;QDateTime&nbsp;&amp;&nbsp;dt )<tt> [signal]</tt></h3><p> This signal is emitted when the date or time is changed to <em>dt</em>.<!-- eof --><hr><p>This file is part of the <a href="../index.html">Qtopia</a> platform,copyright &copy; 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 &copy; 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 + -