qt5base-lts/examples/widgets/richtext
Giuseppe D'Angelo c29fac453f Markdown importer: use Unicode decoding
Given we feed UTF-8 data into the importer, it must be able to cope
with Unicode. Build md4c with UTF-8 support, advertise it at
usage site, and change a couple of broken decodings.

Driveby: the textedit example used the wrong codec to decode
a Markdown file. While the Markdown spec doesn't deal with encodings,
using the default one for HTML is certainly wrong. Port the loading
of both markdown and plaintext to UTF-8, as that what _saving_
via QTextDocumentWriter would use by default.

Change-Id: I51c6214cfe45ebfc5a67a7366f7866a5328366ec
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2020-02-03 14:58:00 +01:00
..
calendar Cleanup Widgets examples - new signal/slot syntax 2019-01-06 17:07:59 +00:00
orderform Examples: fix compile without printsupport 2020-01-31 06:23:58 +01:00
syntaxhighlighter Cleanup Widgets examples - foreach 2019-01-23 18:49:05 +00:00
textedit Markdown importer: use Unicode decoding 2020-02-03 14:58:00 +01:00
README Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00
richtext.pro centralize and fixup example sources install targets 2012-11-29 20:21:11 +01:00

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.

Text is rendered using anti-aliased outline fonts to provide the best
possible on-screen representation.


Documentation for these examples can be found via the Examples
link in the main Qt documentation.