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

Support draw a rounded for QtQuick Image

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • None
    • Quick: SceneGraph
    • None

    Description

      Like the Rectangle item, i think the Image item also need a "radius" property. The need to display a rounded image is very common. I know that OpacityMask can be used to achieve it, but OpacityMask belongs to QtGraphicalEffects, and it is only provided for compatibility in Qt6. Another way is to use ShaderEffect, in fact OpacityMask does just that. The rounded corner area usually only occupies a small area of the total area of the image, i think that using ShaderEffect is not the best performance method. We can add support for "radius" to QSGInternalImageNode to make the Image item more complete.

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              zccrs JiDe Zhang
              Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There is 1 open Gerrit change