C

StaticText QML Type

More efficient version of Text QML type. More...

Import Statement: import QtQuickUltralite.Extras .
Since: Qt Quick Ultralite 1.0
Inherits:

Text

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.