Even though the A340-500/600 might not be the choice of most airlines over the 777, it might better suit the needs of Qantas as spares, training and pilots are very similar to the A330 fleet.
The cost of a temporary introduction of the A340 until the B787 and a newer 777er is at full steam might be an option worth considering.