Test moving cursor in QT