Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
4.7.0
-
None
Description
When using an Image element inside a Rectangle with a radius for rounded corners, and the Image fills anchors to the Rectangle - the Image corners are not clipped. The following example shows a blue rectangle with rounded corners, hosting an image that once loaded over the network will fill the entire rectangle;
import Qt 4.6 Rectangle { width: 300 height: 100 Row { width: parent.width height: 60 Rectangle { id: rectangle2 height: parent.height width: 60 color: "#4682b4" radius: 10 clip: true Image { anchors.fill: parent source: "http://chaos.troll.no/~hhartz/hhartz_mirror_small.png" } } Text { id: text1 height: parent.height text: "Shady, Slim" verticalAlignment: "AlignVCenter" horizontalAlignment: "AlignHCenter" } } }
Attachments
Issue Links
- relates to
-
QTBUG-65741 Invalid event clipping
- Reported
-
QTBUG-72671 add option to QQuickRectangle to honor corner radius in contains()
- Reported
-
QTBUG-115179 Clip optimization in QQuickDeliveryAgentPrivate::pointerTargets is too aggressive
- Closed
-
QTBUG-72774 Rounded corners for rectangle node
- Reported
- resulted in
-
QTBUG-98334 Support rounded corners on QtQuick Image
- Closed
For Gerrit Dashboard: QTBUG-9008 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
381364,7 | WIP allow Rectangle to clip children with radius | dev | qt/qtdeclarative | Status: NEW | -2 | 0 |
602359,5 | Add containment manual tests | dev | qt/qtdeclarative | Status: NEW | -1 | 0 |