Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Efficient way to visualize a very long rich text using Qt Quick

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

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 1.1k Views
  • 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.
  • GianlucaG Offline
    GianlucaG Offline
    Gianluca
    wrote on last edited by
    #1

    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
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

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

      (Z(:^

      1 Reply Last reply
      0
      • GianlucaG Offline
        GianlucaG Offline
        Gianluca
        wrote on last edited by
        #3

        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
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          OK, that is bad news.

          (Z(:^

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved