Why don't you use the QSqlQueryModel with QListView?