Hi,
I need to go through a TableView, obtain some data... and since now I did something like:
Qt Code:
QAbstractItemModel* tableModel; QModelIndex index; tableModel = my_TableView->model(); index = my_TableView->currentIndex(); for(int i = 0; i < tableModel->rowCount(); ++i) { iIDList->append(tableModel->data(index.sibling(i, 4)).toInt()); } tableModel = 0;To copy to clipboard, switch view to plain text mode
But now I don't have any index selected... so "currentIndex()" sends null.
Any idea how I can solve it? thanks!
Bookmarks