QTextFrame::iterator Class
class QTextFrame::iteratorLa clase «iterator» proporciona un iterador para leer el contenido de un « QTextFrame ». Más información...
- Lista de todos los miembros, incluidos los miembros heredados
- iterator forma parte de las API de procesamiento de texto enriquecido.
Funciones públicas
| iterator() | |
| bool | atEnd() const |
| QTextBlock | currentBlock() const |
| QTextFrame * | currentFrame() const |
| QTextFrame * | parentFrame() const |
| bool | operator!=(const QTextFrame::iterator &other) const |
| QTextFrame::iterator & | operator++() |
| QTextFrame::iterator | operator++(int) |
| QTextFrame::iterator & | operator--() |
| QTextFrame::iterator | operator--(int) |
| bool | operator==(const QTextFrame::iterator &other) const |
Descripción detallada
Un marco (frame) está formado por una secuencia arbitraria de marcos de texto enriquecido ( QTextBlock) y marcos de texto enriquecido secundarios ( QTextFrame). Esta clase proporciona una forma de recorrer los objetos secundarios de un marco y leer su contenido. No proporciona una forma de modificar el contenido del marco.
Documentación de las funciones de miembro
[constexpr noexcept default] iterator::iterator()
Crea un iterador no válido.
bool iterator::atEnd() const
Devuelve « true » si el elemento actual es el último elemento del marco de texto.
QTextBlock iterator::currentBlock() const
Devuelve el bloque actual al que apunta el iterador. Si el iterador apunta a un fotograma secundario, el bloque devuelto no es válido.
Véase también currentFrame().
QTextFrame *iterator::currentFrame() const
Devuelve el marco actual al que apunta el iterador, o ` nullptr ` si el iterador apunta actualmente a un bloque.
Véase también ` currentBlock()`.
QTextFrame *iterator::parentFrame() const
Devuelve el fotograma padre del fotograma actual.
Véase también currentFrame() y QTextFrame::parentFrame().
bool iterator::operator!=(const QTextFrame::iterator &other) const
Devuelve «true» si el iterador es distinto del iterador ` other `; en caso contrario, devuelve « false ».
QTextFrame::iterator &iterator::operator++()
Desplaza el iterador al siguiente fotograma o bloque.
Véase también currentBlock() y currentFrame().
QTextFrame::iterator iterator::operator++(int)
El operador postfijo ++ (i++) avanza el iterador hasta el siguiente elemento del marco de texto y devuelve un iterador al elemento anterior.
QTextFrame::iterator &iterator::operator--()
Desplaza el iterador al fotograma o bloque anterior.
Véase también currentBlock() y currentFrame().
QTextFrame::iterator iterator::operator--(int)
El operador postfijo « -- » (i--) convierte el elemento anterior en el marco actual y devuelve un iterador al elemento anterior.
bool iterator::operator==(const QTextFrame::iterator &other) const
Devuelve «true» si el iterador es el mismo que el iterador de « other »; en caso contrario, devuelve « false ».
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.