I have the following ui's:

listview
qt1.jpg

items
qt2.jpg

I have to use the class QAbstractItemDelegate like you said. But I do not know how to use. This class does what?

I do not understand very well. Thanks