Derby made up crucial ground in the Sky Bet Championship promotion race with a 1-0 victory over QPR at the iPro Stadium.