StaticText QML Type

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

导入语句: import QtQuickUltralite.Extras 1.7
Since: Qt Quick Ultralite 1.0



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 元素。

另请参阅 compatibility 页面。

另请参阅 文本渲染和字体 , Text QML Type ,和 Text .