QTimerEvent Class
QTimerEvent クラスには、タイマー・イベントを記述するパラメーターが含まれています。詳細...
ヘッダー | #include <QTimerEvent> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
qmake: | QT += core |
継承: | QEvent |
- 継承メンバを含む全メンバのリスト
- QTimerEventは、Eventクラスの一部です。
パブリック関数
(since 6.8) | QTimerEvent(Qt::TimerId timerId) |
QTimerEvent(int timerId) | |
(since 6.8) Qt::TimerId | id() const |
int | timerId() const |
詳細説明
タイマー・イベントは、1つ以上のタイマーを開始したオブジェクトに一定間隔で送信されます。各タイマーは一意の識別子を持っています。タイマーはQObject::startTimer() で開始されます。
QChronoTimer クラスは、イベントの代わりにシグナルを使用する高水準プログラミング・インターフェースを提供します。
イベント・ハンドラQObject::timerEvent() はタイマー・イベントを受信する。
QChronoTimer 、QObject::timerEvent()、QObject::startTimer()、QObject::killTimer()も参照 。
メンバ関数ドキュメント
[explicit, since 6.8]
QTimerEvent::QTimerEvent(Qt::TimerId timerId)
タイマー識別子をtimerId に設定したタイマーイベントオブジェクトを構築します。
この関数は Qt 6.8 で導入されました。
[explicit]
QTimerEvent::QTimerEvent(int timerId)
タイマー識別子をtimerId に設定したタイマーイベントオブジェクトを構築する。
[since 6.8]
Qt::TimerId QTimerEvent::id() const
このイベントに関連付けられたタイマーのQt::TimerId を返します。これはQObject::startTimer() をQt::TimerId にキャストして返される識別子と同じです。
この関数は Qt 6.8 で導入されました。
int QTimerEvent::timerId() const
一意のタイマー識別子を返す。これはQObject::startTimer() から返される識別子と同じである。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.