Planned maintenance: From Sunday 8th December 10:00 CET there will be changes to try and solve the caching issues that have been experienced. If anyone has a problem connecting after this period then please PM @AndyS or any of the moderators.
Get signal on activate a certain cell in a tableview
Mr. Kibu last edited by
Is there a way to get a signal when a certain cell (or column) in a qtableview loses the focus or get activated (a QAbstractItemView witch is inherid by a qtableview holds the signal "activated").
Is it possible with a connect statement similar to this:
connect(ui->myTableview->"here I don't know how to point to cell 0 , 1",SIGNAL(activated), this, SLOT(myFunction))
If it is possible like in the connect statement above, how do I write the sender (e.g. cell 0,1 in the tableview) correct
Or is there an other way??
Thank you in advance!
What about using
You get new QModelIndex which has
So when u get this signal, u can check if the "watched" col and do your thing.
You also get last QModelIndex , so you can check if a cell is "left" that way.
Meaning its the last ModelIndex.