Hello,

I have the following piece of code which works fine in Qt 4.8.6 and 5.6.2, but fails in Qt-5.8. I was trying to make the Item not selectable, but boolean fails in Qt-5.8

Qt Code:
  1. QTableWidgetItem *newItem1 = new QTableWidgetItem("");
  2. newItem1->setFlags(not Qt::ItemIsSelectable);
To copy to clipboard, switch view to plain text mode 

Error is
Qt Code:
  1. no matching function for call to 'QTableWidgetItem::setFlags(bool)'
To copy to clipboard, switch view to plain text mode 

Thanks