Deriving "leftover" space value
Solved
QML and Qt Quick
-
Hi all -
Consider this code snippet:
ColumnLayout { id: newZone // other stuff ListView { id: viewArea Layout.preferredHeight: // what do I put here? Layout.preferredWidth: newZone.width clip: true model: 100 delegate: Text { text: model.index; font.pixelSize: 10 } } }
Is there a way to automatically derive the available space for my ListView's height, or do I need to do the arithmetic of:
leftover = newZone.height - otherStuff.height
Thanks...
-
-
@mzimmers said in Deriving "leftover" space value:
but once I emptied the trash
https://www.youtube.com/watch?v=Wf7seK3n9rE sorry, not sorry