QTextFrame::iterator Class
class QTextFrame::iterator이테레이터 클래스는 ` QTextFrame`의 내용을 읽기 위한 이테레이터를 제공합니다. 더 보기...
- 상속된 멤버를 포함한 모든 멤버 목록
- iterator는 리치 텍스트 처리 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 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.