qtableview 右键菜单弹出及获取数据

connect(tableView, SIGNAL(customContextMenuRequested(const QPoint &)), this,SLOT(slot_tableViewMenu(const QPoint &)));
connect(listView, SIGNAL(customContextMenuRequested(const QPoint&)), this,SLOT(slot_tableViewMenu(const QPoint&)));

 

index = m_currentView->indexAt(pos)

posted @ 2019-09-11 14:49  wjbooks  阅读(2306)  评论(0编辑  收藏  举报