[Interest] making 'hole' in the rectangle
BOUCARD Olivier
boucard_olivier at yahoo.fr
Fri Jul 25 09:45:57 CEST 2014
I would try something like building a new Item with 4 Rectangle as children which you arrange to create a hole in the middle.
Olivier
Le Jeudi 24 juillet 2014 23h56, Alexander Ivash <elderorb at gmail.com> a écrit :
Is it possible to implement a 'hole' component which would make color of its parent control transparent? For example:
Rectangle {
width: 100
height: 100
color: 'blue'
Rectangle {
width: 50
height: 50
color: 'green'
Hole {
anchors.fill: parent
width: 25
height: 50
}
}
}
Expected result: area 100x100, filled with blue and 25x50 (not 50x50 as we erased half of area with 'Hole') area of green on top.
_______________________________________________
Interest mailing list
Interest at qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140725/1a6e6f79/attachment.html>
More information about the Interest
mailing list