iterator Class
class QTextFrame::iteratorイテレータ・クラスは、QTextFrame の内容を読み取るためのイテレータを提供する。 ... 詳細
- 継承メンバを含む全メンバ一覧
- iterator はRich Text Processing API に含まれます。
パブリック関数
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]
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 イテレータと異なる場合は真を返し、そうでない場合はfalse
を返す。
QTextFrame::iterator &iterator::operator++()
イテレータを次のフレームまたはブロックに移動します。
currentBlock() およびcurrentFrame()も参照 。
QTextFrame::iterator iterator::operator++(int)
postfix++
演算子 (i++
) は、イテレータをテキストフレームの次の項目に進め、古い項目へのイテレータを返します。
QTextFrame::iterator &iterator::operator--()
イテレータを前のフレームまたはブロックに移動します。
currentBlock() およびcurrentFrame()も参照 。
QTextFrame::iterator iterator::operator--(int)
postfix--
演算子 (i--
) は、直前の項目を現在のフレームに入れ、古い項目へのイテレータを返す。
bool iterator::operator==(const QTextFrame::iterator &other) const
イテレータがother イテレータと同じであれば真を返し、そうでなければfalse
を返す。
© 2025 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.