I don't think QR and BA are in the same terminal at ARN, but someone could correct me. Moreover, I don't think DOH arrivals are security cleared, allowing you to be deposited airside without reclearing security. If you have bags, forget it as you'll be under MCT (even though QR through-check on separate tickets).