Thanks. By coincidence I'd just read up about QSortFilterProxyModel last night.

One question I do still have though - in my code I am passing the data structures between the functions like so :

Qt Code:
  1. KZenAlbumModel( QList<KZenAlbum*> &albums, QObject *parent = 0 ) : QAbstractItemModel( parent ), m_albums( albums )
To copy to clipboard, switch view to plain text mode 

My question is, is the album data being duplicated, or is a reference count just being implemented in albums? m_data is declared as :

Qt Code:
  1. QList<KZenAlbum*> &m_albums;
To copy to clipboard, switch view to plain text mode