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

Support rounded corners on 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

          For Gerrit Dashboard: QTBUG-98334
          # Subject Branch Project Status CR V

          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 are 2 open Gerrit changes