Je veux passer un paramètre à la sélection a changé SLOT comme ce qui suit:Qt: Passer un argument dans le signal SelectionChanged()
connect(selectionModel, SIGNAL(selectionChanged (const QItemSelection &, const QItemSelection &, MyParameter)),
this, SLOT(OnSelection(const QItemSelection &, const QItemSelection &, MyParameter)));
Ou du moins comme:
connect(selectionModel, SIGNAL(selectionChanged (MyParameter)),
this, SLOT(OnSelection(MyParameter)));
Je veux pour utiliser le MyParameter
dans le SLOT
. Y a-t-il un moyen de le faire? Est-il possible de créer un signal personnalisé selectionChanged()
?