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

ShapePath.fillItem doesn't work with all items; doesn't scale correctly with QT_SCALE_FACTOR

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8
    • Quick: Shapes
    • None
    • ead35e4ca (dev), 76fd48abb (6.8)

    Description

      It's documented that the item must be a texture provider, such as a layered item. But setting layer.enabled: true is not enough to make Text show up, for example.

      An Image works. (If it has a Text child, that is not rendered.) But then if I set QT_SCALE_FACTOR it's not stretched correctly.

      There can also be a warning:

      QQuickShaderEffectSource::textureProvider: can only be queried on the rendering thread of an exposed window

      Attachments

        1. fillItem.qml
          0.6 kB
        2. fillItem-scaled.png
          fillItem-scaled.png
          631 kB
        3. fillText.qml
          0.5 kB

        Issue Links

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

          Activity

            People

              qt.team.graphics.and.multimedia Qt Graphics Team
              srutledg Shawn Rutledge
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes