Project

General

Profile

Actions

Feature #1326

closed

WSignalMapper::map2

Added by con abs almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
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()?

Actions #1

Updated by Koen Deforche almost 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

Actions #2

Updated by Koen Deforche almost 12 years ago

  • Status changed from Resolved to Closed
  • Target version set to 3.2.2

Released in Wt 3.2.2

Actions

Also available in: Atom PDF