How do I tell QListView to resize to fit?

前端 未结 1 2029
隐瞒了意图╮
隐瞒了意图╮ 2021-01-24 10:56

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

相关标签:
1条回答
  • 2021-01-24 11:12

    All I had to do was to emit layoutChanged() as a follow up to the dataChanged().

    0 讨论(0)
提交回复
热议问题