[Interest] Why wrap Rectangle/Image with Item

Sadika Sumanapala sadikahs at gmail.com
Sun Jan 18 08:52:28 CET 2015


What is the advantage of wrapping Rectangle/Image QML types with Item type.
I came across several wrapping when following  QML Advanced Tutorial (

For example:

Item {
    id: block
    Image {
        id: img
        anchors.fill: parent
        source: "../shared/pics/redStone.png"

Thank you,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150118/d7ceda41/attachment.html>

More information about the Interest mailing list