Revert "Restore QtMath"

This reverts commit 412d9a6b8f9cae1c52c12bdeb6c1533cc7028381.