
We bake cookies in your browser for a better experience. Using this site means that you consent.Read More
The iterator class provides an iterator for reading the contents of aQTextFrame.More...
| Header: | #include <iterator> |
| iterator() | |
| iterator(const iterator & other) | |
| bool | atEnd() const |
| QTextBlock | currentBlock() const |
| QTextFrame * | currentFrame() const |
| QTextFrame * | parentFrame() const |
| bool | operator!=(const iterator & other) const |
| iterator & | operator++() |
| iterator | operator++(int) |
| iterator & | operator--() |
| iterator | operator--(int) |
| iterator & | operator=(const iterator & other) |
| bool | operator==(const iterator & other) const |
The iterator class provides an iterator for reading the contents of aQTextFrame.
A frame consists of an arbitrary sequence ofQTextBlocks and childQTextFrames. This class provides a way to iterate over the child objects of a frame, and read their contents. It does not provide a way to modify the contents of the frame.
Constructs an invalid iterator.
Copy constructor. Constructs a copy of theother iterator.
Returns true if the current item is the last item in the text frame.
Returns the current block the iterator points to. If the iterator points to a child frame, the returned block is invalid.
See alsocurrentFrame().
Returns the current frame pointed to by the iterator, or 0 if the iterator currently points to a block.
See alsocurrentBlock().
Returns the parent frame of the current frame.
See alsocurrentFrame() andQTextFrame::parentFrame().
Retuns true if the iterator is different from theother iterator; otherwise returns false.
Moves the iterator to the next frame or block.
See alsocurrentBlock() andcurrentFrame().
The postfix ++ operator (i++) advances the iterator to the next item in the text frame, and returns an iterator to the old item.
Moves the iterator to the previous frame or block.
See alsocurrentBlock() andcurrentFrame().
The postfix -- operator (i--) makes the preceding item in the current frame, and returns an iterator to the old item.
Assignsother to this iterator and returns a reference to this iterator.
Retuns true if the iterator is the same as theother iterator; otherwise returns false.
© 2016 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 theGNU 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.