Utils::ProgressIndicatorPainter Class
class Utils::ProgressIndicatorPainterProgressIndicatorPainter 클래스는 ProgressIndicator 클래스의 그리기 백엔드입니다. 더 보기...
| Header: | #include <ProgressIndicatorPainter> |
공개 함수
| ProgressIndicatorPainter(Utils::ProgressIndicatorSize size) | |
| Utils::ProgressIndicatorSize | indicatorSize() const |
| void | setIndicatorSize(Utils::ProgressIndicatorSize size) |
| void | setUpdateCallback(const Utils::ProgressIndicatorPainter::UpdateCallback &cb) |
| QSize | size() const |
| void | startAnimation() |
| void | stopAnimation() |
상세 설명
예를 들어, ` QWidget`을 사용할 수 없는 곳에서 진행률 표시기를 표시하려는 경우, 이 클래스를 사용하여 ` QPaintDevice`에 직접 원형의 끝없이 애니메이션되는 진행률 표시기를 그릴 수 있습니다.
멤버 함수 설명
ProgressIndicatorPainter::ProgressIndicatorPainter(Utils::ProgressIndicatorSize size)
size 지표용 진행률 표시기 페인터를 생성합니다.
setUpdateCallback도 참조하십시오 .
Utils::ProgressIndicatorSize ProgressIndicatorPainter::indicatorSize() const
현재 인디케이터 크기를 반환합니다. 결과 픽셀 크기를 확인하려면 ` size `를 사용하십시오.
setIndicatorSize도 참조하십시오 .
void ProgressIndicatorPainter::setIndicatorSize(Utils::ProgressIndicatorSize size)
진행률 표시기의 크기를 size 로 변경합니다. 이 클래스를 사용하는 사용자는 결과적인 픽셀 크기의 변화에 맞춰 그리기 또는 레이아웃 코드를 수정해야 합니다.
indicatorSize 및 size도 참조하십시오 .
void ProgressIndicatorPainter::setUpdateCallback(const Utils::ProgressIndicatorPainter::UpdateCallback &cb)
애니메이션 진행 상황에 따라 진행률 표시기가 다시 그려져야 할 때마다 호출되는 콜백 cb 을 설정합니다. 이 콜백은 매개변수를 받지 않는 void 함수이며, 일반적으로 실제 그리기 작업을 수행하는 위젯에서 QWidget::update 을 호출해야 합니다.
QSize ProgressIndicatorPainter::size() const
진행률 표시기의 크기를 장치 독립 픽셀(DIP) 단위로 반환합니다.
setIndicatorSize 및 paint도 참조하십시오 .
void ProgressIndicatorPainter::startAnimation()
진행률 표시기 애니메이션을 시작합니다.
setUpdateCallback 및 stopAnimation도 참조하십시오 .
void ProgressIndicatorPainter::stopAnimation()
진행 상태 표시기의 애니메이션을 중지합니다.
setUpdateCallback 및 startAnimation도 참조하십시오 .
Copyright © The Qt Company Ltd. and other contributors. 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.