iterator

PyQt5.QtGui.QTextBlock.iterator

Description

The iterator class provides an iterator for reading the contents of a QTextBlock.

A block consists of a sequence of text fragments. This class provides a way to iterate over these, and read their contents. It does not provide a way to modify the internal structure or contents of the block.

An iterator can be constructed and used to access the fragments within a text block in the following way:

#     QTextBlock::iterator it;
#     for (it = currentBlock.begin(); !(it.atEnd()); ++it) {
#         QTextFragment currentFragment = it.fragment();
#         if (currentFragment.isValid())
# #! [3] #! [5]
#             processFragment(currentFragment);
#     }

See also

QTextFragment.

Methods

__init__()

TODO


__init__(iterator)

TODO


atEnd() → bool

TODO


__eq__(iterator) → bool

TODO


fragment() → QTextFragment

TODO


__iadd__(int) → iterator

TODO


__isub__(int) → iterator

TODO


__ne__(iterator) → bool

TODO