diff --git a/doc/qtcreator/images/qtquick-rtf-editor.png b/doc/qtcreator/images/qtquick-rtf-editor.png new file mode 100644 index 00000000000..07ebbe46ca1 Binary files /dev/null and b/doc/qtcreator/images/qtquick-rtf-editor.png differ diff --git a/doc/qtcreator/images/qtquick-text-rtf.gif b/doc/qtcreator/images/qtquick-text-rtf.gif new file mode 100644 index 00000000000..1748662e7f0 Binary files /dev/null and b/doc/qtcreator/images/qtquick-text-rtf.gif differ diff --git a/doc/qtcreator/src/qtquick/library/qtquick-text.qdoc b/doc/qtcreator/src/qtquick/library/qtquick-text.qdoc index 63b612ad300..a495375c1ab 100644 --- a/doc/qtcreator/src/qtquick/library/qtquick-text.qdoc +++ b/doc/qtcreator/src/qtquick/library/qtquick-text.qdoc @@ -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