model

model = new QStandardItemModel;
tableView = new QTableView(this);

 

int colum = index1.column();
int row = index1.row();
QString str=model->data(model->index(row,3)).toString();//第row行第3列的内容
qDebug()<<"pathname = "<<str<<endl;
---------------------
作者:MaxLiuZhenGuo
来源:CSDN
原文:https://blog.csdn.net/u011418878/article/details/39966089
版权声明:本文为博主原创文章,转载请附上博文链接!

posted @ 2019-05-31 11:09  石首桃花山  阅读(123)  评论(0编辑  收藏  举报