Thanks. Sorry a bit confused. On AA site it says that they have to be booked as an AA flight number.
Travel ticketed as an American Airlines marketed flight (booked as an AA flight number) and operated by Qatar will earn AAdvantageŽ award miles, Elite Qualifying Miles (EQMs), Elite Qualifying Segments (EQSs) and Elite Qualifying Dollars (EQDs) according to the American mileage accrual chart.