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

Create a PathRectangle component for Qt Quick Shapes

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • P2: Important
    • 6.8.0 FF
    • 6.8.0
    • Quick: Shapes
    • None
    • All
    • 22272aefe (dev)

    Description

      The Rectangle component has a specific, optimized shader, and is lacking support for certain features such as different stroke styles, different gradients (it only supports vertical and horizontal linear gradients).

      For advanced use cases like this, we have Qt Quick Shapes, but it currently requires creating the rectangle manually from line segments. This becomes especially cumbersome if you want to use the rounded corners feature of the rectangle. Having a PathRectangle composed path feature would be a good convenience and would make it easier to point people to Qt Quick Shapes when they discover the limitations of the Rectangle type.

      (Once added, it might also be possible to support advanced features in Rectangle by building on top of this, e.g. if you set a QtQuick.Shapes.LinearGradient on the rectangle, it could internally build on QQuadPath and use the curve renderer)

      Attachments

        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
              esabraha Eskil Abrahamsen Blomfeldt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes