All airlines rule is upto 28 weaks of pregnency which is almost 7 months.

if you are travelling after 7 months then you need to get "Fit to travel certificate" from Hamad Hospital (Women Emergency) one day before the travel. They charge around QR 100 or QR 150, and you can travel with the certificate even after 7 months, but it depends on passenger's situation.