I have
connect(table->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)), this, SLOT(changed(QModelIndex,QModelIndex)));
and
QItemSelection *selection = new QItemSelectionModel(model);
table->setSelectionModel(selection);
But the event does nothing. Still the null pointer.
Got it working.
The connect() should come after selection is created.
![]()
Bookmarks