Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.7.1
-
None
-
qt-qml HEAD at f4e82d86ce597e84d5e58abb3d69c898b9be4b31
-
f54353bf2f566335e44d20b5263fe19d5ac33d1e
Description
Run the code below. Click anywhere and the layout of the red and blue rectangles should
alternate between side-by-side and one-above-the-other, but nothing happens.
import Qt 4.7 Rectangle { width: 640; height: 480; property bool isInPortrait: false Flow { flow: isInPortrait ? Flow.LeftToRight : Flow.TopToBottom spacing: 20 anchors.horizontalCenter: parent.horizontalCenter Rectangle { color: "red"; width: 200; height: 50 } Rectangle { color: "blue"; width: 200; height: 50 } } MouseArea { anchors.fill: parent; onClicked: { print("clicked"); isInPortrait = !isInPortrait } } }