If it is a partner marketed flight which is eligible for status credits then it will earn as per table
Given that the flight in question would not be an eligile partner, then no SCs would be earned
I think it is very unlikely that you will be able to book the codeshare other than to/from Australia. Checking on Expert Flyer, Qantas does not offer fares from Singapore to Shanghai