Why Item couldn't positioned in Row/Column in QML?
Solved
QML and Qt Quick
-
Hello,
Why Item in QML couldn't positioned in Row/Column?
Column { Item { id: name0 Rectangle { width: 50 height: 50 color:"blue" } } Item { id: name1 Rectangle { width: 50 height: 50 color:"red" } } }
the red rectangle put on the blue?
@Alien
because the wrapper Items (around the rectangles) do not have a width/height set, so they are overlapping -
Hello,
Why Item in QML couldn't positioned in Row/Column?
Column { Item { id: name0 Rectangle { width: 50 height: 50 color:"blue" } } Item { id: name1 Rectangle { width: 50 height: 50 color:"red" } } }
the red rectangle put on the blue?