Rich Text Examples

Qt provides powerful document-oriented rich text engine that supports Unicode and right-to-left scripts. Documents can be manipulated using a cursor-based API, and their contents can be imported and exported as both HTML and in a custom XML format.

Calendar Example

The Calendar example shows how to create rich text content and display it using a rich text editor.

Order Form Example

The Order Form example shows how to generate rich text documents by combining a simple template with data input by the user in a dialog.

Text Edit

The Text Edit example shows Qt's rich text editing facilities in action.

Elided Label Example

This example creates a widget similar to QLabel, that elides the last visible line, if the text is too long to fit the widget's geometry.