Never mind, I think I've found the answer!
void MainWindow::contextMenuEvent(QContectMenuEvent *event)
{
...
QString type
= model
->data
(fileTableView
->currentIndex
(), Qt
:: DecorationRole).
typeName();
if (type == "QIcon")
menu.addAction(expandInfoAct);
...
}
void MainWindow::contextMenuEvent(QContectMenuEvent *event)
{
...
QString type = model->data(fileTableView->currentIndex(), Qt:: DecorationRole).typeName();
if (type == "QIcon")
menu.addAction(expandInfoAct);
...
}
To copy to clipboard, switch view to plain text mode
Thanks anyway
Bookmarks