For a person to become an apostate:
They would have to fully believe in rejecting Islam or the Qur’an. Sometimes in moments of stress or difficulty a person may doubt something—that doesn’t make him an apostate. He has fully and officially reject it. For example, a person says: I don’t believe the Qur’an is God’s word. I reject this book. I officially leave Islam (statements like these).