How to qualify as a software engineer by self-study?

I want to be a software engineer but there is no real opportunities for formal training.
So, is it possible to qualify myself through self-study and self-learning ? if yes, what are resources, tips, risks and timeline to achieve that ?