PDA

View Full Version : Is there any way to set a 'contexmenu receiver'?



tonnot
28th October 2011, 11:16
I'd like to have a 'common contexmenu' for some widgets.
I'd pass the name of the widget,and some properties & options.
I'd want something like this:
mycontext_menu_class_controler->connect(a_widget, properties, options);
Can I connect the contextmenu event of 'a_widget' inside the 'mycontext_menu_class_controler'
Any idea ?

I answer my self, excuse me ....
connect (signal(contextmenu...),.....)