Qt 4.8
|
The Text item allows you to add formatted text to a scene. More...
Additional Inherited Members | |
Public Functions inherited from Node | |
bool | isNull () const |
Node () | |
Node (const Node &o) | |
~Node () | |
Public Variables inherited from Node | |
NodeImpl * | d |
The Text item allows you to add formatted text to a scene.
Text items can display both plain and rich text. For example, red text with a specific font and size can be defined like this:
Rich text is defined using HTML-style markup:
If height and width are not explicitly set, Text will attempt to determine how much room is needed and set it accordingly. Unless wrapMode is set, it will always prefer width to height (all text will be placed on a single line).
The elide property can alternatively be used to fit a single line of plain text to a set width.
Note that the Supported HTML Subset is limited. Also, if the text contains HTML img tags that load remote images, the text is reloaded.
Text provides read-only text. For editable text, see TextEdit .
Definition at line 294 of file qdeclarativexmlhttprequest.cpp.
|
static |
Definition at line 583 of file qdeclarativexmlhttprequest.cpp.
|
static |
Definition at line 599 of file qdeclarativexmlhttprequest.cpp.
Referenced by Node::create(), and CDATA::prototype().
|
static |
Definition at line 591 of file qdeclarativexmlhttprequest.cpp.