qt6-bb10/qtdeclarative/tests/auto/quick/qquickpositioners/data/flowtest.qml

44 lines
910 B
QML

import QtQuick 2.0
Item {
width: 90
height: 480
property bool testRightToLeft: false
Flow {
objectName: "flow"
width: parent.width
layoutDirection: testRightToLeft ? Qt.RightToLeft : Qt.LeftToRight
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
}
}
}