They will confiscate it, if you did't fill a form issued by them so that you will get it back if you travel from Qatar to any other destination except Arab country. Otherwise you loose it ,and will not create any legal problems