Queens Park Rangers head into the Sky Bet Championship play-offs in good form after a 3-2 victory at relegated Barnsley.