ui_qt: fix cursor move