?? qtimerevent.html
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- /home/reggie/tmp/qt-3.0-reggie-5401/qt-x11-commercial-3.0.5/src/kernel/qevent.cpp:195 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Translator" content="Cavendish">
<meta name="Qt zh_CN Documents Website" content="http://www.qiliang.net/qt">
<title>QTimerEvent類</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; font-family: "Times New Roman" }
--></style>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr bgcolor="#E5E5E5">
<td valign=center>
<a href="index.html">
<font color="#004faf">主頁</font></a>
| <a href="classes.html">
<font color="#004faf">所有的類</font></a>
| <a href="mainclasses.html">
<font color="#004faf">主要的類</font></a>
| <a href="annotated.html">
<font color="#004faf">注釋的類</font></a>
| <a href="groups.html">
<font color="#004faf">分組的類</font></a>
| <a href="functions.html">
<font color="#004faf">函數</font></a>
</td>
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table>
<h1 align=center>QTimerEvent類參考</h1>
<p>QTimerEvent類包含描述一個定時器事件的參數。
<a href="#details">詳情請見……</a>
<p><tt>#include <<a href="qevent-h.html">qevent.h</a>></tt>
<p>繼承了<a href="qevent.html">QEvent</a>。
<p><a href="qtimerevent-members.html">所有成員函數的列表。</a>
<h2>公有成員</h2>
<ul>
<li><div class=fn><a href="#QTimerEvent"><b>QTimerEvent</b></a> ( int timerId )</div></li>
<li><div class=fn>int <a href="#timerId"><b>timerId</b></a> () const</div></li>
</ul>
<hr><a name="details"></a><h2>詳細描述</h2>
QTimerEvent類包含描述一個定時器事件的參數。<p>
<p> 定時器事件被按規則的間隔發送給有開始定時的一個或多個定時器的對象。每一個定時器有一個唯一的標識符。一個定時器被使用<a href="qobject.html#startTimer">QObject::startTimer</a>()開始。
<p> <a href="qtimer.html">QTimer</a>類提供了可以使用信號而不是事件的高級編程接口。它也提供單觸發定時器。
<p> 事件處理器<a href="qobject.html#timerEvent">QObject::timerEvent</a>()接收定時器事件。
<p> <p>也可以參考<a href="qtimer.html">QTimer</a>、<a href="qobject.html#timerEvent">QObject::timerEvent</a>()、<a href="qobject.html#startTimer">QObject::startTimer</a>()、<a href="qobject.html#killTimer">QObject::killTimer</a>()、<a href="qobject.html#killTimers">QObject::killTimers</a>()和<a href="events.html">事件類</a>。
<hr><h2>成員函數文檔</h2>
<h3 class=fn><a name="QTimerEvent"></a>QTimerEvent::QTimerEvent ( int timerId )
</h3>
<p> 構造一個定時器標識符為<em>timerId</em>的定時器事件對象。
<h3 class=fn>int <a name="timerId"></a>QTimerEvent::timerId () const
</h3>
<p> 返回唯一的定時器標識符,和<a href="qobject.html#startTimer">QObject::startTimer</a>()返回的是同一個標識符。
<p>實例:<a href="dclock-example.html#x905">dclock/dclock.cpp</a>。
<!-- eof -->
<hr><p>
這個文件是<a href="index.html">Qt工具包</a>一部分。
版權所有 © 1995-2002
<a href="http://www.trolltech.com/">Trolltech</a>。保留所有權利。
<p><address><hr><div align=center>
<table width=100% cellspacing=0 border=0><tr>
<td>Copyright © 2002
<a href="http://www.trolltech.com">Trolltech</a>
<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a>
<td><a href="zh_CN.html">譯者:Cavendish</a>
<td align=right><div align=right>Qt 3.0.5版</div>
</table></div></address></body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -