A Qantas flight scheduled for Perth has been forced to turn around after a technical issue resulted in smoke being detected in the cockpit.