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

Text loaded with Loader inside Flickable is not visible when scrolling

XMLWordPrintable

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

      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"
              }
          }
      } 

       

        1. scrollingtexttest.zip
          49 kB
          Tero Alamäki
        2. qt6-app.mov
          9.48 MB
          Tero Alamäki
        3. qt5-app.mov
          6.86 MB
          Tero Alamäki
        For Gerrit Dashboard: QTBUG-115687
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes