Ipswich Town earned their first away win of the season by beating QPR 4-1 at Loftus Road thanks to braces from George Hirst and Marcelino Nunez.