The iterator class provides an iterator for reading the contents of a QTextFrame. More...
#include <QTextFrame>
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 a QTextFrame.
A frame consists of an arbitrary sequence of QTextBlocks and child QTextFrames. 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 the other 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 also currentFrame().
Returns the current frame pointed to by the iterator, or 0 if the iterator currently points to a block.
See also currentBlock().
Returns the parent frame of the current frame.
See also currentFrame() and QTextFrame::parentFrame().
Retuns true if the iterator is different from the other iterator; otherwise returns false.
Moves the iterator to the next frame or block.
See also currentBlock() and currentFrame().
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 also currentBlock() and currentFrame().
The postfix -- operator (i--) makes the preceding item in the current frame, and returns an iterator to the old item.
Assigns other to this iterator and returns a reference to this iterator.
Retuns true if the iterator is the same as the other iterator; otherwise returns false.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.