From help : (model view tutorial)
Views manage selections within a separate selection model, which can be retrieved with the selectionModel() method. We retrieve the selection Model in order to connect a slot to its selectionChanged() signal.
So, I have now something likethis:
QItemSelectionModel *selectionModel= Table>selectionModel();
connect(selectionModel, SIGNAL(selectionChanged (const QItemSelection &, const QItemSelection &)),
this, SLOT(selectionChangedSlot(const QItemSelection &, const QItemSelection &)));
To copy to clipboard, switch view to plain text mode
Ok, now it works (not very well but I have not the last problems)
And, I can to reimplement the currentChanged slot or is it forbidden ?
PS: I pray everyday in order QT people include more information into QT Reference
Bookmarks