QTextDocumentFragment Class
The QTextDocumentFragment class represents a piece of formatted text from a QTextDocument. More...
| Header: | #include <QTextDocumentFragment> |
| qmake: | QT += gui |
Note: All functions in this class are reentrant.
Detailed Description
A QTextDocumentFragment is a fragment of rich text, that can be inserted into a QTextDocument. A document fragment can be created from a QTextDocument, from a QTextCursor's selection, or from another document fragment. Document fragments can also be created by the static functions, fromPlainText() and fromHtml().
The contents of a document fragment can be obtained as plain text by using the toPlainText() function, or it can be obtained as HTML with toHtml().