It should be: qRegisterMetaType<QSqlRecord>("QSqlRecord")