I have a QListView and have assigned a model and a delegate. I am using it to display images in a horizontal bar as below
All I had to do was to emit layoutChanged() as a follow up to the dataChanged().
emit layoutChanged()
dataChanged()