The iterator class provides an iterator for reading the contents of a
QTextFrame. 更多 …
def
__eq__
(o)
def
__iter__
()
def
__ne__
(o)
def
__next__
()
def
atEnd
()
def
currentBlock
()
def
currentFrame
()
def
operator++
(arg__1)
def
operator--
(arg__1)
def
parentFrame
()
A frame consists of an arbitrary sequence of
QTextBlocks 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.
PySide2.QtGui.QTextFrame.
iterator
¶
PySide2.QtGui.QTextFrame.iterator(o)
- param o
iterator
Constructs an invalid iterator.
PySide2.QtGui.QTextFrame.iterator.
__iter__
(
)
¶
PyObject
PySide2.QtGui.QTextFrame.iterator.
__next__
(
)
¶
PyObject
PySide2.QtGui.QTextFrame.iterator.
atEnd
(
)
¶
bool
返回
true
if the current item is the last item in the text frame.
PySide2.QtGui.QTextFrame.iterator.
currentBlock
(
)
¶
Returns the current block the iterator points to. If the iterator points to a child frame, the returned block is invalid.
另请参阅
currentFrame()
PySide2.QtGui.QTextFrame.iterator.
currentFrame
(
)
¶
Returns the current frame pointed to by the iterator, or
None
if the iterator currently points to a block.
另请参阅
currentBlock()
PySide2.QtGui.QTextFrame.iterator.
__ne__
(
o
)
¶
o
–
iterator
bool
Retuns true if the iterator is different from the
other
iterator; otherwise returns
false
.
PySide2.QtGui.QTextFrame.iterator.operator++(arg__1)
arg__1
–
int
iterator
The postfix ++ operator (
i++
) advances the iterator to the next item in the text frame, and returns an iterator to the old item.
PySide2.QtGui.QTextFrame.iterator.operator--(arg__1)
arg__1
–
int
iterator
The postfix – operator (
i--
) makes the preceding item in the current frame, and returns an iterator to the old item.
PySide2.QtGui.QTextFrame.iterator.
__eq__
(
o
)
¶
o
–
iterator
bool
Retuns true if the iterator is the same as the
other
iterator; otherwise returns
false
.
PySide2.QtGui.QTextFrame.iterator.
parentFrame
(
)
¶
Returns the parent frame of the current frame.
另请参阅
currentFrame()
parentFrame()