Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
Qt for MCUs 2.8
-
None
Description
documentation link: https://doc.qt.io/QtForMCUs-2.8/qtul-performance-logging.html#text-cache
In this section, there's a paragraph which goes;
Another thing to note is that if Text items are destroyed and recreated, the associated text cache entry will also be automatically regenerated once the Text item is visible. Changing the text or any other properties that affect its appearance, will also invalidate the text cache entry.
I wonder what could be the real-world usecase of this.
One example came to my mind is when Text loaded by Loader was unloaded, which destroys the Text.
Using Loader for a currently-displayed page in MCU app makes a lot of sense and should be quite common to save RAM, therefore, a reader could wonder if Text Cache could be realistically useless for the application with a heavy Loader use. That's why I think it's better to write a real-world example of Text being "destroyed."