rajil.s
12th February 2017, 20:31
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
QTableWidgetItem *newItem1 = new QTableWidgetItem("");
newItem1->setFlags(not Qt::ItemIsSelectable);
Error is
no matching function for call to 'QTableWidgetItem::setFlags(bool)'
Thanks
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
QTableWidgetItem *newItem1 = new QTableWidgetItem("");
newItem1->setFlags(not Qt::ItemIsSelectable);
Error is
no matching function for call to 'QTableWidgetItem::setFlags(bool)'
Thanks