It can be done ; do make sure that the QF number is fully removed from the booking before adding the AA one; use the Qantas locator to check the booking on checkmytrip.com to ensure its removal. then have the AA number added in and then return to checkmytrip and ensure that it shows Qantas Airways - AAxxxxxx (where xxxxxx is your AA FF number)
Dave