• PySide 模块
  • PySide.QtGui
  • 内容表

    上一话题

    QTextFrame

    下一话题

    QTextTable

    QTextFrame.iterator

    概要

    函数

    详细描述

    The iterator class provides an iterator for reading the contents of a PySide.QtGui.QTextFrame .

    A frame consists of an arbitrary sequence of PySide.QtGui.QTextBlock s and child PySide.QtGui.QTextFrame s. 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.

    class PySide.QtGui.QTextFrame. iterator
    class PySide.QtGui.QTextFrame. iterator ( o )
    参数: o PySide.QtGui.QTextFrame::iterator

    Constructs an invalid iterator.

    Copy constructor. Constructs a copy of the other iterator.

    PySide.QtGui.QTextFrame.iterator. __iter__ ( )
    返回类型: PyObject
    PySide.QtGui.QTextFrame.iterator. __next__ ( )
    返回类型: PyObject
    PySide.QtGui.QTextFrame.iterator. atEnd ( )
    返回类型: PySide.QtCore.bool

    Returns true if the current item is the last item in the text frame.

    PySide.QtGui.QTextFrame.iterator. currentBlock ( )
    返回类型: PySide.QtGui.QTextBlock

    Returns the current block the iterator points to. If the iterator points to a child frame, the returned block is invalid.

    另请参阅

    currentFrame()

    PySide.QtGui.QTextFrame.iterator. currentFrame ( )
    返回类型: PySide.QtGui.QTextFrame

    Returns the current frame pointed to by the iterator, or 0 if the iterator currently points to a block.

    另请参阅

    currentBlock()

    PySide.QtGui.QTextFrame.iterator. __ne__ ( o )
    参数: o PySide.QtGui.QTextFrame::iterator
    返回类型: PySide.QtCore.bool

    Retuns true if the iterator is different from the other iterator; otherwise returns false.

    PySide.QtGui.QTextFrame.iterator.operator++(arg__1)
    参数: arg__1 PySide.QtCore.int
    返回类型: PySide.QtGui.QTextFrame::iterator

    The postfix ++ operator ( i++ ) advances the iterator to the next item in the text frame, and returns an iterator to the old item.

    PySide.QtGui.QTextFrame.iterator.operator--(arg__1)
    参数: arg__1 PySide.QtCore.int
    返回类型: PySide.QtGui.QTextFrame::iterator

    The postfix – operator ( i-- ) makes the preceding item in the current frame, and returns an iterator to the old item.

    PySide.QtGui.QTextFrame.iterator. __eq__ ( o )
    参数: o PySide.QtGui.QTextFrame::iterator
    返回类型: PySide.QtCore.bool

    Retuns true if the iterator is the same as the other iterator; otherwise returns false.

    PySide.QtGui.QTextFrame.iterator. parentFrame ( )
    返回类型: PySide.QtGui.QTextFrame

    Returns the parent frame of the current frame.