Since you have a read-only data table, you can use QSqlSelectCursor with any query you want.