You can use find
to return only the files created in the last 5 hours and use its exec
function to grep from them:
find [PATH_OF_DIRECTORY] -type f -cmin -300 -exec grep "Quality data" {} \;
where -cmin -300
means "created in the last 300 minutes (5h)"