Actions
Feature #1326
closedWSignalMapper::map2
Start date:
06/16/2012
Due date:
% Done:
0%
Estimated time:
Description
map1 can deal with the most common events WInteractWidget::clicked() since it has only one argument WMouseEvent.
But how to mapping Signal<WModelIndex,WMouseEvent> WAbstractItemView::clicked()?
Updated by Koen Deforche over 12 years ago
- Status changed from New to Resolved
Hey,
We've updated the WSignalMapper documentation now to advise against using it, in favour for the more flexible, and simpler to use boost::bind() (or std::bind()) function, which handles your use-case too:
view->clicked().connect(boost::bind(&MyClass::myFunction, this, _1, _2, boundArg1, boundArg2));
Regards,
koen
Updated by Koen Deforche over 12 years ago
- Status changed from Resolved to Closed
- Target version set to 3.2.2
Released in Wt 3.2.2
Actions