Read what is stipulated on your signed contract given by your employer, you can find there about termination of contract. I believed that you can resign from your job after you have completed your probationary period, also try to google about qatar labour law, you can find answers there ( when you can resign or terminate contract and what to do if they don't allow you to resign. Hope this helps.