StaticText QML Type
Enables optimized drawing of text. More...
|Import Statement:||import QtQuickUltralite.Extras dev.0|
|Since:||Qt Quick Ultralite 1.0|
To be able to prepare the text at the application build-time, 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"). And it supports only constant font configurations for the same reason. StaticText can not be used for dynamic text.
A StaticText item offers better performance compared to a Text item, because it does not need to do all the mentioned font handling operations, which can be very expensive.
Note: With static font engine, the Text vs StaticText item performance should be similar, as Text item works with pre-rasterized set of glyphs and does not support text shaping. Complex Unicode scripts can be rendered using StaticText items only, if the application is configured with static font engine.
See QUL_GLYPHS_RESOURCE_CACHE_POLICY, QUL_GLYPHS_RESOURCE_STORAGE_SECTION, and QUL_GLYPHS_RESOURCE_RUNTIME_ALLOCATION_TYPE for more information about configuring the run-time storage of StaticText glyphs.
Available under certain Qt licenses.
Find out more.