forked from qt-creator/qt-creator
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:
BIN
doc/qtcreator/images/qtquick-rtf-editor.png
Normal file
BIN
doc/qtcreator/images/qtquick-rtf-editor.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.5 KiB |
BIN
doc/qtcreator/images/qtquick-text-rtf.gif
Normal file
BIN
doc/qtcreator/images/qtquick-text-rtf.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 299 KiB |
@@ -1,6 +1,6 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
**
|
**
|
||||||
** Copyright (C) 2020 The Qt Company Ltd.
|
** Copyright (C) 2021 The Qt Company Ltd.
|
||||||
** Contact: https://www.qt.io/licensing/
|
** Contact: https://www.qt.io/licensing/
|
||||||
**
|
**
|
||||||
** This file is part of the Qt Creator documentation.
|
** 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
|
To create a label with a background, use the \l Label type from the
|
||||||
Qt Quick Controls module.
|
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
|
\section1 Typography
|
||||||
|
|
||||||
For each string that you enter in the \uicontrol Text field, you can
|
For each string that you enter in the \uicontrol Text field, you can
|
||||||
|
Reference in New Issue
Block a user