I want to pass a parameter to the selection changed SLOT like the following:
connect(selectionModel, SIGNAL(selectionChanged (const QItemSelection &, const QItemSelection &, MyParameter)),
this, SLOT(OnSelection(const QItemSelection &, const QItemSelection &, MyParameter)));
Or at least like:
connect(selectionModel, SIGNAL(selectionChanged (MyParameter)),
this, SLOT(OnSelection(MyParameter)));
I want to use the MyParameter
in the SLOT
. Is there a way to do it? Is it possible to build a custom selectionChanged()
Signal?