Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-115687

Text loaded with Loader inside Flickable is not visible when scrolling

    XMLWordPrintable

Details

    • Android, iOS/tvOS/watchOS, macOS, Windows
    • 8c7c60fff (dev), 584cd7239 (6.6)

    Description

      Long text content of a Text loaded with Loader, which is not active immediately, inside a Flickable is not visible when scrolling down. This is a regression in Qt6, not reproducible with Qt5.15.14. If Text is instantiated without a Loader then the whole text content is visible. Also, if Loader active property is true immediately the text content is visible. Typical use case would be that the Loader is only loaded on demand, e.g. when a menu item or button is clicked.

       

      Rectangle {
          id: root
          visible: false
          Flickable {
              id: flickable
              anchors {
                  fill: root
                  margins: 10
              }
              contentHeight: flickableContent.height
              Loader {
                  id: flickableContent
                  width: flickable.width
                  active: root.visible
                  source: "qrc:/LicenseContent.qml"
              }
          }
          Component.onCompleted: visible = true
      }

       

      Same issue seems to be reproducible also with Loader asynchronous property:

      Rectangle {
          id: root
          Flickable {
              id: flickable
              anchors {
                  fill: root
                  margins: 10
              }
              contentHeight: flickableContent.height
              Loader {
                  id: flickableContent
                  width: flickable.width
                  asynchronous: true
                  source: "qrc:/LicenseContent.qml"
              }
          }
      } 

       

      Attachments

        1. qt5-app.mov
          6.86 MB
        2. qt6-app.mov
          9.48 MB
        3. scrollingtexttest.zip
          49 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              srutledg Shawn Rutledge
              tealamak Tero Alamäki
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes