You need to accept() the event in mousePressEvent().