当前位置:网站首页>QT -- how to get the contents of selected cells in qtableview

QT -- how to get the contents of selected cells in qtableview

2022-06-12 19:29:00 UNDEFINED_ AUBE

QModelIndex index3 = model->index(index.row(), index.column());      // Gets the contents of the selected cell

cell = model->data(index3).toString();

qDebug() << "cell:" << cell;

design sketch :

 

原网站

版权声明
本文为[UNDEFINED_ AUBE]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202281546555006.html