66 QString toPlainText()
const;
73 void reserve(
int count );
103 if ( a0 < 0 || a0 > sipCpp->size() )
105 PyErr_SetString( PyExc_IndexError, QByteArray::number( a0 ) );
110 sipCpp->insert( a0, *a1 );
165 sipRes = sipCpp->size();
184 if ( a0 < 0 || a0 >= sipCpp->size() )
186 PyErr_SetString( PyExc_KeyError, QByteArray::number( a0 ) );
202 SIP_SSIZE_T idx = sipConvertFromSequenceIndex( a0, sipCpp->size() );
212 QVector< QgsTextFragment >::const_iterator begin()
const;
213 QVector< QgsTextFragment >::const_iterator end()
const;
219 QVector< QgsTextFragment > mFragments;
Represents a block of text consisting of one or more QgsTextFragment objects.
const QgsTextBlockFormat & blockFormat() const
Returns the block formatting for the fragment.
QgsTextBlock()=default
Constructor for an empty text block.
Stores a fragment of document along with formatting overrides to be used when rendering the fragment.