このページでは

QTextFrame::iterator Class

class QTextFrame::iterator

iteratorクラスは、QTextFrame の内容を読み取るためのイテレータを提供します。詳細...

パブリック関数

iterator()
bool atEnd() const
QTextBlock currentBlock() const
QTextFrame *currentFrame() const
QTextFrame *parentFrame() const
bool operator!=(const QTextFrame::iterator &other) const
QTextFrame::iterator &operator++()
QTextFrame::iterator operator++(int)
QTextFrame::iterator &operator--()
QTextFrame::iterator operator--(int)
bool operator==(const QTextFrame::iterator &other) const

詳細な説明

フレームは、QTextBlockおよび子QTextFrameの任意の順序で構成されます。このクラスは、フレームの子オブジェクトを反復処理し、その内容を読み取る方法を提供します。フレームの内容を変更する方法については提供していません。

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

[constexpr noexcept default] iterator::iterator()

無効なイテレータを生成します。

bool iterator::atEnd() const

現在の項目がテキストフレーム内の最後の項目である場合、true を返します。

QTextBlock iterator::currentBlock() const

イテレータが指している現在のブロックを返します。イテレータが子フレームを指している場合、返されるブロックは無効となります。

currentFrame()も参照してください 。

QTextFrame *iterator::currentFrame() const

イテレータが指す現在のフレームを返します。イテレータが現在ブロックを指している場合は、nullptr を返します。

currentBlock()も参照してください 。

QTextFrame *iterator::parentFrame() const

現在のフレームの親フレームを返します。

currentFrame() およびQTextFrame::parentFrame()も参照してください 。

bool iterator::operator!=(const QTextFrame::iterator &other) const

イテレータがother のイテレータと異なる場合はtrueを返し、そうでない場合はfalse を返します。

QTextFrame::iterator &iterator::operator++()

イテレータを次のフレームまたはブロックに移動します。

currentBlock() およびcurrentFrame()も参照してください 。

QTextFrame::iterator iterator::operator++(int)

末尾の++ 演算子(i++ )は、イテレータをテキストフレーム内の次の項目に進め、前の項目へのイテレータを返します。

QTextFrame::iterator &iterator::operator--()

イテレータを前のフレームまたはブロックに移動します。

currentBlock() およびcurrentFrame()も参照してください 。

QTextFrame::iterator iterator::operator--(int)

ポストフィックス演算子 `-- `(i-- )は、現在のフレーム内の直前の項目を指定し、その古い項目へのイテレータを返します。

bool iterator::operator==(const QTextFrame::iterator &other) const

イテレータがother のイテレータと同一である場合はtrueを返し、そうでない場合はfalse を返します。

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