Hi Carlos,
Try following these steps:
Remove dependencies of unused module and publish your application.
Move the unused module to another new application or Independent Modules Application
And then try to deploy your code from Dev to QA.
If it still complains, you can download the application modules and manually import the modules in your higher environments from service center.
Thanks
Ravi