How to use QListView, and set different spacing for different list items?
-
How to use QListView, and set different spacing for different list items?
I want to create something to show events in a list. And those events are spaced in different times, have different pauses between them. I'd like to QListView for that (cause I like how it looks, and that you can make custom editor, and you can use model, and the animations, i like that). But I only found that you can set spacing for all of the items, that's the same. I need to be able to set different spacing/maring for different items. Like maybe between first and second item there's a 10px space, and between the second and the third maybe 30px, and then maybe 15px again, etc.
It doesn't have to be QListView, but it should be able to have custom items (like one I can use with QItemDelegate) and should work with models, and also set custom spaceing between items.
Is there something like this? I didn't find anything like a "Timeline component"