If your flight numbers start with QR, yes. B6, no.
Is this true? From aa.com: "You can earn AAdvantageŽ miles when you fly on Qatar Airways marketed and operated flights and Qatar Airways codeshare flights operated by other oneworldŽ carriers." In this case, B6 is not a oneworld carrier, so how can the OP earn AA miles on these flights?