QTimerEvent Class
QTimerEvent 클래스에는 타이머 이벤트를 설명하는 매개 변수가 포함되어 있습니다. 더 보기...
Header: | #include <QTimerEvent> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
qmake: | QT += core |
상속합니다: | QEvent |
- 상속된 멤버를 포함한 모든 멤버의 목록
- QTimerEvent는 이벤트 클래스의 일부입니다.
공용 함수
(since 6.8) | QTimerEvent(Qt::TimerId timerId) |
QTimerEvent(int timerId) | |
(since 6.8) Qt::TimerId | id() const |
int | timerId() const |
자세한 설명
타이머 이벤트는 하나 이상의 타이머를 시작한 객체에 일정한 간격으로 전송됩니다. 각 타이머에는 고유 식별자가 있습니다. 타이머는 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.