Quote Originally Posted by nile.one View Post
you don't have to pass all of the flags. just try to disable Qt::ItemIsEditable flag:
__colItem->setFlags(__colItem->flags() &~ Qt::ItemIsEditable);
I am using as follows;
but it is not working!
QTableWidgetItem *__colItem = new QTableWidgetItem();
__colItem->setText(QApplication::translate("schedulePlaylist ", "Playlist Name", 0, QApplication::UnicodeUTF8));
__colItem->setFlags(__colItem->flags() &~ Qt::ItemIsEditable);
playlistTable->setHorizontalHeaderItem(0, __colItem);