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

Allow Gradient in Rectangle border and ShapePath stroke

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • Quick: Shapes
    • None

    Description

      As far as I can tell, there's no way to draw a Rectangle border or a ShapePath stroke with a gradient.

      But the code obviously exists somewhere (QPainter and Canvas can do it), so it doesn't seem to make any sense.

      Maybe there's some internal reason that drawing a gradient border is less efficient. But that doesn't change the fact that I need a rectangle to have a gradient border, so I'm just forced to do it extremely inefficiently (Canvas) or get someone to make a custom C++ item to do it. Both of those options are much worse than Qt just doing it automatically, possibly with a note in the docs that it's a little bit slower than a solid colored stroke.

      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
            mattsidefx Matt Chaput
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes