void CTabTwo::createMenu()
{
//创建一个菜单动作
m_pAcDel = new QAction(tr("删除"), this);
connect(m_pAcDel,SIGNAL(triggered()),this,SLOT(DelItem()));
m_pAcCel = new QAction(tr("取消"), this);
connect(m_pAcCel,SIGNAL(triggered()),this,SLOT(CancelDel()));
{
//创建一个菜单动作
m_pAcDel = new QAction(tr("删除"), this);
connect(m_pAcDel,SIGNAL(triggered()),this,SLOT(DelItem()));
m_pAcCel = new QAction(tr("取消"), this);
connect(m_pAcCel,SIGNAL(triggered()),this,SLOT(CancelDel()));
}
QMenu menu;
menu.addAction(m_pAcDel);
menu.addAction(m_pAcCel);
menu.exec(QCursor::pos()/*mapToGlobal(qApp->pos())*/);