Fix robot rotation in Qt