当前位置:网站首页>Qtableview gets all currently selected cells
Qtableview gets all currently selected cells
2022-06-29 03:47:00 【Capricorn programmer】
QModelIndexList list = ui->tableView->selectionModel()->selectedIndexes();
int row = 0;
int column = 0;
for(int i = 0;i<list.size();i++)
{
row = list.at(i).row();
column = list.at(i).column();
qDebug()<<QString("list row:%1 column:%2").arg(row).arg(column);
}
边栏推荐
- [tcapulusdb knowledge base] Introduction to tcapulusdb restrictions
- Seura 2测试代码总结
- 不同的二叉搜索树[自下而上回溯生成树+记忆搜索--空间换时间]
- Devops note-05: what are the roles of Ba, SM, Po, PM, PD, dev, OPS and QA in the IT industry
- Solid state and memory module purchase
- 搭建nexus服务
- 凌晨三点学习的你,感到迷茫了吗?
- Common methods of JS date and time
- 2D人体姿态估计 - DeepPose
- Set hardware breakpoint instruction for ejtag under the PMON of the Godson development board
猜你喜欢

Deeply analyzing the business logic of "chain 2+1" mode

【TcaplusDB知识库】TcaplusDB-tcaplusadmin工具介绍

迅为i.MX8M开发板yocto系统使用Gstarwmr视频转换

2D human posture estimation deeppose
![[tcaplusdb knowledge base] view tcapdir directory server](/img/b6/f3734dfb03ec789525636335457b99.png)
[tcaplusdb knowledge base] view tcapdir directory server

go-redsync分布式锁源码解析

87.(cesium篇)cesium热力图(贴地形)

【TcaplusDB知识库】TcaplusDB技术支持介绍

87.(cesium篇)cesium热力图(贴地形)

leetcode - 295. 数据流的中位数
随机推荐
[tcaplusdb knowledge base] Introduction to tcaplusdb tcaplusadmin tool
2D人体姿态估计 - DeepPose
Data collection and management [4]
An annotation elegant implementation of interface data desensitization
Set up nexus service
【TcaplusDB知识库】TcaplusDB-tcaplusadmin工具介绍
Gcc compiler package
Wechat applet development Basics
做 SQL 性能优化真是让人干瞪眼
Share 60 divine vs Code plug-ins
seekbar 自定义图片上下左右显示不全 / bitmapToDrawable / bitmapToDrawable互转 / paddingStart/paddingEnd /thumbOffset
Efficientnetv2 - get smaller models and faster training with NAS, scaling, and fused mbconv
The efficiency of 20 idea divine plug-ins has been increased by 30 times, and it is necessary to write code
[tcapulusdb knowledge base] Introduction to tcapulusdb tcapsvrmgr tool (III)
【面试指南】AI算法面试
Data collection and management [8]
mysql varcahr 转 int
迅为i.MX8M开发板yocto系统使用Gstarwmr视频转换
泠静的想一想自己的路
Unable to locate program input point [email protected]