As hillrider implies, Q international does earn miles - but not trasatlantic. From that link to aa.com,
"** Tickets between North America and Europe, India, Asia and Latin America booked in O and Transatlantic tickets booked in Q are not eligible for mileage credit." (my underscoring)