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

Shape not smooth use with ShapePath::fillItem

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.8
    • Quick: Shapes
    • None
    • All

    Description

      If the ShapePath::fillItem's texture size is greater then Shape's size, and use Shape.PreserveAspectFit fill mode, The texture looks not smooth. An example:

      Shape {
          width: 500
          height: 500
          fillMode: Shape.PreserveAspectFit
          preferredRendererType: Shape.CurveRenderer
          ShapePath {
              strokeWidth: 0
              fillItem: textureProviderItem
              PathRectangle {
                  width: 1000
                  height: 1000
                  topLeftRadius: 20
                  topRightRadius: 20
                  bottomLeftRadius: 20
                  bottomRightRadius: 20
              }
          }
       } 

      Shape(Maybe should is ShapePath?) needs add `smooth` and `mipmap` properties, that properties like as Image::smooth and Image::mipmap.

      Attachments

        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
            zccrs JiDe Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes