Or replace mouseMoveEvent and mousePressEvent..I mean get the pressEvent just top of the moveEvent and try..