You have to reimplement mouseReleaseEvent then.