I want to create a layout in QML
and I'd like to add a spacer item (the bottom selected item from the image below) just as you do using widgets like so:
But I couldn't find anything to suit this on the QtQuick
side of things...is it possible to have this kind of layout in QML
w/o using the anchoring system?
I'd prefer the layouts approach...
You can simply use an
Item
withLayout.fillHeight: true
:EDIT: Alternatively here, you could have used a
Column
with no spacer item since aColumn
just positions its children from top to bottom and don't spread them to take all the available space.