I have defined an event as follows.
def mousePressEvent(self,e):
if e.button()==ButtonState,RightButton:
self.menu()
Now. this works fine on the mainwidget. But how do I define it to work with
a widget placed on the main widget. Ex, a label.
I have tried to find an explanation in the Qt-manual but with out luck.
There are no examples as far as I can see that illustrates this.
Very greatefull for help
/Peter Torstensson
def mousePressEvent(self,e):
if e.button()==ButtonState,RightButton:
self.menu()
Now. this works fine on the mainwidget. But how do I define it to work with
a widget placed on the main widget. Ex, a label.
I have tried to find an explanation in the Qt-manual but with out luck.
There are no examples as far as I can see that illustrates this.
Very greatefull for help
/Peter Torstensson