Quote Originally Posted by spirit View Post
Use QAbstractItemModel::index to get necessary index. Then you can use it for getting data:
Qt Code:
  1. ...
  2. qDebug() << Q_FUNC_INFO << model->data(model->index(0, 5));
  3. ...
To copy to clipboard, switch view to plain text mode 
I dont'understand what do you mean. I suppose that
Qt Code:
  1. data(model->index(0, 5))
To copy to clipboard, switch view to plain text mode 
will always give me data from index 0,5
My problem is that I want to use current index' row and set index column as 5- only column must be constant, row depends on the chosen cell.



Quote Originally Posted by spirit View Post
Thanks, I used QTreeView::setColumnHidden