Details
-
Suggestion
-
Resolution: Won't Do
-
Not Evaluated
-
None
-
None
-
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
- relates to
-
QTBUG-65741 Invalid event clipping
- Reported
-
QTBUG-130893 ShapePath.fillItem doesn't work with all items; doesn't scale correctly with QT_SCALE_FACTOR
- Reported
-
QTBUG-72671 add option to QQuickRectangle to honor corner radius in contains()
- Reported
-
QTBUG-48774 Add a radius property for each corner of a Rectangle
- Closed
-
QTBUG-72774 Rounded corners for rectangle node
- Reported
-
QTBUG-130939 Supports rounded rectangle clip for MultiEffect
- Closed
- resulted from
-
QTBUG-9008 A Rectangle with radius doesn't clip a child Image in rounded corners
- Closed