Two goals from Fulham captain Ross McCormack helped his side to a 4-0 victory of west London rivals QPR at Craven Cottage.