tests/auto/declarative/qdeclarativepositioners/data/grid-toptobottom.qml
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 06 Jul 2010 15:10:48 +0300 (2010-07-06)
changeset 30 5dc02b23752f
permissions -rw-r--r--
Revision: 201025 Kit: 2010127
import Qt 4.7

Item {
    width: 640
    height: 480
    Grid {
        objectName: "grid"
        rows: 3
        flow: Grid.TopToBottom
        Rectangle {
            objectName: "one"
            color: "red"
            width: 50
            height: 50
        }
        Rectangle {
            objectName: "two"
            color: "green"
            width: 20
            height: 50
        }
        Rectangle {
            objectName: "three"
            color: "blue"
            width: 50
            height: 20
        }
        Rectangle {
            objectName: "four"
            color: "cyan"
            width: 50
            height: 50
        }
        Rectangle {
            objectName: "five"
            color: "magenta"
            width: 10
            height: 10
        }
    }
}