A Qantas flight was grounded after smoke was discovered in the cockpit shortly after take-off on Monday morning.