Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.7.0
-
None
-
Windows XP
-
adcb5f115ff768fe68883f392c00e6d2945a377c
Description
When creates Rectangles with Repeater element and tries to set opacity to 0 in Component.onCompleted unexpectedly 2 Rectangles seem to disseppear. When degugged it with my QtCreator I notice that one Rectangle actually doesn't disappear, but goes under other element (check x property of last Rectangle). Run code below . Unexpectedly two rectangles disappear.
import Qt 4.7
Rectangle {
width: 640
height: 480
Component.onCompleted:
{ grid.children[2].opacity = 0; } Grid{
id: grid
rows: 2
columns: 4
spacing: 2
Repeater{
model: 5
delegate: Rectangle
}
}
}