The compiler already told you the error, didn't it?
no known conversion for argument 1 from 'const RecordPtr {aka const QSharedPointer<MyApp::Record>}' to 'const QObject*'
you are trying to pass an object of type RecordPtr to a method expecting "const QObject*".

Cheers,
_