iterator Class
class QTextFrame::iterator이터레이터 클래스는 QTextFrame...의 내용을 읽기 위한 이터레이터를 제공합니다.. ..
- 상속된 멤버를 포함한 모든 멤버 목록
- 이터레이터는 리치 텍스트 처리 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 |
상세 설명
프레임은 QTextBlocks와 자식 QTextFrames의 임의의 시퀀스로 구성됩니다. 이 클래스는 프레임의 자식 객체를 반복하고 그 내용을 읽는 방법을 제공합니다. 프레임의 내용을 수정하는 방법은 제공하지 않습니다.
멤버 함수 문서
[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 이터레이터와 다르면 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
을 반환합니다.
© 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.