Core::FutureProgress Class
class Core::FutureProgressFutureProgress 클래스는 ProgressManager 클래스를 통해 생성된 진행 표시기의 모양을 조정하는 데 사용됩니다. 더 보기...
| Header: | #include <coreplugin/progressmanager/futureprogress.h> |
| Inherits: | QWidget |
공개 함수
| QFuture<void> | future() const |
| bool | hasError() const |
| void | setTitle(const QString &title) |
| void | setWidget(QWidget *widget) |
| QString | title() const |
| QWidget * | widget() const |
신호
상세 설명
ProgressManager::addTask()에서 반환된 이 클래스의 인스턴스를 사용하여 진행률 표시줄 아래에 표시할 위젯을 정의하거나 진행률 제목을 변경할 수 있습니다. 또한 사용자가 진행률 표시기를 클릭하는 이벤트에 반응하는 데에도 사용할 수 있습니다(예를 들어, 더 자세한 보기나 작업 결과를 열 때 사용할 수 있음).
멤버 함수 문서
[signal] void FutureProgress::canceled()
이 신호에 연결하면 작업이 취소되었을 때 알림을 받을 수 있습니다.
[signal] void FutureProgress::clicked()
사용자가 진행률 표시기를 클릭하면 알림을 받으려면 이 신호에 연결하세요.
[signal] void FutureProgress::finished()
작업이 완료되었을 때 이를 알 수 있는 또 다른 방법입니다.
QFuture<void> FutureProgress::future() const
현재 실행 중인 작업을 나타내는 ` QFuture ` 객체를 반환합니다.
bool FutureProgress::hasError() const
이 진행률 표시기의 오류 상태를 반환합니다.
void FutureProgress::setTitle(const QString &title)
진행률 표시기의 title 값을 변경합니다.
title()도 참조하십시오 .
void FutureProgress::setWidget(QWidget *widget)
widget 를 진행률 표시줄 아래에 표시하도록 설정합니다. 이 위젯은 진행률 표시기가 소멸될 때 함께 소멸됩니다. 기본값은 진행률 표시기 아래에 위젯을 표시하지 않는 것입니다.
widget()도 참조하십시오 .
QString FutureProgress::title() const
진행률 표시기의 제목을 반환합니다.
setTitle()도 참조하십시오 .
QWidget *FutureProgress::widget() const
진행률 표시기 아래에 표시되는 사용자 정의 위젯을 반환합니다.
setWidget()도 참조하십시오 .
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.