Use QTransform instead of implementing rotation ourselves
Patch by Nishanth Rodriquez, thanks! Phabricator diff D1776