Doc: Describe using rich text editor

This is now available for Text and TextInput types
(and annotations).

Fixes: QDS-3570
Change-Id: If0d3a19d7d99fac08abf7d9513058d147859eb07
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Leena Miettinen
2021-01-13 16:49:48 +01:00
parent 9b2cc489dc
commit f62832dad7
3 changed files with 25 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 299 KiB

View File

@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Copyright (C) 2021 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Creator documentation.
@@ -47,6 +47,30 @@
To create a label with a background, use the \l Label type from the
Qt Quick Controls module.
\section1 Using Rich Text
You can use rich text in the \l Text and \l TextInput components. To
open the rich text editor, select the \inlineimage icons/edit.png
(\uicontrol Edit) button next to the \uicontrol Text field in
\uicontrol Properties.
\image qtquick-text-rtf.gif "Editing text in the rich text editor"
In the rich text editor, you can:
\list
\li Emphasize text
\li Create hyperlinks
\li Align text
\li Create bulleted and numbered lists
\li Specify text color
\li Select text font
\li Set font size
\li Create tables
\endlist
\image qtquick-rtf-editor.png "Text formatted as rich text in the editor"
\section1 Typography
For each string that you enter in the \uicontrol Text field, you can