O'Reilly logo

Advanced Qt Programming: Creating Great Software with C++ and Qt 4 by Mark Summerfield

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

9. Creating Rich Text Editors

Qt provides a rich text engine that can format and display text, lists, tables, and images.* The heart of this text formatting engine is QTextDocument—this class can hold a single piece of text, a line, or an entire multi-page document, and fully supports text formatting (e.g., bold, italic, color, subscript), right down to the level of individual characters.

* Qt’s rich text format is an in-memory data format that should not be confused with Microsoft’s .rtf (rich text format) document interchange format, or with enriched text (RFC 1896) or with the text/richtext MIME type (RFCs 1341 and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required