StaticText QML Type

Specifies how to add static text to a scene. More...

Import Statement: import QtQuick .
Since: Qt Quick Ultralite 1.0


Detailed Description

StaticText displays plain text and, in most ways, behaves like Text.

The main difference is that StaticText requires the text property to be fixed and known at compile-time. It must be either a string literal, or a translated literal like qsTr("text").

This limitation allows StaticText to be more CPU and memory efficient than regular Text elements.

See also the compatibility page.

See also Text Rendering and Fonts, Text QML Type, and Text.

Available under certain Qt licenses.
Find out more.