ApplicationWindow - how to align content item strict between header and footer?
-
Hi,
Simple example:ApplicationWindow { header: MyHeader { id: myHeader } footer: MyFooter { id: myFooter } ListView { id: myListView anchors.fill: parent //Layout.fillWidth: true //Layout.fillHeight: true //anchors.top: myHeader.bottom //anchors.bottom: myFooter.top //anchors.right: parent.width } }
This works but listview's items are visible under footer and header component. How to position listview so it will be strict between header and footer? Tried
Layout.fill*
and anchor directly to header and footer but nothing works.Regards
-
I wonder if the issue you are seeing is what happens if
clip: true
is not set in theListView
? Maybe try setting that? -