Re: [Interest] QtQuickControls Layout Question

2013-06-10 Thread Stéphane Fabry
Interresting discussion, I had the very same problem. There is something not intuitive in this behaviour. I suggest to add a Spacer component to QtQuick.Controls "Spacer.qml" Item {/ Layout.fillWidth: true }/ Even if it is so simple, it would be usefull to find it in the documentation. An

Re: [Interest] QtQuickControls Layout Question

2013-06-08 Thread Daiwei Li
Thanks, Jens. The spacer item solution works for me, but I'm not sure I completely understand what's going on here. I toyed around with this a litte more and I'm confused by this output: import QtQuick 2.1 import QtQuick.Layouts 1.0 Item { width: 320 height: 240 ColumnLayout {

[Interest] QtQuickControls Layout Question

2013-06-07 Thread Daiwei Li
Hello all, I'm having some trouble understanding what happens with the following QML: import QtQuick 2.1 import QtQuick.Layouts 1.0 Item { width: 320 height: 240 ColumnLayout { anchors.left: parent.left anchors.right: parent.right RowLayout {