thanks for reply.
Actually i got the answer.
ie.
item
= new QAction(QIcon("icon_image.png"),
"Item Name",
this);
connect(item, SIGNAL(triggered()), this, SLOT(on_actionTaken_clicked()));
this->ui->tableView->addAction(item);
this->ui->tableView->setContextMenuPolicy(Qt::ActionsContextMenu);
item = new QAction(QIcon("icon_image.png"), "Item Name", this);
connect(item, SIGNAL(triggered()), this, SLOT(on_actionTaken_clicked()));
this->ui->tableView->addAction(item);
this->ui->tableView->setContextMenuPolicy(Qt::ActionsContextMenu);
To copy to clipboard, switch view to plain text mode
Bookmarks