Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.0.0
-
None
-
Windows 7
Description
The rendering of a scene is wrong when applying a graphical effect on an item inside a positionner/layout trough the Item::layer.effect property.
Test code:
Row { Rectangle { width: 100 height: 100 color: "green" layer { effect: ColorOverlay { color: "red" } enabled: true } } Rectangle { width: 100 height: 100 color: "green" layer { effect: ColorOverlay { color: "blue" } enabled: true } } Component.onCompleted: { print("Children count : " + children.length) for(var i = 0 ; i < children.length; i++) print("|- " ,children[i]) } }
In this example I expect the rendering to be : .
Instead I got a row like this :
I tried to debug the row contents and it seems that there is in fact 6 children inside the row:
Children count : 6 |- QQuickRectangle(0xcce188) |- QQuickShaderEffectSource(0xccacb8) |- ColorOverlay_QMLTYPE_1(0xccad18) |- QQuickRectangle(0xd059c8) |- QQuickShaderEffectSource(0xd099a8) |- ColorOverlay_QMLTYPE_1(0xcc34b8)
Attachments
Issue Links
- is replaced by
-
QTBUG-31269 Item.layer: true inside Column triggers bad positioning
-
- Closed
-