Why is item width 0 when using anchors.fill: parent?
Solved
QML and Qt Quick
-
Hello forum members, I'm strugglin to create a dynamic row component. It seems to be related to the problem that it's width is 0, although it spans the whole window.
Minimal example code using a rectangle instead of a row below:Window { id: testWin title: "WDC Test View" Rectangle { border.color: "red" border.width: 2 color: "orange" anchors.fill: parent Component.onCompleted: console.log(width) } }
Looks like this on my computer:
 } }