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

QML Text are not rendered if outside the screen at its creation

    XMLWordPrintable

Details

    • Linux/X11
    • f3b1d6135 (dev), 99b2aacd8 (6.5)

    Description

      When a QML item Text is outside the screen during the screen creation, it is not rendered on text change.

       => 

      The Text must meet 3 conditions:

      • At creation, the text property must remain empty
      • width property must have a fixed value
      • clip property is set as true

      Whese these conditions, if the text property is changed to another value, all Text outside the window at its creation will not be rendered even if they are currently visible in the view.

      The Text item have a correct width, implicitWidth and contentWidth and calling forceLayout() or update() doesn't solve it. Changing most of properties doesn't change anything as well (rotation, antialiasing, etc.) except:

      • clip: you can set the clip property to false, let QML do at least a frame rendering and then set again the clip property to true
      • width: set a new width and immediately restore the previous one

      The issue wasn't there on Qt5.14.2.

      I've created a test program (BugScrollable.7z) to reproduce the issue attached to the ticket, just launch it and click on "Fill Text" to change all Text item property text from "" to "Text"

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-106205
          # Subject Branch Project Status CR V

          Activity

            People

              piwierci Piotr Wierciński
              steelskin3 Simon Bony
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes