QtTaskTree::QDefaultTaskAdapter Class
template <typename Task> class QtTaskTree::QDefaultTaskAdapterQCustomTask 에서 사용되는 기본 태스크 어댑터를 제공하는 클래스 템플릿입니다. 더 보기...
| 헤더: | #include <qtasktree.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS TaskTree) target_link_libraries(mytarget PRIVATE Qt6::TaskTree) |
| qmake: | QT += tasktree |
| 다음부터: | Qt 6.11부터 |
| 상태: | 기술 미리보기 |
이 클래스는 기술 미리보기 단계에 있으며 변경될 수 있습니다.
참고: 이 클래스의 모든 함수는 재진입 가능합니다.
상세 설명
QDefaultTaskAdapter<Task>는 템플릿 클래스로, 여기서 Task 는 적응할 작업 유형을 지정합니다.
Task를 어댑터로 사용하는 QDefaultTaskAdapter는 다음 조건이 충족될 때 사용할 수 있습니다:
- Task가 QObject 에서 파생된 경우.
- Task에는 태스크를 시작하는 public start() 메서드가 있습니다.
- Task가 완료되면 done(QtTaskTree::DoneResult) 또는 done(bool) 신호를 발생시킵니다.
이러한 조건 중 하나라도 충족되지 않는 경우, QCustomTask<Task, Adapter> 클래스 템플릿에 Task 유형을 어댑터하는 사용자 정의 어댑터 유형을 제공해야 합니다.
© 2026 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.