이 페이지에서

QtTaskTree::QDefaultTaskAdapter Class

template <typename Task> class QtTaskTree::QDefaultTaskAdapter

QCustomTask 에서 사용되는 기본 작업 어댑터를 제공하는 클래스 템플릿입니다. 더 보기...

헤더: #include <qtasktree.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS TaskTree)
target_link_libraries(mytarget PRIVATE Qt6::TaskTree)
qmake: QT += tasktree
이후: Qt 6.11

참고: 이 클래스의 모든 함수는 재진입합니다.

자세한 설명

다음 조건이 충족될 때 태스크를 조정하는 QDefaultTaskAdapter를 사용할 수 있습니다:

  1. 태스크는 QObject 에서 파생됩니다.
  2. 태스크에 태스크를 시작하는 공용 start() 메서드가 있습니다.
  3. 작업이 완료되면 완료(QtTaskTree::DoneResult) 또는 완료(bool) 신호를 보냅니다.

이러한 조건 중 하나라도 충족되지 않으면 QCustomTask<태스크, 어댑터> 클래스 템플릿에 태스크 유형을 조정한 사용자 지정 어댑터 유형을 제공해야 합니다.

© 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.