qabstractlistmodel

Use a model as a source for a QMenu

Hi, I created a model which list the existing configurations (let's say it lists "files", as this doesn't really matter here). So far, it works well when attached to a QListView. Example: --- ListView --- - file #1 - - file #2 - - file #3 - - file #4 - ---------------- Is it possible to use the same model for a d...

How to customize the display of a QListView

Hi, I have implemented a list of users in my Qt program, using the model/view principle of Qt. My QListView displays a subclass of QAbstractListModel and so far this works just fine. Now I would like to customize the display of my user list (display the name on several line, add IP information, and so on: not really relevant, I just wa...