How to customize QListView display

I implemented a list of users in my Qt program using the Qt model / view principle. My QListView displays a subclass of QAbstractListModel , and so far it works fine.

Now I would like to configure the display of my list of users (display the name on several lines, add information about IP addresses, etc .: not very important, I just want something really customizable).

I did not find anything in the Qt documentation about this: what are my options?

Note. The items in the list should not (cannot) be changed if this can help.

Thanks.

+1
source share
1 answer

To process the picture, you need to create a new item delegate class. Here is a good answer to a similar question.

+4
source

All Articles