[Qt-interest] get and set current item in QTableView
Matthias Pospiech
matthias.pospiech at gmx.de
Wed May 20 10:56:30 CEST 2009
I can get the current row and column via the index
QModelIndex index = tableViewPowerDegree->currentIndex();
tableViewPowerDegree->selectRow(index.row() + 1);
tableViewPowerDegree->selectColumn(1);
However I cannot modify the index and setting the row and column one
after the other
as above, because that really selects the comlete row and column, but
not the item at (row, column)
tableViewPowerDegree->setCurrentIndex(...)
seems not to be an option, at least I do not see how to use it.
Matthais
More information about the Qt-interest-old
mailing list