thanks! that was exactly what I was looking for 
with
newItem->setFlags(Qt::ItemIsSelectable);
newItem->setFlags(Qt::ItemIsSelectable);
To copy to clipboard, switch view to plain text mode
and
void CAddGroup::on_my_table_widget_cellClicked(int iRow,int iColumns)
{
ui.my_table_widget->selectRow(iRow);
}
void CAddGroup::on_my_table_widget_cellClicked(int iRow,int iColumns)
{
ui.my_table_widget->selectRow(iRow);
}
To copy to clipboard, switch view to plain text mode
I have exactly what I needed (didn't select anything when clicking the item after setting up the flag, so I had to do it manually)
Bookmarks