How can I handle mouse event without a inheritance, the usecase can be described as follows:
Suppose that I wanna let the QLabel object to handel MouseMoveEvent, the way in the tutorial often goes in the way that we create a new class inherited from QLabel. But can I just use a lambda expression to handel the event without inheritance just like
ql = QLabel()
ql.mouseMoveEvent = lambda e : print e.x(), e.y()
So I do not need to write a whole class and just use simple lambda expression to implement some simple event.