Before you exit Qatar, it is advisable for you to take your gratuity and other benefits from the company. Qatar and the UAE are two different countries and have their own laws which are applicable in their own countries. The issuance of NOC is entirely at the discretion of your company. You can try to get one but if your company refuses, to my knowledge there is nothing much you can do about it.