Logins are stored in the master databases and are not copied on a backup and restore.
What is copied is the mappings between logins and users.
I would recommend you get sp_help_revlogin, run it on your prod server and copy the output to your QA server to recreate the logins.