PySide: custom QListView with little animation and buttons

I would like to know how to create a QListView with custom list items . I have a small sprite animation that I want to display on the left side of each record, as well as some information, as well as a few buttons on the right side. I also need to detect clicks by name.

I looked at QListView , but did not find anything that I could use for this. somewhat similar questions pointed me to QAbstractItemDelegate and QAbstactListModel , but without code sample I can Wrap my head. I am stuck with overriding the QAbstractItemDelegate paint() method - I just don't know how to override it in a way that creates the intended effect.

Your answers are greatly appreciated!


i.e. I want to create something like this: enter image description here

+6
source share

All Articles