Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Efficient way to visualize a very long rich text using Qt Quick

    Mobile and Embedded
    2
    4
    849
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Gianluca
      Gianluca last edited by

      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 :-O

      So, what it is the correct, efficient and fast way to display such long texts ??

      Thanks,
      Gianluca.

      1 Reply Last reply Reply Quote 0
      • sierdzio
        sierdzio Moderators last edited by

        Use native text rendering (it's a property of Text element, see the documentation), it can be faster.

        (Z(:^

        1 Reply Last reply Reply Quote 0
        • Gianluca
          Gianluca last edited by

          The native rendering cannot be used (see the documentation ;-) )

          "On HighDpi "retina" displays and mobile and embedded platforms, this property is ignored and QtRendering is always used."

          1 Reply Last reply Reply Quote 0
          • sierdzio
            sierdzio Moderators last edited by

            OK, that is bad news.

            (Z(:^

            1 Reply Last reply Reply Quote 0
            • First post
              Last post