Qt 6.11 is out! See what's new in the release
blog
Resizing delegates in a ListView
-
I have created a social media app with Qt/QML that runs on Android. I use a ListView to display a timeline of posts. The height for the posts is not always known at the creation of the ListView delegate. E.g. a post may have an image that get asynchronously loaded. The height will change when the image comes in.
When the height of a delegate increases by N pixels, then the delegates below are pushed down N pixels.
This is fine for delegates below the visible area of the ListView. For delegate above the visible area it is not, as the visible are moves.
I want the visible area to be stable, i.e. for delegate above the visible area, I want an increase in height to cause all delegate above the increasing one to be moved up!
Is that possible?