QML Row: Cannot specify left, right, horizontalCenter, fill or centerIn anchors for items inside Row
import QtQuick 1.0 Row { id: row1 width: 400 height: 200 Rectangle { id: rectangle1 x: 49 y: 37 width: 115 height: 127 color: "red" } Rectangle { id: rectangle2 y: 1 width: 100 height: 100 color: "cyan" anchors.left: rectangle1.right anchors.leftMargin: 20 } }
import QtQuick 1.0Item { Row { id: row1 width: 400 height: 200 Rectangle { id: rectangle1 x: 49 y: 37 width: 115 height: 127 color: "red" } Rectangle { id: rectangle2 y: 1 width: 100 height: 100 color: "cyan" anchors.left: rectangle1.right anchors.leftMargin: 50 } } Row { id: row2 width: 400 height: 200 anchors.top: row1.bottom Rectangle { id: rectangle3 x: 49 y: 37 width: 115 height: 127 color: "red" } Rectangle { id: rectangle4 y: 1 width: 100 height: 100 color: "cyan" anchors.left: rectangle3.right anchors.leftMargin: 50 } }}