title: How do QTextBlock or QTextFrame iterators work in PyQt
body: <p>When working with a QTextDocument, Qt provides iterators (such as QTextBlock.iterator) to move through the contents. The documentation <a href="http://pyqt.sourceforge.net/Docs/PyQt4/qtextblock-iterator.html" rel="nofollow noreferrer">here</a> shows the C++ code, but obviously the <code>++</code> operator doesn't work and the PyQt version doesn't seem to have anything like a <code>next()</code> function.</p>
  
  <p>So how do you make the iterator iterate?</p>
  
  <p>The documentation for <a href="http://pyqt.sourceforge.net/Docs/PyQt4/qtextframe.html" rel="nofollow noreferrer">QTextFrame.begin</a> (which returns the iterator) has a broken link to "STL-style-Iterators", but I can't find any details of these being implemented in Python.</p>