iterator begin() const
Returns a text block iterator pointing to the beginning of the text block.
\reentrant \inmodule QtGui
void setPosition(int pos, MoveMode mode=MoveAnchor)
Moves the cursor to the absolute position in the document specified by pos using a MoveMode specified...
void setCharFormat(const QTextCharFormat &format)
Sets the cursor's current character format to the given format.
\reentrant \inmodule QtGui
The QTextEdit class provides a widget that is used to edit and display both plain and rich text.
void setDocument(QTextDocument *document)
bool contains(int position) const
Returns true if the text fragment contains the text at the given position in the document; otherwise ...
bool isValid() const
Returns true if this is a valid text fragment (i.e.
QTextCharFormat charFormat() const
Returns the text fragment's character format.
int length() const
Returns the number of characters in the text fragment.
int position() const
Returns the position of this text fragment in the document.