qt5base-lts/examples
Shawn Rutledge 310daae539 preserve HTML heading level in QTextBlockFormat; demonstrate in example
When reading an HTML file with <H1> for example, we still set the font
size as before (that's how it always was done),
but now it remembers that it came from an H1 tag, so it writes
<h1 ...><span font-size:xx-large ...> ...  rather than
<p ...><span ...> ...  This will help with the upcoming Markdown
format, where heading level is saved but the font is not.

Now the style combobox in examples/widgets/richtext/textedit can set
list item type, heading type or "standard" formatting, and also shows the
current formatting of the line that has the cursor.  It was always a
shortcoming in this example that it only allowed setting the current line's
block format but had no feedback to show the current format.

Change-Id: I0a7849b74f23fea84d3375c487c3a6b9f43240c1
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2018-03-02 08:05:00 +00:00
..
aggregate install a sane top-level examples.pro file 2012-12-11 13:37:57 +01:00
corelib Fix some qdoc-warnings for 5.11 2018-02-21 16:10:26 +00:00
dbus Use dependencies instead of CONFIG+=ordered 2017-12-02 11:09:15 +00:00
embedded Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
gui rasterwindow: End painting on device before ending on backingstore 2018-01-29 11:15:24 +00:00
network Merge remote-tracking branch 'origin/5.10' into dev 2018-01-20 22:36:19 +01:00
opengl Merge remote-tracking branch 'origin/5.9' into 5.11 2018-02-14 12:51:24 +01:00
qmake Unify license header usage. 2016-03-29 10:20:03 +00:00
qpa Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
qtconcurrent qtlite: Skip building examples when configured with no-feature-itemviews 2018-01-12 07:58:20 +00:00
qtestlib Merge remote-tracking branch 'origin/5.6' into 5.7 2016-05-06 15:36:44 +02:00
sql qtlite: Skip building examples when configured with no-feature-itemviews 2018-01-12 07:58:20 +00:00
touch qtlite: Skip building examples when configured with no-feature-itemviews 2018-01-12 07:58:20 +00:00
vulkan hellovulkantexture: Fix issues with new validation layer 2017-10-16 08:15:39 +00:00
widgets preserve HTML heading level in QTextBlockFormat; demonstrate in example 2018-03-02 08:05:00 +00:00
xml Merge remote-tracking branch 'origin/5.10' into dev 2018-01-20 22:36:19 +01:00
examples.pro examples: fix compile without opengl support 2017-08-29 20:30:45 +00:00
README Remove more references to demos. 2011-07-08 15:36:26 +02:00

Qt is supplied with a number of example applications that have been
written to provide developers with examples of the Qt API in use,
highlight good programming practice, and showcase features found in each of
Qt's core technologies.


Documentation for examples can be found in the Examples section
of the Qt documentation.