QPauseAnimation Class
QPauseAnimation 클래스는 QSequentialAnimationGroup 에 대한 일시 중지를 제공합니다. 더 보기...
헤더: | #include <QPauseAnimation> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
qmake: | QT += core |
상속합니다: | QAbstractAnimation |
- 상속된 멤버를 포함한 모든 멤버 목록
- QPauseAnimation은 애니메이션 프레임워크의 일부입니다.
속성
- duration : int
공용 함수
QPauseAnimation(QObject *parent = nullptr) | |
QPauseAnimation(int msecs, QObject *parent = nullptr) | |
virtual | ~QPauseAnimation() |
QBindable<int> | bindableDuration() |
void | setDuration(int msecs) |
재구현된 공용 함수
virtual int | duration() const override |
재구현된 보호 함수
virtual bool | event(QEvent *e) override |
virtual void | updateCurrentTime(int) override |
상세 설명
QSequentialAnimationGroup 에 애니메이션 사이에 지연을 도입하려면 QPauseAnimation을 삽입하면 됩니다. 이 클래스는 애니메이션을 시작하지 않지만, 애니메이션이 시작된 후 지정된 밀리초가 경과하기 전에는 finish 하지 않습니다. 생성자에서 일시 정지 기간을 지정합니다. setDuration ()로 직접 설정할 수도 있습니다.
QSequentialAnimationGroup 에서 addPause() 및 insertPause() 편의 함수를 제공하고 있으므로 직접 QPauseAnimation을 생성할 필요는 없습니다. 이 함수는 단순히 일시정지 지속 시간(밀리초)을 가져옵니다.
QSequentialAnimationGroup 를참조하세요 .
속성 문서
[bindable]
duration : int
참고: 이 속성은 QProperty 바인딩을 지원합니다.
이 속성은 일시 중지 기간을 보유합니다.
일시 중지 기간입니다. 기간은 음수가 아니어야 합니다. 기본 지속 시간은 250밀리초입니다.
멤버 함수 문서
QPauseAnimation::QPauseAnimation(QObject *parent = nullptr)
QObject 의 생성자에 parent 을 전달합니다. 기본 지속 시간은 0입니다.
QPauseAnimation::QPauseAnimation(int msecs, QObject *parent = nullptr)
msecs 은 일시정지 기간입니다. parent 은 QObject 의 생성자에게 전달됩니다.
[virtual noexcept]
QPauseAnimation::~QPauseAnimation()
일시정지 애니메이션을 파괴합니다.
[override virtual protected]
bool QPauseAnimation::event(QEvent *e)
다시 구현합니다: QAbstractAnimation::event(QEvent * 이벤트).
[override virtual protected]
void QPauseAnimation::updateCurrentTime(int)
재구현합니다: QAbstractAnimation::updateCurrentTime(int currentTime).
© 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.