Qt 4.3: Rich Text Processing

|  | Home · All Classes · Main Classes · Grouped Classes · Modules · Functions |

[Next: Rich Text Document Structure]

# Rich Text Processing

The Scribe framework provides a set of classes for reading and manipulating structured rich text documents. Unlike previous rich text support in Qt, the new classes are centered around the QTextDocument class rather than raw textual information. This enables the developer to create and modify structured rich text documents without having to prepare content in an intermediate markup format.

The information within a document can be accessed via two complementary interfaces: A cursor-based interface is used for editing, and a read-only hierarchical interface provides a high level overview of the document structure. The main advantage of the cursor-based interface is that the text can be edited using operations that mimic a user's interaction with an editor, without losing the underlying structure of the document. The read-only hierarchical interface is most useful when performing operations such as searching and document export.

This document is divided up into chapters for convenient reference:

- Rich Text Document Structure outlines the different kinds of elements in a QTextDocument, and describes how they are arranged in a document structure.
- The QTextCursor Interface explains how rich text documents can be edited using the cursor-based interface.
- Common Rich Text Editing Tasks examines some common tasks that involve reading or manipulating rich text documents.
- Advanced Rich Text Processing examines advanced rich text editing tasks.
- Supported HTML Subset lists the HTML tags supported by QTextDocument.

See also the list of Text Processing Classes.

[Next: Rich Text Document Structure]