Efficient way to visualize a very long rich text using Qt Quick
-
There is one screen of the app I'm developing where I need to display a very long rich text (43Kbytes - 750 lines of 80 chars long).
I tried with a simple use of a Text item inside a Flickable:
@ Flickable {
width: parent.width
height: parent.height-signupView.rowHeight-acceptTerms.contentHeight-40
contentHeight: fullTerms.contentHeight
clip: true
Text {
id: fullTerms
width: parent.width
wrapMode: Text.Wrap
textFormat: Text.RichText
horizontalAlignment: Text.AlignJustify
color: "white"
}
}
@
but the loading of such configuration it's very very slow.
With the app compiled in release it takes more than 10 seconds to display on iPhone 4 :-O :-OSo, what it is the correct, efficient and fast way to display such long texts ??
Thanks,
Gianluca. -
Use native text rendering (it's a property of Text element, see the documentation), it can be faster.
-
OK, that is bad news.