Signal to connect qtableview with combobox
Unsolved
General and Desktop
-
Finally I do something like this:
connect(ui->myTableView,SIGNAL(clicked(QModelIndex)),this,SLOT(DoSomething(QModelIndex)));
This is not what I wanted, but it is an intermediate solution.
Because if for example I have two buttons (up and down) that are move the current position on the table, that definition of connect does not work. I will have to create another connect.
It would be easier something like this:
connect (model, SIGNAL (currentindex), this, DoSomething (currentindex))