このページでは

QtTaskTree::ListIterator Class

template <typename T> class QtTaskTree::ListIterator

For要素の内部で使用されるリスト反復子。もっと詳しく...

ヘッダー #include <qtasktree.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS TaskTree)
target_link_libraries(mytarget PRIVATE Qt6::TaskTree)
qmake: QT += tasktree
以来:Qt 6.11
継承: QtTaskTree::Iterator

注意:このクラスの関数はすべてリエントラントです。

パブリック関数

ListIterator(const QList<T> &list)
const T &operator*() const
const T *operator->() const

詳細説明

IteratorForeverIteratorRepeatIteratorUntilIteratorも参照のこと

メンバ関数のドキュメント

[explicit] ListIterator::ListIterator(const QList<T> &list)

For (ListIterator(list)) >> Do {} コンストラクトのリスト・イテレータを構築します。イテレータは、渡されたlist から各要素を繰り返し処理します。

Iterator::iteration()も参照してください

const T &ListIterator::operator*() const

Do ボディ内の現在の要素への参照を返します。この関数はレシピのQtTaskTree::Do ボディの中に置かれたGroupItem 要素のハンドラボディの中からのみ使用してください。ListIterator が For 要素に渡されることを確認してください。

const T *ListIterator::operator->() const

Do ボディ内の現在の要素へのポインタを返します。この関数はレシピのQtTaskTree::Do ボディの中に置かれたGroupItem 要素のハンドラボディの中からのみ使用してください。For 要素にListIterator が渡されることを確認してください。

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