What I need is something that is probably common, so I am hoping someone can post some example source code. (All the examples I found use an internal data source.)

1.) Create a class User with multiple fields (code, name, password, etc.)
2.) I want to create a QList of User objects -- m_UserList
3.) Create a class UserModel : public QAbstractItemModel
4.) Display the the User List in a QTreeView using the UserModel. (read only)

I want the QTreeView to change when I update, add, and remove items in the m_UserList.

The example I am looking is a QAbstractItemModel class using in an external QList of class objects.

Thank you, Jeff.