travick
22nd December 2012, 18:23
I'm using QML Desktop Components 0.1 with QtQuick 1.1.
I'm wondering how to make in QML layout of items that behaves the same as QGridLayout or QFormLayout.
There is Grid, but items within it don't scale to fill the grid.
I need to make form like layout so there are labels and text fields. Text fields should resize to fill parent (window resize).
There anchors, but for eg, i have 20 text areas with labels and I don't want to set anchor for every single item ... It's not efficient.
How to do that properly with QML?
I'm wondering how to make in QML layout of items that behaves the same as QGridLayout or QFormLayout.
There is Grid, but items within it don't scale to fill the grid.
I need to make form like layout so there are labels and text fields. Text fields should resize to fill parent (window resize).
There anchors, but for eg, i have 20 text areas with labels and I don't want to set anchor for every single item ... It's not efficient.
How to do that properly with QML?